Consecutive bullish or bearish candlesticks – DAX

Forums ProRealTime English forum ProOrder support Consecutive bullish or bearish candlesticks – DAX

Viewing 15 posts - 1 through 15 (of 27 total)
  • #59824

    I ran this code since 7 Dec 2017 (as a test phase on demo account before going live with it) and so far it has delivered £959. Just over a month.
    1 minute time frame with 2 mini contracts.

    The main reason I add this is becuse may be someone can some changes or even test it yourself and use it as is.
    I have other ones on the same basis where I added TS and MFE (also Sir. Nicolas’s code). These are still in testing phase though.

    I have tested with various options/variables on various Indices and forex pairs over months.
    Because of the variables this code can apply to any forex or Indice on any timeframe. Anything from 10sec to 4hour. You just have to find your own sweet spot that applies to you.

    This code will check for 4 (in this case) consecutive bullish or bearish candlesticks.
    After that the variables apply – Inverse trading and Cumulate orders.
    In this case it will open position in the same direction as the candles/trend. (InverseTrading = 0) and will cumulate orders (CumulateOrder = 1)

     

    May be someone can some changes or even test it yourself and use it as is.

    I have tested the various options/variables on various Indices and forex pairs over months.
    Because of the variables this code can apply to any forex or Indice on any timeframe. Anything from 10sec to 4hour. You just have to find your own sweet sport that applies to you.

    This code will check for 4 (in this case) consecutive bullish or bearish candlesticks.
    After that the variables apply – Inverse trading and Cumulate orders.
    In this case it will open position in the same direction as the candles/trend. (InverseTrading = 0) and will cumulate orders (CumulateOrder = 1)

    1 user thanked author for this post.
    #59920

    Dear Andre

    Thanks for sharing your code that could be used on several intruments.

    I copy, modified your code to utc+1  time frame.

    But I get different results?

    Do you have an idea why it is so different?

    Regards

     

    #59924

    Hi Yannick

    I got similar to you! I tried it on several instruments and several time frames, gave up in the end … unusual for me as I like a challenge!

    Looks like some good code in the Strat, hope somebody gets it going!? 🙁

    GraHal

    #60242

    I dont know why you would get different results.
    May be leave it at the times I put in UTC+2
    The results I posted is the code that ran on demo account and not backtest results.

     

    1 user thanked author for this post.
    #60309

    Hi Andre
    Aha … I backtested (not demo trade) so that will be the reason for my difference from your results.

    I’m sure Yannick results are backtested also … hence his difference.

    Cheers
    GraHal

    #60344

    Hi

    Thanks @Andre Vorster

    Could share the graph or trade opened and strategy performance (evolution of equity versus time)?

     

    Regards

    #60361

    Yannick.

    I’m not sure I understand your question correct.
    Can you please elbaborate.

    #60443

    Hi Andre

    The profit /loss evolution of your real equity using this strategy.

    (similar to the backtested one that I linked)

    #60446

    Please accept my apologies Andre for earlier comments.

    I backtested your Strat over same period as you ran it in Demo and I got good results … about twice as good as yours! 🙂 I left the Times in UTC +2 (I’m UTC / GMT). See attached.

    I’ll check it out more now.
    Thank You
    GraHal

    #60455

    I haven’t studied / understood the code (got one eye on the TV! 🙂 ) but I noted the poor performance during a flat period so I added conditions re EMA as shown below.

    Results improved to the upper equity curve attached.

    GraHal

     

     

    3 users thanked author for this post.
    #60465

    Thanx for the code. It is perhaps interesting to code with heikin hashi candles instead of common candles. I’ll try later.

     

     

     

     

    1 user thanked author for this post.
    #60466

    Grahal.

    Thank you for your input. Appreciated.
    I will definately try it.

    I tried and tested this MultipleCandle code on almost all FX and Indices with various permutations and this code on US Russel 2000 was about the only profitable one.
    I tried others with MFE code from Nicolas but those are not as profitable.

    With your addition to this code other FX and Indices permutations I tried might just might become profitable.

    Thank you.

    3 users thanked author for this post.
    #60652

    Hi,

    I confirm that backtests are better with heikin hashi for “bearpattern” and “bullishpattern”:

    I have tested only DAX and CAC and found better results with DAX.

    1 user thanked author for this post.
    #60682

    Hi @noisette , please could you share the full code with your heikin ashi for “bearpattern” and “bullishpattern”:

    I added / changed as per your changes above … both to Andre code and to Andre code with my changes (addition of EMA) and I got the results attached. (from bottom up on equity curves)

    I both cases worse results. Your full code will establish if I have made the changes incorrectly?  Please also might you show the equity curve you got?

    Thank You
    GraHal

    PS I added your code as shown attached … as replacement for  lines 27 to 33

    #60686

    Hi GraHal,

    Sorry, I used your code but I forgot to say that I worked with main modifications bellow:

    • 3 consecutive candles instead of 4 (Xcandlesticks = 3).
    • EMA 10 instead of your different values.
    • SL 20 & TP 40.
    • No overnight.
    • Starting at 9am, last trade at 5.30pm, close at 11pm.

    We probably could improve the code with other indicator instead of EMA.

    Results seems to be also with other timeframes.

    I’ll share the code when I’ll be at home.

    Regards.

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

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