intraday DAX strategy 5min mini1€ spread 1
Forums › ProRealTime English forum › ProOrder support › intraday DAX strategy 5min mini1€ spread 1
- This topic has 502 replies, 34 voices, and was last updated 4 years ago by Asteriks.
-
-
01/24/2017 at 7:44 PM #2235701/24/2017 at 7:54 PM #22358
Ok, thanks. Seems clear that the upper equity curve is the one without the ticks backtest.
Another question that I’d like to ask, to confirm my thought about the strategy, are there days with multiple entries/exit on the same candlestick?
01/24/2017 at 8:12 PM #22359If, basically it is the same strategy as before, before I only put an operation at 09.05h depending on the bar that goes from 09.00h to 09.05h. But now, every 5 min during the first 15 min of the day.
example:
* 08.55h to 09.00h: positive bar. Put order at 09.00h of purchase +2 points above, trailing of 5 points.
* 09.00h to 09.05h: negative bar. Put order at 09.05h of sale -1 points below, trailing of 5 points.
* 09.05h to 09.10h: positive bar. Put order at 09.10h of purchase +2 points above, trailing of 5 points.
* 09.10h to 09.15h: negative bar. Put order at 09.15h of sale -1 points below, trailing of 5 points.
In any case, if during any of those 5 minutes the price does not touch the order, the order is closed and the order of the next bar is opened.
Every day, will enter 4 operations, unless you open one and the next bar has not closed, because the accumulation of orders is deactivated.
1DEFPARAM CumulateOrders = false01/24/2017 at 9:07 PM #2236501/24/2017 at 10:01 PM #22367I add my risk manager and the result is very good. For the first period until april 2016 the result is 38k instead 18k. Thanks
01/24/2017 at 10:17 PM #2236801/24/2017 at 10:19 PM #223691234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859// Definición de los parámetros del códigoDEFPARAM CumulateOrders = false // Acumulación de posiciones desactivadaDEFPARAM FlatAfter =173000HoraEntradaLimite = 091500HoraInicio = 090000Margin = 60Lottfree = 0orderSize = max(1,1+ROUND((strategyprofit-lottfree)/Margin))ordersize=min(38,ordersize)n=1if dayofweek=1 then //Mondaydaytrading=1endifif dayofweek=2 then // Tuesdaydaytrading=1endifif dayofweek=3 then // Wednesdaydaytrading=1endifif dayofweek=4 then //Thursdaydaytrading=1endifif dayofweek=5 then // Frifaydaytrading=1endifif Time >= HoraInicio and time <= HoraEntradaLimite and daytrading= 1 thenc1 = open < close-2if not onmarket thenIF c1 THENbuy orderSize*n contract AT close+2 stopendifc2= open > close-1IF c2 THENsellshort orderSize*n contract AT close-1 stopendifendifendifSET STOP ptrailing 501/24/2017 at 10:23 PM #22370Tomorrow I replace these instead the previous version. I add in the variable Lottfree the result of the previous veersion that for me is equal (-20 (it’s gain)) in order to allow my risk manager. Thanks
01/24/2017 at 10:29 PM #2237101/24/2017 at 10:44 PM #22375@CN
For the same period I have 3053 euros of profit.
01/24/2017 at 10:45 PM #2237701/24/2017 at 10:52 PM #2237801/24/2017 at 11:27 PM #22384Try to remove the Fridays, or to see how it works every day of the week separately you can go testing it only on Mondays, only on Tuesdays … and you will see how historically Fridays works badly. For them it changes the value daytrading = 1, by daytrading = 0 on the day that you do not want it to operate. If you put in all 0, except on Friday, it will only operate on Fridays. I personally do not like how Friday works
01/25/2017 at 6:14 AM #2238501/25/2017 at 8:50 AM #22386Good Morning,
i start in real with my version because I need to start with 1 lot.Until Friday, I’m on a business trip and I have no time to do other tests including those suggested by Raoul. Thanks
-
AuthorPosts
Find exclusive trading pro-tools on