Improving Brent strategy

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #217496 quote
    nightjimbob
    Participant
    New

    Hi All, I have been running this profitable Brent strategy for a few weeks, but it never seems to hit the performance of backtesting, Can anyone improve the win rate or cut losses?
    Thanks
    Craig

    //-------------------------------------------------------------------------
    //TDI OIL Brent Crude (1£ Contracts) 2H Credit to ElsborgTrading
    //
    //-------------------------------------------------------------------------
     
    // code-Parameter
    DEFPARAM CumulateOrders = false
     
    //DEFPARAM FlatAfter = 230000
    //DEFPARAM Flatbefore = 030000
     
    //MONEY MGT//
     
    
    PositionSize  = 2.5
     
    //TDI indicator
    //parameters :
    lengthrsi=13
    lengthrsipl=2
    lengthtradesl=7
     
    //overbought and oversold values of the TDI indicator
    upperzone = 65
    lowerzone = 7
    //upperzone = upz
    //lowerzone = loz
     
    //heiken ashi
    xClose = (Open+High+Low+Close)/4
    if(barindex>2) then
    xOpen = (xOpen[1] + xClose[1])/2
    xHigh = Max(xOpen, xClose)
    xLow = Min(xOpen, xClose)
    endif
     
    //indicators
    r = rsi[lengthrsi](close)
    mab = average[lengthrsipl](r)
    mbb = average[lengthtradesl](r)
    yellowMA = average[5](TypicalPrice)
    yellowMAshifted = yellowMA[2]
     
    //trade conditions
    longCondition = mab crosses over mbb AND mab<50 AND xHigh>yellowMAshifted
    shortCondition = mab crosses under  mbb AND mab>51 AND xLow<yellowMAshifted
     
    //Longsell=mab crosses under mbb AND mab<upperzone and mab>56 AND xlow>yellowMAshifted
    //Shortexit= mab crosses over mbb AND mab>lowerzone and mab<56 AND xhigh>yellowMAshifted
    Longsell=mab crosses under mbb AND mab<upperzone and mab>55 AND xlow>yellowMAshifted
    Shortexit= mab crosses over mbb AND mab>lowerzone and mab<58 AND xhigh>yellowMAshifted
    //Longsell2=mab crosses under lowerzone
    //Shortexit2=mab crosses over upperzone
    //***************************
     
    // open position
    // long
    IF Not LONGONMARKET AND longcondition THEN
    BUY PositionSize CONTRACT AT MARKET
    ENDIF
     
    // short
    IF Not SHORTONMARKET AND shortCondition THEN
    SELLSHORT PositionSize CONTRACT AT MARKET
    ENDIF
     
    // close position
     
    IF LONGONMARKET and Longsell then//or longsell2 THEN
    SELL AT MARKET
    ENDIF
    IF SHORTONMARKET and Shortexit then//or shortexit2 THEN
    EXITSHORT  AT MARKET
    ENDIF
    
    SET STOP PLOSS 65
    SET TARGET PPROFIT 165  //395
    
    #217498 quote
    JC_Bywan
    Moderator
    Master

    Hi,

    In case it might help shed some light on possible differences between live and backtest, Nicolas is away for a few days but if he had been here he would have posted his classic list of all the items that can generate such diffrences  (it might not be his latest non-exhaustive version, but recent enough in this post #213867 from last April):

    Detailed Report-Backtest different to detailed Report

    nightjimbob thanked this post
    #217504 quote
    Aragorna
    Participant
    Junior

    Hi, can you please explain better this?
    Different trading hours (ProOrder code launched in a different time zone / custom hours, by the user)

    If I want to launch strategy for Nasdaq, and I’m from Italy, which is the correct configuration?

    thank’s in advance

    Alessio

    #217547 quote
    ProRealAlgos
    Participant
    Junior

    Hi. Are you sure this is a system you want to run? I ran a backtest with spread 1 over 200k units and it doesn’t look very good. Brent / 1H tf right?

    brent.png brent.png
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Improving Brent strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 3 replies,
has 4 voices, and was last updated by ProRealAlgos
2 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/10/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...