A request that was addressed to ProRealTime:
I am wanting to build a system that just buys the open of the market on a Monday.
Entry is at the open of the cash market on the ASX
Target is 7 points and stop is 7 points
Suggestion for an anwser:
if dayofweek=5 then
buy 1 share at market
endif
Set stop ploss 7
Set target pprofit 7
It’s clearly a mistake, due to rush I guess. To test if it’s Monday it should read “if dayofweek=1”.
Thanks Roberto, but I think it’s right since test are made on Close and trade on next open. So if you want to buy at Monday open, you must do your test at Friday Close 🙂
Thank you for the help on this. I have no idea to do this programming but this is greatly appreciated. If you wanted to stop to be a break of the opening 5m bar how would you do that?