Hi
A simple question for you guys:
Exit a position after X minutes
Code please
Post your topic in the correct forum:
_ ProRealTime Platform Support: only platform related issues.
_ ProOrder: only strategy topics.
_ ProBuilder: only indicator topics.
_ ProScreener: only screener topics
_ General Discussion: any other topics.
Thank you 🙂
_ Welcome New Members: for new forum members to introduce themselves.
There you go:
Timeframe(1 minute,UpdateOnClose)
Once TimeLimit = 20 //exit after 20 minutes
If not OnMarket then
Count = 0
Else
Count = Count + 1
If Count >= TimeLimit then
Sell at Market
Exitshort at Market
Endif
Endif
Thanks for a quick and accurate answer.
Works just as I want ,>))