Strategy with CCI (adjustable TF depending on the trading asset)

Forums ProRealTime English forum ProOrder support Strategy with CCI (adjustable TF depending on the trading asset)

Viewing 3 posts - 1 through 3 (of 3 total)
  • #170367

    It is clear that it is difficult to have a trading code that could take place for a long time exactly as intended by its designers. On the other hand, this code could well be profitable on certain financial instruments (Crypto, Forex, Shares or Indices) while checking it beforehand on backtest at different timeframes. Example: BTC / USD at TimeFrame = 20min and 2 minutes; EUR / USD at TimeFrame = 100 ticks or 15 30 45 min or 1 hour; DAX, etc. NB: There is the possibility of being able to improve it by the professionals that you are and to share …

     

    Thanks…

    2 users thanked author for this post.
    #170728

    I modified it by using MTF (1h TF for the setup & entry + 5m TF for the trailing stop):

    1 user thanked author for this post.
    #170779

    Thank you very much RobertoGozzi
    The code worked well with the gains and loss limitation.
    NB: The CCI Threshold and TimeFrame parameters should be adjusted for each financial asset.
    Here are the best results obtained with the optimal values of the 2 adjustable parameters:
    – For BTC/USD ==>
    CCI threshold = 170
    TimeFrame (1 minutes, UpdateOnClose)

    – For EUR/USD ==>
    CCI threshold = 140
    TimeFrame (3 minutes, UpdateOnClose)

    – For GBP/USD ==>
    CCI threshold = 170
    TimeFrame (10 minutes, UpdateOnClose)

    – For USD/CHF ==>
    CCI threshold = 100 and 120
    TimeFrame (3 minutes, UpdateOnClose)

    Even more, it would be necessary to define the values of Stop and follower, as for example:
    trailingstart = 150 // 20 trailing will start @trailinstart points profit
    trailingstep = 15 // 10 trailing step to move the “stoploss”
    distance = 15 // 10 pips distance from caurrent price (if required by the broker)

    Thanks…

    5 users thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)

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