Generating signals whilst building dataseries
Author: jcranwellward
Creation Date: 6/25/2009 3:35 PM
profile picture

jcranwellward

#1
Hi,

I have a strategy that builds a dataseries before ploting on the price.

Whilst building the dataseries the strategy generates buy and sell signals, but the are not recorded until after I plot the dataseries on the chart.

This means I have to run the code for the dataseries twice, once to build the series, and then once again to generate buy and sell signals.

Does wealth lab only generate signals until after all dataseries have been plotted?
profile picture

Cone

#2
QUOTE:
This means I have to run the code for the dataseries twice, once to build the series, and then once again to generate buy and sell signals.
This isn't necessarily true. You can fill a DataSeries in the "trading loop" without having to run two loops, but it really depends on the indicator you're creating.

QUOTE:
Does wealth lab only generate signals until after all dataseries have been plotted?

1. Data loads
2. Strategy executes
3. Alerts (if any) are generated
4. Chart is displayed with plotting

3 and 4 may be interchanged, but what difference could it possibly make?
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).