Hi.
IF my conditions, then buy next green candlestick.
I have seen that my conditions might be valid, but I only want to buy the next green candlestick within the next 10 bars..
But I don’t know how to write that code..
Like this:
if green and K> KV and close <= average[20] and timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THEN
BUY NEXT GREEN CANDLESTICK…. (and should only be valid within 10 candlesticks) so if no green candlesticks within 10 candlestick. No entry.,