Strategy TrendImpulse v1

Strategy TrendImpulse v1

Here is a new strategy on Wall Street/DJI 5 min TF that utilize Perfect Trend Line as entry/exit and Trend Impulse Filter as trend direction. All credits to the original author.

DLS code is added to avoid high spread period. Time Zone used is UTC+08:00.

Forum for discussion https://www.prorealcode.com/topic/strategy-trendimpulse-v1/

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Dom • 04/28/2020 #

    Excellent en 1mn…;-)

  2. discomusic • 04/28/2020 #

    Hi! Many thanks! Can you please indicate us some value of the variables?

  3. yahootew3000 • 04/28/2020 #

    Hi, only 3 variables to optimize: SlowLength, FastLength and length. Other variables are actually fixed. You can see the range by importing the .itf,

  4. Pascal Christophe • 04/28/2020 #

    MERCI yahootew3000, SUPPER la programmation! belle perf avec ProBacktest. Je rencontre un petit problème avec ProOrder Auto Trading (Remplacez les variables par des valeurs fixe… )

    • Souhail Sam • 04/28/2020 #

      @Pascal, Oui effectivement, une fois le Backtest terminé, il te propose des valeurs pour le résultat obtenus pour les variables. Avant de lancer en ProOrder, il suffis soit de déclarer les variables sur le code et de mettres les valeurs du backtest avant de lancer au auto. exemple de déclaration :
      once SL=300
      once SlowLength = 50
      once FastLength = 35
      once SlowPipDisplace = 0
      once FastPipDisplace = 0
      once length = 2
      once centertrend = 1

    • Godo • 04/28/2020 #

      Bonjour Souhait Sam,
      Après de nombreux essais pour le mettre en format afin d’utiliser ce code sur ProOrder je me retrouve bloqué avec des variables toujours non-définies. Voici le code en question.
      Je les aies tour à tour déclarée dans un ensemble de définition de variables et ensuite modifiés directement dans le code mais je reste bloqué dans l’exécution qui me dit que les variables ne sont pas modifiées …

    • Nicolas • 04/28/2020 #

      Il faut supprimer celles qui existent dans la fenêtre d’optimisation et les créer en dur dans le code, au début c’est l’idéal, après les defparam.

  5. Pascal Christophe • 04/28/2020 #

    Merci Souhail Sam pour ta réponse rapide et précise. 😉 Je suis novice.

  6. Lucho0712 • 04/28/2020 #

    Hi, I have a question regarding the frequency of the points and the backtest time window. Looking at your screenshot it seems that you have 1 point every 5 minutes and a backtest of a duation of 2 years and a half. When I try to do a backtest with a data point every 5 minutes, the maximum backtest I can achieve is 11 days. Is there a trick to allow longer analysis?
    Cheers

    • yahootew3000 • 04/28/2020 #

      Hi, you need to adjust the unit to higher number, for normal account, it is 100k units (the option is on the left of the time frame option, default maybe is 10k). You will need a premium PRT for longer test period (200k unit). I build strategy on 100k then ask my friend to test on 200k.

  7. yahootew3000 • 04/28/2020 #

    Thank you Souhail Sam for the help. Btw, I have improved the strategy, you can get the latest from here, https://www.prorealcode.com/topic/strategy-trendimpulse-v1/page/2/#post-129779

    • Souhail Sam • 04/28/2020 #

      It is me that i must thank you for your work.
      I have worked a lot on this version, I will finish some ameliorations before sharing it here.
      The strategie is running live in demo and it has given me good results.
      Just one problem is one day, 6 positions oppened in the same time and lost -164e six times. The problem is i have fixed 1 position a time in proOrder and cumulateorder is on false on the code, maybe it’s a bug, hope that it will not do it on live trades in Real account.
      Thank you again for your work. I will take a look on the new version.

  8. buru • 04/28/2020 #

    bonjour il m’est impossible de me servir de vos stratégie il y a message d’erreur .avez vous réussi de votre coté ?
    merci pour votre travail

    • Souhail Sam • 04/28/2020 #

      Bonjour, télécharge le fichier itf et importe le directement sur la plateforme, évite le copier coller. Bon courage

  9. Darren Nash • 04/28/2020 #

    Hi all, thanks for the code. I would like to test and have loaded into the backtest but its asking me to add variables even though I see them loaded at the top of the backtest window. do I need to add them variables to the code itself? sorry, fairly new to this.
    Thanks
    Darren

    • Darren Nash • 04/28/2020 #

      btw i added the below but still asks me to ‘replace variables with specific values’

      once SL=300
      once SlowLength = 50
      once FastLength = 35
      once SlowPipDisplace = 0
      once FastPipDisplace = 0
      once length = 2
      once centertrend = 1

      Thanks
      Darren

    • Souhail Sam • 04/28/2020 #

      Hello,
      Do you use the itf to import it in the platform ? if yes, i can’t see why it keeps asking you to replace variables … :/

  10. Darren Nash • 04/28/2020 #

    Thanks Souhail, in the end i just copy/paste the logic with variables and it works.
    I removed the time function and use on Australia 200 (ASX) and have had good results. Currently testing with 1min and 5min

  11. Darren Nash • 04/28/2020 #

    One thing to note also for DOW trading if using IG, change the buy/sell qty from 1 to 2

  12. mostafa samady • 04/28/2020 #

    How can I optimize it for DAX 30? Thanks!

  13. crusoe76 • 04/28/2020 #

    hi there, anyone can help making this strategy work, i have a message saying replace variable, what I’m suppose to do?
    thanks

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+4 more likes

Related users ' posts
jiddan78 how to convert to afl amibroker ?
Nicolas We do not supply free coding assistance for AFL Amibroker on the website. You can ask for pa...
Ngomsi @ Vonasi, how to use timeframe , 13 minutes ,21 minutes, 34 minutes,et 55 minutes with this...
manchokcity can we have it in mql4 platform? or how or which platform do we use it?
camporan I don't use MetaTrader so I won't be able to do the translation myself. Sorry!
Alexander9 This can for amibroker ? . Thanks
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)
avatar
Anonymous Hi robertogozzi - thank you very much for sharing this strategy. I have performed various ...
robertogozzi Thank you samsampop.
Dotan Hello guys I really appreciate this coding effort but can I use this code for Mt5 Forex Trad...
LucioleLucide Clean view, thanks for sharing
dertopen hi where i can found the window for candle configuration?
paolosab69 Ciao! . I have seen the pictures that explain this metod but i don't understand when is mome...
coscar Ottimo lavoro. come sempre!
luxrun Nello studio di Sepiashvili viene descritto anche un altro indicatore, il Q-indicator, che è...
hartgeld Hallo Atxeel, sehr interessanter Code, habe das installiert und funktioniert. Danke! Kannst ...
atxeel Hallo hartgeld, die Ziele sind schlicht, bspw. die Range beträgt 10 Punkte, dann ist das Zie...
Maik2404 wie kann ich den Code bekommen Paul?
jens_kittner Works with US Crude at 1h as well!
Jean-Claude REGIS Je préconise de regarder les graphiques H1 et M15 pour visualiser la tendance de fond et d'...
capgros Bonjour @Nicolas, Thanks a lot for this tool, it is very useful for me. I would like to s...
Hans63 Would you add the possibility to color also the Heikin Ashi and bar chart?
Nicolas That's possible, please open a new topic in the indicator forum explaining what you need exa...
Nicolas
6 years ago
BSTrend
v10.3
BSTrend
10
Indicators
Florian Legeard C’est à dire sur le prix et non sur le temps ? Merci
Rohit82189 bstrend repaints
Nicolas No, it doesn't repaint.
cfta Hi Fulvio, many thanks for sharing this clever indicator, much appreciated. As Pepsmile ment...
cfta Sorry adding the PRT to code didn't work in the above comment so I guess we will have to set...
juanj Something appears to be wrong with this formula as graphing t shows t to almost never be wit...
Nicolas
6 years ago
Maxime Baudin Interesting, Thank you! :)
franck-david Bonjour Nicolas , actuellement je me forme grace a vos videos tres tres bien expliques mer...
Nicolas Merci. ça n'est pas le lieu pour poser ce genre de question :) Merci d'utiliser le forum Pro...
Vonasi Discussion on this indicator/filter can be found here: https://www.prorealcode.com/topic/121...
Domenec Claro Juanjo de todas maneras en deinversoratrader.com tienes estsos osciladores evolucionad...
Dron Hola Domenec, en la descripción hablas del indicador velas de colores, no lo encuentro en la...
Domenec Hola Dron mira en el blog deinversoratrader.com en formacion indicadores ahi hay varios grat...
Geronima Ortiz I watched the video three times, but I can not put the npips parameter as a variable. I do...
Geronima Ortiz I think the video is for an old version of prorealtime, the images do not correspond at all ...
Nicolas indicator1 = CALL “PRC_StopReversal”[npips, 1] and define npips in the optimization window ...
Caribeengeek Bonjour j’avais vu que vous proposiez d’écrire des codes pour ceux qui s’y connaisse pas Mai...
Caribeengeek Les devises unité
Nicolas Merci d'utiliser le forum pour les demandes de programmation personnalisée
ullle73 nicolas, can you somehome make this to be in the background of the price chart?
jonpt88 none did that yet right?
Nicolas You can ask for a code modification on forums, please open a new topic with your request.
Toto le Heros Thanks Nicolas. I read somewhere that in the calculation, we should round the value of the A...
Nicolas aADX = round(adx[10])

Top