Breakout system for Hong Kong HS50 Cash (HKD10 Mini)

Forums ProRealTime English forum ProOrder support Breakout system for Hong Kong HS50 Cash (HKD10 Mini)

  • This topic has 34 replies, 6 voices, and was last updated 7 years ago by avatarBC.
Viewing 15 posts - 1 through 15 (of 35 total)
  • #31736
    BC

    This is a Breakout system made for IG market [ Hong Kong HS50 Cash (HKD10 Mini)], Time Frame: 15 mins.

    All components were found from PRT forum, the core idea was from Reiner DAX Breakout system and Nicolas trailing stop. Walk forward test was not 100% perfect, Monte Carlo simulation with latest 12-month back test record show HKD$10,000 for the initial capital is ok.

    But unfortunally, my live test result was not same as back test, I can’t find what’s wrong with my limited knowledge, hope you guys can help and determine what mistake inside.

     

    2 users thanked author for this post.
    #31741
    BC

    1st pic: no money management

    2nd pic: with money management

    3rd pic: MB Result

    #31742
    BC

    Walk forward test attached.

    #31768

    Your “limited knowledge” give great result as far as I can see on what you are sharing here! WF test seems great too with nice OOS results. So far I didn’t see something ‘strange’ in your code. I’m not used to trade or develop system with Hang Seng myself so please excuse my “limited knowledge” about it 🙂

    What are exactly the difference between backtest and real trading? How did you simulate the HS50 spread in backtests?

    Your ‘spread’ variable defined at line 18, may be the cause of differences, I remembered have read the same thing in the Pathfinder thread long time ago (I think it comes from there?), since you made calculation with it to define price levels and because this value may surely be different in real life, some dissimilarities should occur I think.

    1 user thanked author for this post.
    avatar BC
    #31794

    Yes the spread can be a problem (when using it in the code)

    Say you have a spread of 12 (6 on each side) and you put a stoporder to buy at 10 000 (that would be 10 006)

    and if  price hit 10 001 the trade is open in real trading

    but in backtest the price never hit the stoporder and no trade

     

    1 user thanked author for this post.
    avatar BC
    #31797

    Its late and i am tired so i try again

    If the spread is 12 (6+6) and you want to put a stoporder to sell if price hit 10 000 minus spread  (9 994 in the code)

    then when the price hit 10 000  in real trading the trade is executed

    but  in backtest price have to hit 9 994

    the problem is if price turns and never reach 9 994 then you have a difference real versus BT

     

    1 user thanked author for this post.
    #31804
    BC

    Hi Nicolas

    Thanks for your comment, I start PRT and found this nice website on Sep 2016, although spend many hours on it, still not well equipped to create some new idea.

    Back to this system, I use 6 spread for backtest (pic attached).

    About line 16, my thinking is let the SL don’t affect by the IG spread, but your advise may be right. I already take out this [spread] and put in Live trade again to test the different between backtest result.

    #31807
    BC

    Hi Eric

    Thanks for your advise, it seems logical. I will try again without this [spread].

    #31808
    BC

    Hi Nicolas and Eric

    I check again live and backtest record, most big different came from exit which close to 6.

    Although entry price got little bit different, but it can accept.

    Really hope all mistake  and error is come from me, not PRT. 🙏🙏

    #31815

    What do you mean by “which close to 6”?

    IMO, if you made changes in the code, you should make a new comparison between live and backtests in a few days.

    #31899

    Hi!

    I tested your strat, but i cant get the same results. What timezone do you use? What spread do you use in backtests? When i use CET time with original code and without spread i get a result simular to yours but not so good (see picture).

    About the spread i the code it should just be a number called spread to calculate the sl. So i dont think thats the diffrense.

    Whats the diffrence for you between live/demo and backtests?

    Regards

    Henrik

    #31902
    BC

    Hi Nicolas

    I will test again and make a new comparison.

    Hi Henrik

    Thanks for your test, Time zone is UTC+8:00 andI use 6 spread for backtest (pic attached at post #31804).

    Different between live and backtest pic attached at post #31808.

    #31903

    Hi Bin and Nicolas?!

    Thanks! I looked pic attached at post #31808. and i think its mostly slippage. But look att the time where the orders are done. I did the same with my hs Pathfinder, a couple of sec fine for me but hours? Look at order on mars 21 and 16…..

     

    Regards

    Henrik

    #31906
    BC

    Hi Henrik

    I remember the original HS pathfinder use 12 spread at backtest, may be that’s the reason of difeerent, because the highest spread of HS at IG is 20.

    For my system, 90% of time trade at 6 spread peroid.

    #31935

    I agree Henrik use of term ‘spread’ in code is misleading because it bears no relation to spread applied by the dealer (PRT does not link to dealer spread)?

    Whatever value is put against spread it is just another variable value, so maybe we should not use the term ‘spread’ in code then we stop confusing our brains and others / newbies?

    Or am I wrong in my assertions / conclusions?

    GraHal

    1 user thanked author for this post.
    avatar ALE
Viewing 15 posts - 1 through 15 (of 35 total)

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