Forums ProRealTime English forum ProOrder support multiple events on a single bar – multitimeframe? Reply To: multiple events on a single bar – multitimeframe?

#81838

This is a version supporting MTF (I only have tested it for syntax errors):

This will set WasInMarketFlag once in a 1-Minute TF and will be cleared each new day, so your 1-hour TF will not enter any longer for the rest of the trading day.

You will have less history.

If you don’t want to use MTF, then you would be able to know you were ONMARKET by checking STRATEGYPROFIT against its initial value saved at the beginning of each new day, something like: