intraday DAX strategy 5min mini1€ spread 1

Viewing 15 posts - 151 through 165 (of 503 total)
  • Author
    Posts
  • #22279 quote
    Nicolas
    Keymaster
    Master

    @Raul & jonjon

    You’ll have to verify each order to see if the strategy perfom the exact same way when you expand the backtest history.

    I think the main cause could be the lot size calculation that changed accordingly to gain and loss, so if the serie start at a different time, it could be completely different if the strategy was started the day before or the day after… That’s the main reason a trading strategy should always be tested with constant lot size.

    jonjon thanked this post
    #22280 quote
    jonjon
    Participant
    Average

    Hi all. Did anyone else’s system not fire this morning? This happened to me. I contacted PRT and they said they had no report of any problems although I see at least one other member (above) having a similar problem.

    #22281 quote
    volpiemanuele
    Participant
    Veteran

    @nicolas

    hi,

    today in Germany 30 in real account no trade  but in demo account the same strategy today trade. Why ?

    Just now in demo account trade with wall street cash with little gain (ptrailin 5.4 and 5..two version). Thanks

    #22282 quote
    Raul Vg
    Participant
    Senior

    Hi jonjon, that has happened proque in the next bar of 5 minutes the price has not reached to touch the opening order, to be scalping, I look for jerks in the market like yesterday. And if they do not occur, better not to enter.

    Let’s try what Nicolas says, try this robot please. Just put a contract steadily, although not the same to not increase or decrease, we can see what happens in 2013.

    By the way, do you pay for having 200,000 bars in DAX?

    DAX-5-MIN-1-contract.itf
    #22286 quote
    Raul Vg
    Participant
    Senior

    Check that in the demo you have the same version as in real, because earlier did not launch orders, but bought directly, now launches the order and if it does not touch the price in the next bar, it is eliminated because there has not been enough movement Strong in price and no longer worth risking. If someone wants to try to keep the order, I could try, I would not know how to do this so that the order stays in the market all day in case it touches at any time.

    #22287 quote
    mamio
    Participant
    Veteran

    @volpiemanuele

    What strategy on Dow are you running?

    The minimum trailing stop distance with IG seems to be 10 points for my demo account. What about you?

    #22310 quote
    Raul Vg
    Participant
    Senior

    Hi guys, Testing things in my head, I just happen to something new, maybe a little crazy, but the backtests give a good result.

    It is basically the same as it has been until now, but every 5 minutes the first 15 minutes of the day, ie at 9:00 will place an order depending on the direction of the bar at 8:55 p.m., at 9:05 p.m. another with The direction of the bar from 9:00 p.m., at 9:10 p.m. another order with the direction of the bar of 9:05 and finally at 9:15 p.m. another with the direction of the bar of 9:10 p.m.

    I do not put accumulator of positions, I always always put 10 contracts.

    The problem when performing the backtest is that at most by backtest can perform 500 checks tick by tick, when performing 4 operations daily, reaches this figure in a few months, so you have to go backtesting step by step. In this case it does not influence the number of contracts because it always introduces the same.

    Attached captures the backtests step by step.

    As in the previous program, there are days that work better than others. It works especially well operating from Monday to Wednesday or from Monday to Thursday, without operating on Fridays.

    Monday-to-Thursday1.png Monday-to-Thursday1.png Monday-to-Thursday2.png Monday-to-Thursday2.png Monday-to-Wednesday1.png Monday-to-Wednesday1.png Monday-to-Wednesday2.png Monday-to-Wednesday2.png
    #22317 quote
    CN
    Participant
    Senior

    Very nice Raul! Great work.

    Send the code so I can backtest aswell

    #22318 quote
    Raul Vg
    Participant
    Senior

    That’s how the chart works every day of the week.

    In this case, as there is no accumulator of contracts, no matter how it fails on Fridays because it does not cut any winning streak, each day is independent of the previous one.

    For that reason while in the long of benefits, can be operated on Fridays also Attached step by step because the backtest has a maximum of 500 checks tick by tick.

    Monday-to-Friday1.png Monday-to-Friday1.png Monday-to-Friday2.png Monday-to-Friday2.png Monday-to-Friday3.png Monday-to-Friday3.png
    #22323 quote
    Raul Vg
    Participant
    Senior

    This is the code to operate every day of the week, if you want to modify it, you have to put a 0 instead of 1, where it puts daytrading = 1.

     

    // Definición de los parámetros del código
    DEFPARAM CumulateOrders = false // Acumulación de posiciones desactivada
    
    DEFPARAM FlatAfter =173000
    
    
    
    HoraEntradaLimite = 091500
    
    HoraInicio = 090000
    
    
    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 10 contract AT close+2 stop
    endif
    
    c2= open > close-1
    
    IF c2 THEN
    
    sellshort 10 contract AT close-1 stop
    endif
    endif
    endif
    
    
    
    
    SET STOP ptrailing 5
    #22324 quote
    Joachim Nilsson
    Participant
    Average

    Sick results Raul!! You mind sharing the code?

    #22325 quote
    CN
    Participant
    Senior

    @raul
    What happends if we add an acum to the daytrade code?

    #22326 quote
    Raul Vg
    Participant
    Senior

    You could add both an accumulator as in the previous version, as a risk manager that as benefits increase, contracts rise. We would have to see how the results are with this.

    #22334 quote
    Nicolas
    Keymaster
    Master

    @everyone

    Do you find any differences in backtests when you uncheck the tick/tick functionnality?

    #22342 quote
    Raul Vg
    Participant
    Senior

    Nicolas, this is the difference in the same period of time.

    bb.png bb.png bbb.png bbb.png
Viewing 15 posts - 151 through 165 (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...