ADX+EMAS Strategy – Appreciate comments!

Forums ProRealTime English forum General trading discussions ADX+EMAS Strategy – Appreciate comments!

  • This topic has 16 replies, 4 voices, and was last updated 6 years ago by avatarCA.
Viewing 15 posts - 1 through 15 (of 17 total)
  • #83815
    CA

    Hello!

     

    I have been working on a new strategy for catching trends and I have come up with a code. What I have been doing is optimizing the code for having a specific set of parameters for each currency pair.

    So far in the BT I have gotten good results with some pairs E.G. AUD/JPY.

    After I get the best variables for the pair I improve the strategy with an optimzed trainling stop.

     

    I will just leave the code here for the AUD/JPY example. Please just let me know what you think:

     

     

     

     

     

     

    1 user thanked author for this post.
    #83826

    What Timeframe is above code optimised for please?

    What value are you using for  TRAILINGn ?

    Please can you post your equity curve and Performance results?

    I’ve optimised TRAILINGn on every TF from 1 Min to 1 Day (on AUD/JPY).

    #83827
    CA

    Oh right! Sorry misses that “detail” . Only for 4H. It attempt to be a swing system.

    #83828
    CA

    And for the rest of the questions I am replying from my phone so when I get to my pc I’ll pos the rest

    #83829
    CA

    So here is what you asked for GraHal.

     

    I used 4H time frame. 10000 units for optimization of the initial code (without the trailing stop – if you want I can post it too) and for the optimization of the trailing stop.

     

     

    #83832

    Something odd here? Attached is what I get! 🙂

    Am I reading that correct … you are buying 1,000 Contracts on AUDJPY??

    I’ll have to collect my thoughts as I see you show performance results for Spot AUD/JPY??

    Anybody reading this got any comments??

    #83836
    CA

    I only buy 1 contact per operation. Could you show me the code you are using. It is quite wierd!!

    #83839
    Leo

    Hi CA,

    What I think is that you start your journey of automatic trading like me ( or most of us)

    first: to much variables means overfitting which means the code only works  in the past but not in the future

    second: test it 100000 bars (it means at much data as possible)

    third: walk forward test, if it works in the walk forward test, then you have a nice code.

    Kind Regards

    1 user thanked author for this post.
    avatar CA
    #83842

    I only buy 1 contact per operation.

    So why does this say 1000 as the Lot size then (see red arrow on attached)?

    Or has sleep done me no good or even my coffee is not working this morning?? 🙂

    Could you show me the code you are using. It is quite wierd!!

    I am using testing your code with TRAILINGn at value 133 as you show in your screen shot of optimised results.

    Are you sure you have the tick by tick box selected??

    #83845

    We need to get to the bottom of this, I hate oddities like this, but I am driven to investigate!!!! hahahha

    This is the code / your code  I am using

     

     

    #83846

    HAHAHA … I can get positive results if I backtest only over 5,000 bars!

    As Leo says I think your variables are over-optimised over too short a backtest period?

     

    #83850

    HAHAHAHHAHAHAHAHHAHAHAHAHAH

    It’s all my error!!!!!!!!!!!  I’m glad I am driven to investigate!!!!!!!!!!!!!

    I had my capital set at 10,000 (as always) but for this test, starting capital needs increasing by at least a factor of 10 to account for GBP to Yen exchange rate!

    I get same / similar to you now you!!!!!!!!!!

    A useful lesson learnt (for me!!!!!!!)

    Results attached over 100k bars

    Well done @CA

    (Apologies for my doubts!) 

    1 user thanked author for this post.
    avatar CA
    #83868
    CA

    Thank you Leo. I have actually tested it in walk forward an it still work! I’ll upload late the results.

    #83870
    CA

    Thank you GraHal! So for you it worked! So your opinion is that (at last in theory) it is a good code? I’ll start FT next week as I am still woking out on which par it work and optimizing vales. Later I will post the inicial code from where I start optimiza tío, which, as I said to Leo, have even worked under walk forward optimization.

     

    Any way happy you get to solve what was affecting the code! 🙂

    2 users thanked author for this post.
    #83884

    Be aware that SET STOP PTRAILING will certainly not act the same way in live as in backtest, due to the minimal stop level that it is used as the step of stoploss moving. You should use one of the trailing code you’ll find around in the website.

     

Viewing 15 posts - 1 through 15 (of 17 total)

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