Ohlc Forex Indicator - insightraders.com

Forex Trading System: OHLC data or Order Book data to train models?

I am trying to do some prelim research on writing a trading system for forex. Trying to understand what type of data should I train models on? The question is that trades are basically set on asks and bids, wouldn't the model be more accurate with order book data?
Also looking for recommendations for Forex data platforms API along with a broker that supports API order creation.
submitted by vikas-sharma to algotrading [link] [comments]

Idea that needs someone that can actually program

Hello guys,
First of all, if I had this idea odds are at least 100 other people have had it too so if y'all can point me in their direction and see how they have applied it, I would be thankful. I have been getting into neural networks a lot lately, and one of my first thoughts was to use them for the forex market. The main issue I ran into, however, was how to present the data to the NN.
The thing most, if not all, examples I have read do is that they use an x number of previous candles + an indicator of some sort and maybe pairing it with another coin or some other variable to predict the next candle's closing price, or high, or low. After giving it a shot myself, it has been lackluster at best, and a complete failure at worst.
The idea I have been thinking about was the following: use the previous x candles and indicators and other pairs and whatever not to predict the next candle, but to instead predict if at some point, any point, in the future, the price will rise by a certain amount (say 100 pips), or drop by that same amount.
If we had a chart with the data for each candle (OHLC, an indicator's value, and another pair's value at that moment in time, for instance, all of which can be obtained from TradingView), and we associated with each candle a 1 if the first thing that happens at some point in the future is that it goes up by, say, 50 pips, or a 0 if the next thing that happens is that it goes down by 50 pips, then the neural network could be trained to predict based on the past if you trade on this candle, the price will go up by 50 pips in the future, in which case you enter the trade with a take-profit of 50 pips, and a SL of 50 pips, or if it will decrease by 50 pips in the future, in which case you do the opposite.
That's the idea. If anyone's done it before, I would appreciate a link to their work, and if anyone thinks this is dumb, do tell me too.
submitted by MrStealYourFrog to algotrading [link] [comments]

Các dạng biểu đồ cần biết khi bắt đầu giao dịch forex

Chúng ta có 3 dạng biểu đồ phổ biến nhất trong giao dịch Forex là:
1. Biểu đồ đường kẻ (Line chart)
Biểu đồ đường kẻ (Line chart) Một biểu đồ đường kẻ đơn giản vẽ một đường từ một giá đóng cửa đến giá đóng cửa tiếp theo. Khi nối các đường kẻ lại với nhau, ta có thể thấy một bức tranh chuyển động giá chung của một cặp tiền tệ trong một chu kỳ thời gian.
2. Biểu đồ thanh giá (Bar chart)
Một biểu đồ thanh giá thì phức tạp hơn một chút. Nó thể hiện giá mở cửa và giá đóng cửa, cũng như các giá đỉnh và đáy. Đáy của thanh giá chỉ giá giao dịch thấp nhất đối với khoảng thời gian đó, và đỉnh của thanh giá chỉ giá cao nhất đã được giao dịch. Thanh giá chiều dọc cho thấy biên độ giao dịch của cặp tiền tệ. Vạch ngang ở bên trái của thanh giá thể hiện giá mở cửa, và phía bên phải của thanh giá thể hiện giá đóng cửa.
Chúng ta sẽ thấy từ “bar” sử dụng cho một phần của dữ liệu trên biểu đồ. Một bar (một thanh) đơn giản chỉ là một đoạn thời gian, nó có thể là một ngày, một tuần hay một giờ ,… Khi bạn nhìn thấy từ bar, hãy chắc rằng bạn hiểu nó đang thể hiện khung thời gian nào. Biểu đồ thanh giá còn được gọi là biểu đồ “OHLC”, bởi vì chúng thể hiện Giá mở cửa (open), đỉnh (high), đáy (low), đóng cửa (close) đối với một cặp tiền tệ. Đây là ví dụ của một thành giá.
Open: đường ngang nhỏ bên trái là giá mở cửa.
High: đỉnh của đường thẳng đứng thể hiện giá cao nhất của một chu kỳ thời gian.
Low: đáy của đường thẳng đứng thể hiện giá thấp nhất của một chu kỳ thời gian.
Close: đường ngang nhỏ bên phải là giá đóng cửa.
3. Biểu đồ giá đỡ hay còn gọi là biểu đồ nến (Candlestick chart)

Biểu đồ nến thể hiện các dữ liệu giống như biểu đồ thanh giá, nhưng trong một biểu tượng đẹp hơn. Biểu đồ nến vẫn thể hiện biên độ đỉnh đến đáy với một đường thẳng đứng. Tuy nhiên, trong biểu đồ nến, khối lớn hơn (còn gọi là body) ở giữa thể hiện biên độ giữa giá mở cửa và giá đóng cửa. Thông thường, nếu khối ở giữa được tô màu, có nghĩa là giá đóng cửa thấp hơn giá mở cửa.
Trong ví dụ sau đây, màu được tô là mà đen. Đối với khối được tô, đỉnh của khối là giá mở cửa, và đáy của khối là giá đóng cửa. Nếu giá đóng cửa cao hơn giá mở cửa, khối ở giữa sẽ là không có màu, hoặc màu trắng. Thực tế, chúng tôi không thích sử dụng màu nến đen trắng truyền thống. Trông thật sự không hấp dẫn chút nào. Trong khi chúng ta bỏ rất nhiều thời gian để theo dõi biểu đồ, sẽ dễ dàng hơn nếu biểu đồ của chúng ta có màu sắc.
Một tivi màu tốt vẫn hơn một tivi đen trắng phải không? Chúng ta đơn giản thay màu xanh cho nến trắng và màu đỏ cho nên đen. Điều này có nghĩa, nếu giá đóng cửa cao hơn giá mở cửa, nến sẽ màu xanh, và giá đóng cửa thấp hơn giá mở cửa, nến sẽ màu đỏ. Bạn sẽ thấy rằng sử dụng nến xanh và nến đỏ sẽ giúp bạn theo dõi biểu đồ nhanh hơn, cũng như xu hướng tăng, giảm, và các điểm có khả năng đổi chiều.
Mục đích của biểu đồ hình nến chủ yếu là để giúp cho thị giác, do các dữ liệu OHLC thể hiện giống như biểu đồ thanh giá. Ưu điểm của biểu đồ nến là : Nến thể hiện rõ ràng, dễ hiểu cho người mới bắt đầu tìm hiểu phân tích biểu đồ. Nến dễ dàng sử dụng, mắt bạn thích ứng gần như ngay lập tức các dữ liệu được thể hiện. Ngoài ra, đã có nghiên cứu chứng minh rằng thị giác giúp cho việc học hỏi, nó cũng giúp cho giao dịch. Nến và các mô hình nến có những tên rất hay như sao băng, giúp bạn nhớ mô hình của nó. Nến giúp dễ nhận biết điểm đảo hướng của thị trường, các điễm đảo chiều từ xu hướng tăng sang xu hướng giảm và ngược lại.
submitted by Evony_Investment to u/Evony_Investment [link] [comments]

Where to get historical intraday stock data?

I hate to ask questions that have been asked before. But I am afraid that this is one of them. I have searched the web for days now, read so many forum posts. But I can't find an answer. Most answers about historical intraday data were about sites that offer historical futures and options, but I don't need those (btw. why would you want to use options data, which is derived from the stock data, instead of the actual stock data?).
What I need is historical intraday stock data: At least S&P 500 stocks, dating back 5 years, 30 minute interval (or smaller), a weekly update, OHLC would be nice, but only one of them (close for example) would be sufficient. I need to be able to download the raw data, that means that I can't use something like Quantopian. So the data either needs to be downloadable (like a ZIP folder) or have a python API, so I can download it with the API.
I know, something like this is not free, I would be able to spent up to about $50 a month. I am still a student, so I can't afford much more than that. What I found so far is Kibot and QuantQuote.
Kibot: They seem to have a bad reputation. It seems that their stock data is either inaccurate, or incomplete. I just don't know if this still applies to the last 5 years. Since their data dates back to 1998, I could imagine that they had issues in the beginning but fixed them since they have been in business for more than 20 years. Their Standard subscription costs $49/month and includes 1 minute intraday data for all their symbols (6500 stocks, + ETFs, Futures and Forex) with a weekly update dating back 1 year. So I would also need to purchase once their historical S&P 500 data with a 30 minute interval, dating back to 1998 (I would need 2015 and up) for $150.
I can handle slightly inaccurate data (for example if the pricing is off by 0.5% or something like that), but missing data or inconsistent data (for example if instead of a constant 1min interval, it sometimes jumps multiple minutes) is a problem.
QuantQuote: They are expensive, too expensive. I would need to purchase once their S&P 500 package for $895 and then $50/month for a weekly update. They seem to offer the same as Kibot, but for a much higher price and with a higher quality (I assume).
It would help a lot, if you could say something about Kibot or Quantqote, or just about buying historical intraday data. Maybe you know better sites? Or do you know where to look or ask?
Any comment is appreciated!
submitted by rndmnewguy to Trading [link] [comments]

How to get forex data into excel.

Anyone know where to get free forex data everyday that I could put into excel? I need someway I can automate. I only really need daily OHLC.
submitted by BrockSamson83 to Forex [link] [comments]

Time Series Preprocessing

Time Series Preprocessing
Hey guys,
I'm working on predicting forex prices and I have time series data for several currencies for the OHLC data.
I'm aiming to try predictions using classical scikit-learn models, statsmodels(such as ARIMA) and even neural networks iteratively.
I'm not sure how I should transform the data as the raw values do not appear to be stationary using the Dickey-Fueller test.
Could you help?

ARIMA Residual Results

Green -> Forecast
submitted by astronights to learnmachinelearning [link] [comments]

some helphul common terms for forex traders

Common terms:

submitted by livmarsh1992- to u/livmarsh1992- [link] [comments]

New to algo-trading but want to automate a simple yet profitable system, where to start ?

Hi everyone,
Probably important: I only trade FOREX.
I have decent Python programming skills, though my background is in biology so I'm having a hard time understanding a lot of the techy language I come across. My knowledge is limited to what is inside the IDE, in other words. I also have several years of experience in manual trading using technical analysis.
I've got a very simple system I would like to automate. The logic seems really straightforward: it looks at candles during a specific time of the day. If the OHLC (open, high, low, close) ratios meet specific criteria, it enters at market on the next candle and trails the stop loss until stopped out.
Trying to implement it somehow turned out very confusing, though. Does anyone have any suggestions on where to begin? And I mean begin from scratch, I don't even know what platform to use (I think Alpaca only does stocks, not forex?).
(I use Oanda as my broker.)
submitted by BiologyTraderGuy to algotrading [link] [comments]

How do you process tick data to match candle backtesting ?

Hi there,
I have a strategy that I have carefully backtested and optimized that works well on 15min and 30min candles. Now I've coded my trading bot, but I'm facing the following problem :
Having backtested on let's say 30min candle data, I have coded my bot to build the 30min candles on the go with the stream of ticks I receive from my broker. Therefore at H+00, and H+30 I have a full candle that I use to run the strategy and establish whether I send an order to buy/sell.
Now I realised that it may be better to use the tick stream to do a continuous calculation instead of waiting for H+00 or H+30...
But let's say my strategy uses for example the moving average of the previous 10 30Min candles, how do I match that using the ticks, as there are different amount of ticks each minute ?
If we assume there are 50 ticks per minute, then my strategy need to calculate the moving average over (30min * 10 periods * 50 ticks) 15000 ticks ?
Or should I average ~50 ticks into one and calculate over the mean value only ?
I'm a bit lost and I'm wondering what are best practices used by current trading bots to process the ticks data to run the strategy.
Thanks for the help !
submitted by Fredovsky to algotrading [link] [comments]

How different is minute resolution forex data per exchange?

I am in the process of obtaining forex data for backtesting. Many places that offer forex data are vague when it comes to where they got the data. How different would minute resolution bid/ask OHLC data be from one exchange to another? Are they similar enough that I shouldn't worry at that resolution?
submitted by RealcakeTheBoss to algotrading [link] [comments]

Forex Charts as Tools in FX Trading

Forex Charts as Tools in FX Trading
Forex Charts as Tools in FX Trading
Forex trading is not a guessing game. It involves analysis of data and constant vigilance on the side of the trader in order to form an intelligent decision when it comes to making an investment. Traders often use a variety of tools and systems in order to help them determine the trends of the market. Using Forex charts is not uncommon as it helps in visualizing the trends and help traders quantify and understand the trends more accurately. Some of the most popular charts used by FX traders are the line, the bar and the candlestick.
The Line Chart
The line chart is the most basic of the three commonly used charts in Forex. Its name is derived from the series of interconnecting lines of data points formed by tracing the patterns of closing prices over a period of time. Relying on the line chart alone is not enough to make an accurate analysis, however, its strength as a tool is due to the clear visual it provides when it comes to data regarding closing prices from one period to another.
Determining the closing price is important for traders as it sets the value of a particular currency of a given market before trading starts again the next day at that same market. It can also be used to better understand the market sentiment on a given trading day by comparing it to the closing price of a previous date.
The Bar Chart
The bar chart is also known as the "OHLC" chart referring to the data displayed on the bar which are the open, high, low and close of a traded currency in a specific market in a given period of time. It is important to first determine the period covered on the chart in order to accurately understand the trend.
As opposed to the interconnected lines in the line chart, the bar chart is represented by vertical lines with horizontal dashes on each side. The topmost part of the bar represents the high.? The dash on the upper part pointing to the right represents the close and the dash on the lower part pointing to the left is the open. The lowest part of the bar represents the low. The advantage of the bar chart over the line chart is that it allows the trader to analyze not only the opening and closing of a currency price but the highs and lows as well.
The Candlestick Chart
The candlestick chart, also known as the Japanese candlestick chart is probably the most widely used of the three charts but also the most complicated. Its name was derived from its display representation which resembles an upright candlestick with the body representing the price opening and price closing and the wicks on both ends representing the highest price and the lowest price of the day respectively. The term Japanese implies its origin being the analysis tool used in Japanese trading since the 1700s.
The candlestick chart takes into consideration all the variables that are used in both the line and bar chart. In addition to these, it also includes in the analysis the emotion of traders as reflected on the data of a given trading day. As opposed to the other charts which analyze data of a given day's opening from the closing price of the previous day, the candlestick chart analyzes data from the opening of one particular trading day up to its closing. It also provides for a clearer visual as it uses a color coded approach in representing the uptrend and downtrend of the market.
Because of its combination approach in analyzing trends, it is thought to be the most accurate of the three commonly used chart analysis tools.
submitted by fxshooting to u/fxshooting [link] [comments]

How can I get this code to work, I want to have a closure function return an object to access private functions?

Ok so I am pretty new to Go since I have been learning for about 2 days, so I apologize for the super basic question.
So anyways right now I am trying to build a micro service that streams fake simulated stock data via web sockets to a client. The data used is essentially a months worth of historical m1(minute bar data) i got here. The data is stored in redis as a JSON object that is an Array of floats [1081.8, 1101.2, 1060.1, 1090.2] which is the exchange rate of EUUSD (multiplied by 1000) of that current minutes Open value, Highest value, Lowest value, Closing Value, but I stream these points 10 times a second from a Node.js service I spun up, the timestamps are created on the client side since it's a simulation.
Here Is what I do with the data Fake early build of sample trading platform
For the Go Service here is what I have:
This is the Main package on github
This is the closure object thing I am trying to make SymbolSock I uploaded it in github so that comments are easier to read, since it explains what each function/struct does.
symbolHandler explained:
When a client sends in a request to subscribe to a Feed such as GBP/JPY a new struct instance is created called symbolPush
type symbolPush struct{ symbol string clients int feed string lastV float32 atIndex int } 
a SymbolPush instance stores an index atIndex which is the index of the shared dataset, it's symbol (which is like it's namespace/websocket channel) and the last closing price.
Also I have a scale-like case class: Which is used by a function I append to the symbolPush struct to send out an instance to be eventually stringified like this conn.WriteJSON(the return value)
 type seriesPoint struct { Symbol string `json:"symb"` LastValue float32 `json:"lastVal"` MinValue float32 `json:"min"` PointData OHLC `json:"data"` } func (s *symbolPush) GetPoint() seriesPoint { s.atIndex++ lastVV := s.lastV if(s.atIndex == (len(dataPoints) -1)){ s.atIndex = 0 } //index 3 is the close value s.lastV = dataPoints[s.atIndex][3] minVal := dataPoints[s.atIndex][2] return seriesPoint{ Symbol: s.symbol, LastValue: lastVV, MinValue: minVal, PointData: dataPoints[s.atIndex], } } 
Now right now it's obvious I am not returning anything that can be used from symbolsock since last night I deleted my old code since it wasn't working and just left it incomplete since I feel I would like to hear some input before I do a sloppy solution.
What I want to have returned from symbolsock is essentially an object that can do this:
call the closure function with the JSONblob and return an object like seriesSockets := symbolsock.SymbolStream(theData)
Use this object to seriesSockets.joinStream("APPL") which will call newStream function in symbol sockets, either creating a new struct or incrementing the clients field.
signal when a user has unsubscribed to a feed, which will delete the feed if clients == 0
get a point from these structs to be broadcasted to subscribed clients like seriesSockets.getSeriesPoint("APPL")
So my main question is how can I return an object like seriesSockets that accomplishes these things?
Oh here are the Go Playgrounds: main symbolSock
Also for readability here are is the github repo
Also I should mention I asked a question earlier which I will get back to once I have more information, but they're related.
submitted by TheBeardofGilgamesh to golang [link] [comments]

Noob'ish questions - What's wrong with these two tactics?

1) Is "averaging" ask/bid data to tweak algo problematic?
Im sure you guys know, but forex data comes in pair - ask (price / volume) and bid (price / volume)
Currently, im taking the average (ask + bid / 2) to calculate OHLC for both price and via pandas. What is the fundamental problem with using the average to write your algo? I would think that it might be smarter to calculate long entry position based on ask price & volume... and short position on bid price / volume, but this would mean keeping "two" copies of data stream
2) What are known problems using stop limit orders to minimize slippage, other than missing out on potential orders in markets with low volume and fast moving markets? THe only thing I would guess is that creating the stop limit order "gives" hints to the broker... who might be using it against you if their not None-Dealing-Desk broker.
submitted by taewoo to algotrading [link] [comments]

OHLC Strategy for Intraday with exclusive Indicator trick ... OHLC Forex.wmv Forex Trading Episode #2 OHLC. Zaman CariGold kau tak tahu, kena bahan wehh. OHLC CRS How to Use OHLC Price Levels

Ohlc is a mt4 metatrader 4 indicator and it can be used with any forex trading systems strategies for additional confirmation of trading entries or exits. Ohlc range est un metatrader 4 mt4 indicateur et l essence de l indicateur de forex est de transformer les données d historique accumulée. OHLC technique Have you ever wondered what really the greatest traders of Forex business (banks and the largest financial institutions in the world) are guided by? Which indicators do they look at, what platforms and strategies do they use, what influences their decision to enter and exit the market? OHLC Chart: Short for "Open, High, Low, Close chart." This is a securities chart that clearly shows the opening, high, low and closing prices for a security. Home Forex MT4 Indicators Bigger TF OHLC Indicator. Bigger TF OHLC Indicator. Introduction to the Bigger TF OHLC Indicator. The Bigger TF OHLC is a simple but useful tool that displays open, high, low, and close (OHLC) of higher time frame candles in your current TF chart. OHLC comes from open-high-low-close. Simple, isn’t it? More exactly, it refers to the values of a predefined period of time. That’s the time frame. A chart shows the price movement. That is, the price movement of a security. When it comes to Forex charts, the way a currency pair moves. A chart shows the “traces” the pair leaves.

[index] [4580] [5602] [4737] [4714] [2854] [2153] [4928] [1213] [2967] [2937]

OHLC Strategy for Intraday with exclusive Indicator trick ...

Klip Video ini bertujuan untuk berkongsi pengetahuan mengenai bidang Forex Trading serta strategi-strategi yang boleh digunakan untuk menjana pendapatan yang... Forex Trading Episode #2 OHLC. Zaman CariGold kau tak tahu, kena bahan wehh. - Duration: 10:02. Syamim Syamim 2,841 views. 10:02. How to Live Day Trade Cheap Options - Duration: 7:42. Link Telegram Forex ANALISA TEKNIKAL, FUNDAMENTAL DAN BERITA EKONOMI https://t.me/BeritaAnalisaSignal BUKA TRADING ACC ANDA DISALAH SATU BROKER INI FULLE... Learn to read the candle sticks and OHLC bars. ... Forex Trading: 4 Hour Time Frame Winning Strategy - Yusef Scott - Duration: 15:57. So Darn Easy Forex University 129,689 views. THIS VIDEO IS JUST FOR EDUCATIONAL PURPOSE. Our YOUTUBE Channel- SWING TRADING F&O and all individuals affiliated with this Channel assume NO RESPONSIBILITIE...