DAX 1 min active algo
Forums › ProRealTime English forum › ProOrder support › DAX 1 min active algo
- This topic has 5 replies, 2 voices, and was last updated 5 years ago by Vonasi.
-
-
09/12/2019 at 3:24 PM #107356
Well, what do you think?
Optimized the code on 70% data.
Made a WF of 5 periods of 70%.
Here is the result.
Do you think the code looks good or did I miss something?
Was looking for an active algo, this one makes 3 trades a day.
The reason I want an active algo is because I am tempted to do manual trades if my algo is flat.
Then it really goes to hell
It’s a simple code that you see.
Have heard a lot of people say that of all the codes you have, it is the easiest one that goes best, you should perhaps not complicate it?
DAX 1 min
Spread=1
09/12/2019 at 3:26 PM #10735809/12/2019 at 3:40 PM #107359Sorry for that..
The code.
12345678910111213141516171819202122232425// Definition of code parametersDEFPARAM CumulateOrders = False // Cumulating positions deactivatedTIMEFRAME (15 minute, default)// Conditions to enter long positionsindicator1 = Average[53](close)c1 = (close CROSSES OVER indicator1)indicator3 = RSI[14](close)c3 = (indicator3 > 10)// Conditions to exit long positionsindicator2 = Average[35](close)c2 = (close CROSSES UNDER indicator2)//TIMEFRAME (default)IF c1 AND c3 and Not OnMarket THENBUY 1 CONTRACT AT MARKETENDIFIF c2 AND LongOnMarket THENSELL AT MARKETENDIF// Stops and targets// --- NOT ALLOWED ---> SET STOP pLOSS a pTRAILING b//uncomment one of the following lines//SET STOP pLOSS aSET STOP pTRAILING 5909/12/2019 at 4:54 PM #107368Whenever I see something with averages as entry and exit filters I worry about curve fitting and so like to optimise each one separately and see how important each variables variable is by graphing them in Excel. Attached is the image for the period in the exit average for values 2 to 52. Clearly there is a peak curve fitted value for the data sample you have – either side profit and performance falls away rapidly. Perhaps a little curve fitted.
09/12/2019 at 5:37 PM #10737209/12/2019 at 10:58 PM #107396My quick test of one variable does not mean that as a strategy it is a complete failure it just says that that one variable is quite optimised for the data we are testing it on. On a 1 minute time frame we have very limited data for in sample and out of sample testing. You have found something that works on the sample we have. Perhaps if we re-optimised the variables very often it would keep working… or perhaps we would always be just slightly behind the curve on such a fast moving time frame?
-
AuthorPosts
Find exclusive trading pro-tools on