Iam new to trade based on studies i have created the code which i given below
conditions:-
Last price must be open
volume to increase
Williams must be in oversold
adx trading and psar
Tradescript code i created below:-
LAST > OPEN
AND VOLUME > REF(VOLUME, 1) * 2
AND
WPR(14) < -80
AND
ADX(14)> 25 AND DIP(14) > DIN(14) AND TREND(PSAR(0.02, 0.2),5)
it is not running in scanner. kindly update the code and also give me sell script
LAST > OPEN AND
VOLUME > (REF(VOLUME, 1) * 2) AND
ADX(14) > 25 AND
DIP(14) > DIN(14) AND
TREND(PSAR(0.02, 0.2),5) = UP
This line of the code you mentioned WPR(14) < -80 is correct, but does not match up when the rest of the conditions of your strategy is true.