hello
i open a position with trailing stop
i am looking for instruction to time stop the position
rule is: exit long position 1 hour after the open long if price is below price of buy.
is it possible ?
to try
if condition then
buy n contract at market
temp =time
endif
if temp+010000 > time and close<positionprice then
sell at market
endif
I moved this topic to the English support forum.
Please use the correct language and forum. Thank you. 🙂
I’m not sure that works fifi743 as temp+010000 will greater when it is set at the open.
You also have to consider what happens when the day changes.
if condition then
buy n contract at market
exittime =time + 010000
if exittime >= 240000 then
exittime = exittime - 240000
endif
endif
if onmarket and time >= exittime and close < positionprice then
sell at market
endif
if not onmarket then
temp=250000
endif
if condition then
buy n contract at market
temp =time
endif
if temp+010000 < time and close<positionprice then
sell at market
endif
yes i made a mistake