ohlc · GitHub Topics · GitHub

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
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]

Getting OHLC Candlesticks  Algorithmic Trading & Investing with the DARWIN API Intro and Getting Stock Price Data - Python Programming ... Introduction to Technical Analysis for Beginners - YouTube Download FOREX candlestick tick data for FREE using Python ... ASK John - Ohlc or candle stock chart Candlesticks  OHLC Data  Python for Beginners  Quantra Free Course How The Stock Exchange Works (For Dummies) - YouTube Forex Super Model Daily Market Analysis - Data Driven ... Accessing Extended Hours (or Pre-Market) Data in ... OHLC Forex.wmv

Multi Bar OHLC Compare Panel by RagingRocketBull 2019 version 1.0 This indicator lets you compare OHLCV values from several specified bars. Bars can be dynamic/persistent. You can also use it as an alternate OHLC panel if you don't like small font of the native TradingView panel. It uses Pinescript v4 to output data dynamically as string labels ... 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 GVI Forex Database: Free Forex Historical Data. The GVI database program provides daily free forex historical data (close high low) to the euro start (January 1, 1999). The most up to date forex data for major forex (currency) pairs and crosses downloadable to your spreadsheet. For instructions on how to access the free forex data, click here. No, OHLC refers to market data: Open, High, Low and Close of a period. Open would be the first B column value. High would be the highest value of the 5 rows of column C, Low would be the lowest value of the five rows being combined of column D. And close would be the value of the final of the 5 rows in column E. 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. Forex Tester is a software that simulates trading in the Forex market, so you can learn how to trade profitably, create, test and refine your strategy for manual and automatic trading. More info. Historical data. Forex historical data is a must for back testing and trading. Forex data can be compared to fuel and software that uses this data is like an engine. More info. Visual Strategy Builder ... 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 ...

[index] [12512] [20557] [25156] [22171] [15832] [1602] [13598] [14671] [4433] [21904]

Getting OHLC Candlesticks Algorithmic Trading & Investing with the DARWIN API

Forex Super Model Daily Market Analysis - Data Driven Flows Out of the GBP/JPY - Thurs 12/11/2020 - Thanks for watching! Contact: [email protected] W... Trading 101: Candlesticks charts VS Bar Charts (OHLC) Trading Candlestick charts - Duration: 9 ... Real Time Stock Market Data Analysis with Python - Five Minute Python Scripts - Duration: 6:14 ... 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. Why are there stocks at all? Everyday in the news we hear about the stock exchange, stocks and money moving around the globe. Still, a lot of people don't ha... This is my first video where I show my face and talk, so please do not be so brutal on me in comments for saying "actually" or "fx good quality data" too man... ASK John - Ohlc or candle stock chart Free Trading course -- http://officialjohnhowell.com/ytfc/ http://officialjohnhowell.com/ In this video , I'm going to ... Welcome to a Python for Finance tutorial series. In this series, we're going to run through the basics of importing financial (stock) data into Python using ... Klip Video ini bertujuan untuk berkongsi pengetahuan mengenai bidang Forex Trading serta strategi-strategi yang boleh digunakan untuk menjana pendapatan yang... NEW COURSE: https://chartguys.com/courses/entries-exits/ Introduction to Technical Analysis for Beginners Technical Analysis Basics Technical Analysis for Be... In this video, Jason Smith with RealLifeTrading.com will walk you through how to easily access Extended Market Hours (or Pre-Market) Data within TradingView....