ohlc · GitHub Topics · GitHub

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]

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
https://preview.redd.it/spzblmjpkq711.png?width=550&format=png&auto=webp&s=fc276e6f0d7ca17c6444024807d02e30e6b9eda6
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
https://preview.redd.it/b5mlupuqkq711.png?width=550&format=png&auto=webp&s=80eb5e17d00dc9881e0483c5198aace79f2f3c8c
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
https://preview.redd.it/on3vumnrkq711.png?width=550&format=png&auto=webp&s=694676fefc5498a3b0d634434c9b46dd24e1392a
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.
https://www.fxshooting.com
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:
Step1:
call the closure function with the JSONblob and return an object like seriesSockets := symbolsock.SymbolStream(theData)
Step2:
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.
Also:
signal when a user has unsubscribed to a feed, which will delete the feed if clients == 0
Also:
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
Thanks!
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]

FX Incognito – OHLC is ALL you need to trade forex Getting OHLC Candlesticks  Algorithmic Trading & Investing with the DARWIN API Forex Foundational Topics - PRICE & OHLC FX Incognito Review: Learn The OHLC Technique How to Use OHLC Price Levels Export OHLC data from MetaTrader4 to Excel - YouTube Candlesticks  OHLC Data  Python for Beginners  Quantra Free Course

crypto trading stock forex exchange-rates market-data cfd etf stock-data stock-prices historical-data dukascopy tick-data candlestick-chart commodities ohlc forex-data Updated Sep 13, 2020 Thirdly, when trading on the OHLC charts, traders need to familiarize themselves with the bar colors. In an uptrend, the bars turn green or white (depending on the chart settings), and in a downtrend, the colors turn black or red. Traders can take positions with these colors’ appearance and exit the trade when the bars change their color. Lastly, reversals can occur on the OHLC charts. In an ... ohlc — Sehen Sie sich die Trading Ideen, Strategien, Meinungen und Analysen absolut kostenlos an! — Indikatoren und Signale 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. Traders have access to the OHLC data instantly. The MetaTrader platform allows hiding the OHLC indicator. However, even if it doesn’t appear on the screen, the platform shows the values. Simply move the cursor over any bar. On the lower right corner, the trading platform will crunch the numbers. We’ll use the OHLC chart explained here to illustrate a line chart and a candlestick chart too ... Yesterday daily data you need are Open High Low and Close.it for determine level of price action and your set up for today. One sure thing that will happen for today is new level of OHLC which still running or forming. Your task is to predict or estimate where it will reach. If i have more time i will explain more detail with picture..but not today. Yesterday high or low if breakout succeed ... This skill will give you more ways of analyzing the markets and extracting profitable trading patterns. Where To Get Forex Data. There are a few ways to download historical Forex data. I provide my latest finds on the Resources page. Most quality sources provide data back to about 2001. If you can find clean data sources that go back further than that, let me know in the comments below. But ...

[index] [29591] [7502] [19545] [302] [14085] [23923] [3041] [24203] [14610] [25268]

FX Incognito – OHLC is ALL you need to trade forex

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. ... 2) One benefit of availing the /candles endpoints is pre-sampled data by timeframe, based to market open and close hours - eliminating the need for algorithmic traders to make these adjustments ... FX Incognito is a trading system based on the OHLC (ope... Skip navigation Sign in. Search. Loading... Close. This video is unavailable. Watch Queue Queue. Watch Queue Queue. Remove all ... Short video explaining price and OHLC in Forex Trading. This MT4 script export OHLC data from MetaTrader4 to Excel using DDE (Dynamic Data Exchange). It is imperative that we mention Candlesticks in the section on Data Visualization, as candlesticks are arguably the most beautiful and widely used representation of OHLC data. FX Incognito returns to the roots of trading, when traders used only basic information of the price, like: opening, close, highest price, lowest price. This technique was created a long time ago ...

http://arab-binary-option.liafranjingsmatin.cf