AotoTrade not Triggering when backtest shows a trigger

Forums ProRealTime English forum ProOrder support AotoTrade not Triggering when backtest shows a trigger

Viewing 6 posts - 1 through 6 (of 6 total)
  • #250465

    Hi

    I have just started this algo on Autotrade on a 10 Sec TF  but the no trade was triggered when the backtest shows a trigger .

    Can anyone offer an explanation

    //————————————————————————-
    // Main code : ASX Daily close H/LV2.4(1)
    //————————————————————————-
    defparam cumulateorders = false
    DEFPARAM FLATBEFORE = 080000
    DEFPARAM FLATAFTER = 172900
    DM=0//Month=6//no trade for June
    If Month=MM and currentdayofweek=DW then
    NT=1
    else
    NT=0
    endif
    Start=080000
    If time=start then
    BT=0
    ST=0
    Flg=0
    RT=0
    Endif
    noentrybeforetime=008000
    noentryaftertime=170000
    timeenterbefore=time>=noentrybeforetime
    timeenterafter=time IntradayBarIndex)
    //——————————————-
    if low[2] < low[3] AND high[1] > low[2] AND low < low[2] THEN buyTrigger = high[1] endif // === 1-2-3 HIGH REVERSAL SETUP (SHORT) === if high[2] > high[3] AND low[1] < high[2] AND high > high[2] THEN
    sellTrigger = low[1]
    endif
    If close crosses over buytrigger and ind1>ind2 and OTD and TW Then
    BUY N CONTRACT AT market
    BT=BT+1
    SL= lstp
    TP=ltgt
    Endif
    If close crosses under selltrigger and TW and ind1strategyprofit and RT<2then
    Flg=1
    if ind1
    strategyprofit and RT<2 then
    if ind1>ind2 then
    buy 2*N contracts at market
    RT=RT+1
    SL=lstp1
    TP=ltgt1
    MK2=MK2+1
    endif
    endif
    set stop ploss SL
    set Target Pprofit TP

    #250470
    #250487

    Aunque no lo he mirado en profundidad, esta linea no esta incorrecta?
    noentrybeforetime=008000, no seria 080000

    2 users thanked author for this post.
    #250488

    Here are some clues about those differences https://www.prorealcode.com/topic/backtesting-and-demo-account-algo-doesnt-match-live-algo/#post-175691.

     

    1 user thanked author for this post.
    #250503

    no trade was triggered

    Might it be due to Instrument changes which have been made over this last weekend re DAX, see this Topic …

    https://www.prorealcode.com/topic/algo-stopped-position-closed/page/2/#post-250455

    1 user thanked author for this post.
    #250534

    Minimal order size? Try with 1 contract.

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login