Historical data in real time trading
Author: aldquor
Creation Date: 2/6/2012 2:40 PM
profile picture

aldquor

#1
When you do live trading do you start from scratch or indicators are calculated based on the previous historical data? For example for moving averages, does WL count bars of the previous day or starts calculating them from the moment one switches on live trading? If historical data is not counted is there any technique to connect it to the real time data stream?

Thanks
profile picture

Cone

#2
1. The script executes using the chart data (and data from any secondary symbols referenced in the script).
2. Everytime a new completed bar is added to the chart, the entire process starts from scratch -> go to 1.

That's basically it. Just keep in mind that the script only sees completed bars. The partial bar data that you see while streaming is eye candy only - the script does not process it.
profile picture

aldquor

#3
So each time you start a new trading day, don't you have a chart of the previous several days? It seems quite strange as if for example you trade based on the crossover of 10 period and 20period SMA on 1 hour chart and start chart from scratch every day you would never have a trade as it is not possible complete calculating moving averages during 1 trading day. Is that right? Is there a way to work it around?
profile picture

Eugene

#4
Of course you have the chart backfilled with all the data of the previous N days (bars, weeks... depending on your choice in the Data Loading control).
profile picture

aldquor

#5
When buying WL Developer, can one have a paper account to check how live trading works? Or is this option only available in the WL PRO version?
profile picture

Eugene

#6
The Paper Trading feature is "platform-agnostic" i.e. paper accounts are also available in Wealth-Lab Developer. One point to consider: to my knowledge, the only data provider that supports streaming quotes when paper trading is Yahoo! provider.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).