intraday DAX strategy 5min mini1€ spread 1

Viewing 15 posts - 166 through 180 (of 503 total)
  • Author
    Posts
  • #22357 quote
    Raul Vg
    Participant
    Senior

    Also works very well from 09.00h to 09.25h

    #22358 quote
    Nicolas
    Keymaster
    Master
    @Raul 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?
    #22359 quote
    Raul Vg
    Participant
    Senior

    If, 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.

    DEFPARAM CumulateOrders = false

    #22365 quote
    Nicolas
    Keymaster
    Master
    Ok for the last version and the schedule range, but I was thinking of the first initial version. But that’s OK if this old one is depreciated now.
    #22367 quote
    volpiemanuele
    Participant
    Veteran
    @Raul I add my risk manager and the result is very good. For the first period until april 2016 the result is 38k instead 18k. Thanks
    #22368 quote
    CN
    Participant
    Senior
    @Emanuele Tried adding ur manager, but did not suceed, could you post the code? 🙂
    #22369 quote
    volpiemanuele
    Participant
    Veteran
    // Definición de los parámetros del código
    DEFPARAM CumulateOrders = false // Acumulación de posiciones desactivada
    
    DEFPARAM FlatAfter =173000
    
    
    
    HoraEntradaLimite = 091500
    
    HoraInicio = 090000
    
    
    Margin = 60
    Lottfree = 0
    orderSize = max(1,1+ROUND((strategyprofit-lottfree)/Margin))
    ordersize=min(38,ordersize)
    
    n=1
    
    if dayofweek=1 then //Monday
    daytrading=1
    endif
    if dayofweek=2 then // Tuesday
    daytrading=1
    endif
    if dayofweek=3 then // Wednesday
    daytrading=1
    endif
    if dayofweek=4 then //Thursday
    daytrading=1
    endif
    if dayofweek=5 then // Frifay
    daytrading=1
    endif
    
    
    if Time >= HoraInicio and time <= HoraEntradaLimite and daytrading= 1  then
    
    
    c1 = open < close-2
    if not onmarket then
    IF c1 THEN
    
    buy orderSize*n contract AT close+2 stop
    endif
    
    c2= open > close-1
    
    IF c2 THEN
    
    sellshort orderSize*n contract AT close-1 stop
    endif
    endif
    endif
    
    
    
    
    SET STOP ptrailing 5
    #22370 quote
    volpiemanuele
    Participant
    Veteran
    Tomorrow 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
    #22371 quote
    CN
    Participant
    Senior
    @emanuele Getting worse results with this code then the last one.. More trades and more losses
    Namnlös123.png Namnlös123.png
    #22375 quote
    volpiemanuele
    Participant
    Veteran
    @CN For the same period I have 3053 euros of profit.
    #22377 quote
    CN
    Participant
    Senior
    @emanuele Please post a pic so I can see the difference in gain/loss etc
    #22378 quote
    volpiemanuele
    Participant
    Veteran
    view attach
    strat.docx
    #22384 quote
    Raul Vg
    Participant
    Senior
    Try 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
    #22385 quote
    CN
    Participant
    Senior
    So what would you guys prefer @raul and @emanuele? In my opinion there’s more drawdown to the latest daily trading strat.. 45% wins etc… Thoughts?
    #22386 quote
    volpiemanuele
    Participant
    Veteran
    Good 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
Viewing 15 posts - 166 through 180 (of 503 total)
  • You must be logged in to reply to this topic.

intraday DAX strategy 5min mini1€ spread 1


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Raul Vg @raul_v Participant
Summary

This topic contains 502 replies,
has 34 voices, and was last updated by Asteriks
5 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/19/2017
Status: Active
Attachments: 189 files
Logo Logo
Loading...