Here is the following code:
return (DMIPlus(21)>DMIMinus(21)) and (EMA(C,8)>EMA(C,13)) and ADX(21)>DMIMinus(21)and RSI(C,14)<75 and ADX(21)>ADX(21)\1\
and ((ADX(21)-ADX(21)\1\) > ADX(21)* 0.25) and (hour() >= 17 or hour() < 8 ) ;
Tradecision Support Team
Hi i was hoping if you could lend a hand with the following strategy. We are looking at a long strategy with the following conditions and have listed what we have written in the strategy builder below.
1. Firstly we have ADX(21)>ADX(21)\1\ listed though we are wanting the ADX to only give a buy when the ADX value in the current period is larger than 0.25 than the previous period. IE buy if current ADX is 24.31 and previous period is 24.04 for instance though not buy if current period is 24.31 and previous is only 24.20.
2. Secondly we are needing to put some time condition into the strategy so that it doesn't constantly run across all timeframes going back in the charts. We are wanting it to only trade between 17:00 and 08:00 though anything outside this timeframe will not be accounted for in the strategy.
Can this be done?
Long Entry Condition:
1) 8 EMA > 13 EMA
2) +DMI > -DMI
3) ADX > -DMI & ADX increase from period before of >0.25
4) RSI < 75
return (DMIPlus(21)>DMIMinus(21)) and (EMA(C,8)>EMA(C,13)) and ADX(21)>DMIMinus(21)and RSI(C,14)<75 and ADX(21)>ADX(21)\1\ ;