What would be a way to submit to Auto-Trade a strategy (that gives max profit optimised over 4 years) on a 9 hour timeframe? As we know ProRealTime won’t allow 9 hour time frames on Automatic Trading.
Is something like below feasible (Code for SellShort shown for simplicity) and submit to Auto-Trade on a 1 hour timeframe? I tried it but it doesn’t execute at 09:00 and 18:00 like a 9 hour timeframe does.
I could spend ages trying to suss out what is going on, but you guys are so helpful on here and you may know the answer instantly?
Auto-Trade seems to always check conditions / start again at midnight (or at least it does on my Backtest on a 9 hour timeframe) hence the inclusion of 000000. Bars show at 09:00, 18:00 and 00:00 on Backtest on a 9 hour timeframe.
I tried below but it doesn’t give the same results as usng a 9 hour timeframe.
Code for SellShort shown for simplicity (I also tried Time = etc) :
But even then there were not many deals initiated and then I reflected on what you said … I was using ‘Cross Over / Cross Under’ on the 9 hour timefrae and this criteria wasn’t being met in all instances on the 1 hour timeframe. So I changed ‘Cross Over / Cross Under’ to > / < and then I got loads of deals initiated.
So the above principle can be adapted for a Timeframe which is disallowed by PRT Auto-Trade.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.