Hi All
Can someone please help with what I think is a simple code? I’m not a coder so am fumbling around getting nowhere.
Basically I want to place a sell order if the following occurs….
IF RSI is over 70
AND RSI for the current day -1 is under 70
AND RSI for the current day -2 is under 70
AND RSI for the current day -3 is under 70
AND RSI for the current day -4 is under 70
AND RSI for the current day -5 is under 70
Thanks
Hi Cusack
Using a Daily Timeframe Chart …
If RSI(14) > 70 AND RSI(14)[1] < 70 AND RSI(14)[2] < 70 AND RSI(14)[3] < 70 AND RSI(14)[4] < 70 AND RSI(14)[5] < 70 THEN
Buy 1 Contract at Market
ENDIF
I’m terrible at remembering syntax so watch out for syntax errors in above but PRT should alert you anyway when you try to run it.
Cheers
GraHal
You rock GraHal! thank you!
Not really but thanks anyway! ha 🙂