Can someone show me how to write these conditions please?
10 day ROC > 0
today’s ROC > highest high value of ROC in the previous 10 periods.
time stamp > 5pm
profit stop at 30 points
stop loss at 30 points
Thanks a lot.
This is the code for this specific strategy:
defparam cumulateorders=false
mroc=ROC[10](close)
if mroc>0 and mroc>highest[10](mroc)[1] and time>=050000 then
buy 1 contract at market
endif
set stop ploss 30
set target pprofit 30
Thanks for helping Nicolas.
Is pprofit different to profit?
I found it.
p = point, as opposed to %, $ or trailing.