Unable to back test RSI and Hull average strategy
Forums › ProRealTime English forum › ProOrder support › Unable to back test RSI and Hull average strategy
- This topic has 53 replies, 5 voices, and was last updated 3 years ago by bearbull.
-
-
06/06/2020 at 8:26 PM #134926
This variable is not used in the code:tradetime”
Did you use TradeTime between an If Then statement?
06/08/2020 at 3:21 PM #135203GraHal,
You are correct, I did not use Tradetime between an If and then statement – thanks for that.
As an aside……………If you create two separate strategies, can they be both used at the same time on one market?, or only one strategy at a time can be used on a that particular market ?
thanking you
06/08/2020 at 3:58 PM #135206can they be both used at the same time on one market?,
Yes 2 separate Strategies can be run at the same time on the same instrument, even at the same Timeframe.
Only problem you may occasionally experience is that if 2 trades on the same instrument in the same direction are attempting to be executed at exactly the same time then 1 trade may be delayed for a few milliseconds. Not much of a hardship I’d say? 🙂
06/15/2020 at 12:31 PM #135995GraHal
Thank you for that. I’m thick LOL and so could not get this strategy to work in one system.
So I have created (with your help) two separate systems, one to go long, and one to go short on a 15 minute time frame for the DAX – very simple.
BUT…..eg- I ran then both live this morning 08.00-12.00 and it made a loss (-48.50) on the long side and a profit (+47.20) on the short side.
Immediately ‘back-testing’ it in the same hours, it made a loss (-26.00) on the long side and a profit (+149.00) on the short side???
Its used in a spread bet account with IG (DAX spread 1.2 and IG take their cut of £1.20) so that is all covered. Trading £1/pip.
…………….am I missing something? I knew that it wouldn’t be perfect re slippage etc but this is a vast difference between trading live and back test.
I have attached both the separate codes……….
I am obviously missing something fundamental here?
Dax long code 15m chart12345678910111213141516171819// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// The system will cancel all pending orders and close all positions at 0:00. No new ones will be allowed until after the "FLATBEFORE" time.DEFPARAM FLATBEFORE = 080000// Cancel all pending orders and close all positions at the "FLATAFTER" timeDEFPARAM FLATAFTER = 163000// Enter LongC1 = CLOSEC2 = OPENC3 = CLOSE>OPENIF C1 AND C2 AND C3 THENBUY 1 PERPOINT AT MARKETENDIF// Stops and targetsSET STOP pTRAILING 4DAX going short code 15m123456789101112131415161718// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivated// The system will cancel all pending orders and close all positions at 0:00. No new ones will be allowed until after the "FLATBEFORE" time.DEFPARAM FLATBEFORE = 080000// Cancel all pending orders and close all positions at the "FLATAFTER" timeDEFPARAM FLATAFTER = 163000// Enter shortC1 = CLOSEC2 = OPENC3 = CLOSE>OPENIF C1 AND C2 AND C3 THENSELLSHORT 1 PERPOINT AT MARKETENDIF// Stops and targetsSET STOP pTRAILING 406/15/2020 at 5:09 PM #136018……..just dont get it?
Dax 08:00 – 16:30 live results
Live Long -76.20, Live Short +52.00 = -£24.20
Dax 08:00 – 16:30 back test results
Backtest Long +11.00. Backtest short +252.00 = +263.00
See attached results of the long and short back tests………
06/15/2020 at 5:42 PM #13602206/15/2020 at 5:55 PM #13602506/15/2020 at 6:41 PM #136027Grahal
Thanks for getting back to me.
So back testing is not reliable then? As the results do not reflect the true market? Yes, activating the tick by tick changes the results……or should I say reduces the results. LOL
1 user thanked author for this post.
06/15/2020 at 6:43 PM #136028 -
AuthorPosts
Find exclusive trading pro-tools on