How to find Forex historical data that will help you ...

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]

OHLC Forex.wmv Candlesticks  OHLC Data  Python for Beginners  Quantra Free Course Importing Darwinex Tick Data into Trading & Backtesting Applications, in Python 3 (part 1) Bar Chart Introduction - Open High Low Close (OHLC), Range ... FX Incognito Review: Learn The OHLC Technique OHLC Strategy for Intraday with exclusive Indicator trick ... OHLC Historical Data in Google Sheets - YouTube

Forex Forum The Global-View Forex Forum is the hub for currency trading on the web. Founded in 1996, it was the original forex forum and is still the place where forex traders around the globe come 24/7 looking for currency trading ideas, breaking forex news, fx trading rumors, fx flows and more. This is where you can find a full suite of forex trading tools, including a complete fx database ... Dataset: GBPUSD one hour OHLC data between 04/11/2011 and 01/30/2018, so it represents 41,401 one hour OHLC bars, for about 7 years of data Training Set : 2011–2014 Validation Set : 2015 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. ForexFeed data services deliver Real-Time (Bid,Ask,Mid) or Intraday (OHLC) Currency and Metals data to your Apps, when and where you need it. Ready to run Data APIs, standards based Web Services and Open Data Formats make feeding real-time Currency & Precious Metals quotes into your applications easier than ever! If let say you have my broker data ( that is indonesian local broker with GMT +2) . I dont have experience about this case how to compare or harmonize that. To be note that this strat based on a very basic concept of price movement during specific timeframe( daily) that consist produce OHLC data. Our job to analysis and to take advantage of the ... historical news for 9 main currency pairs (free data package provides users with historical news for the USD currency only) ability to see more types of news: all the events of low, medium and high importance ; more precise backtesting results: it is extremely important for trading strategies that depend even on small price fluctuations; daily updates: you can even backtest the yesterday’s ... 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] [7046] [23129] [13567] [28338] [10195] [3462] [14414] [26196] [16844] [14033]

OHLC Forex.wmv

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 ... We are not SEBI Registered Financial Advisor. Before Taking Any Decision Please Consult Your Financial Advisor. ----- Refe... In this tutorial, we demonstrate how algorithmic traders can organize and convert Darwinex tick data into tick and/or OHLC CSV. Brought to you by Darwinex: h... THIS VIDEO IS JUST FOR EDUCATIONAL PURPOSE. Our YOUTUBE Channel- SWING TRADING F&O and all individuals affiliated with this Channel assume NO RESPONSIBILITIE... Klip Video ini bertujuan untuk berkongsi pengetahuan mengenai bidang Forex Trading serta strategi-strategi yang boleh digunakan untuk menjana pendapatan yang... 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. This is the introductory video to the Chart Pattern section at FinVids.com. It discusses the four parts of the Bar Chart: Open, High, Low, and Close and disc...

#