Posted By: Herrwolf1
Validating Lookback - 05/10/20 04:39
The manual indicates trading won't happen until the lookback threshold has been reached. Is there a way to check the look back and return out of a function if the lookback threshold hasn't been reached?
For example
void run()
// Set look back
I'd like to validate the lookback here and return if it's not ready.
// Consider trading logic
// Enter/exit trade.
thanks.
Posted By: Smon
Re: Validating Lookback - 05/10/20 04:45
if(is(LOOKBACK)) return;
Make sure, you put this after the last series!
Posted By: Herrwolf1
Re: Validating Lookback - 05/11/20 19:09
Thanks for the response.
I did this:
vars _prices = series(priceClose(0));
if (is(LOOKBACK)) return;
Then I received the following error. Is this what you meant by "series"? It works otherwise.
Zorro S 2.25.3
(c) oP group Germany 2020
Registered: Zorro S Subscription
CIFEM_SumUp.dll mounted
SumUp Ver 1.1
Error 055: EUR/USD no 2020 history (History\EURUSD_2020.t6)
Test: CIFEM_SumUp EUR/USD 2012..2020
Error 041: Wrong series usage!
Bar 7999: 1 - bar 8000: 15
Posted By: danatrader
Re: Validating Lookback - 05/12/20 05:20
You need to share more of your code.
Without context I assume it is impossible to analyze what the cause is.