Hi guys, anyone can help me in coding the instructions of trading not more than once a day?
I have a system operating on the 2 hours and I want it to trade once at most every day.
Best Regards
Francesco
Here you go:
once tradecounter=0
if intradaybarindex=0 then
tradecounter=0
endif
if yourbuycondition and not tradecounter then
buy 1 contract at market
tradecounter=1
endif
I made an answer to the same question yesterday in the french forum section: https://www.prorealcode.com/topic/1-position-par-jour/
Here is another way which I have not tested myself:
Trading Options: Automatic Trading: Stop due to number of orders: Change the number to whatever you like. 🙂