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
Nicolas Je ne rencontre pas ce problème avec le NASDAQ par exemple, ce serait plus simple d'ouvrir u...
YvesRobert Bonjour Nicolas, en effet ca marche, je me suis trompé, j'ai bien tout le tracé. C'est parce...
oliTR Bonjour, les conditions longCond et shortCond ne contiennent-elles pas une condition qui s'a...
Jiacky
2 years ago
Kalman Filter
Kalman Filter
0
Indicators
Stenozar Hi Sever, how can I visualize the coloured areas?
Sever Hi Stenozar, You need to add the color zones yourself , just go to Add Color Zone To set ...
atlante hi nicolas this indicator have 2 wrong borderline and islalastbarupdate. thank you can you h...
Nicolas That'"s because you are not using PRT v11? Just remove lines 59 to 62
Kanamax Hi Roberto, sorry for my confusing previous posts (forget them). My request is very simple,...
robertogozzi Please start a new topic in ProOrder support.
robertogozzi There you go: myMagicTrend = CALL “Magic Trend custom”[20, 14, 1, 5] alpha = 105 b = 0...
johann8 exactly :) Thank you all for the help!
max_92 Ciao Roberto, ho scaricato l'indicatore e come ti avevano già scritto sopra anch'io vedo la ...
Xenotrax A première vue, sa à l'air d'être un indicateur très puissant sur de petites temporalités, j...
merri Bonjour Nicolas, Comment transformer cet indicateur en bot sur PRT ?
Nicolas Cela a déjà été fait, voir ce sujet: https://www.prorealcode.com/topic/strategia-con-lindica...
Nicolas change the last line with: return v coloured(r,g,b) style(line,2), v+band coloured(168,168,1...
Paolo.B Thanks ... works as i wanted.
Kanamax Bonjour Nicolas, comme Paolo.B je souhaiterais utiliser cette indicateur au sein d'un code. ...
zilliq Thanks @Nicolas. I tried to use it as Trend in a proorder system, but don't know why, it doe...
Suzu Yuk He is right. MT and mavgMT are not defined and causing errors.....
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/
Daniele Maddaluno Écrivez-moi où vous préférez you can easily find me on LinkedIn
AK27 C'est payant visiblement sur linkdin je peux pas vous envoyer, discord vous avez ?
Nicolas C'est dans ce sujet: https://www.prorealcode.com/topic/trendline-une-approche-du-trading/ M...
Pensera Bonjour Nicolas, comment est-il possible de backtester cet indicateur? cela fait une erreu...
Nicolas Oui bien sûr, il doit y avoir pas mal de sujets dans le forum à ce propos.
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
Bard Hello @Nicolas, I can get this to display in a separate indicator panel but not on Price as ...
Stenozar Hi @Nicolas, how can I put the bands on price? Thanks, Stefano
Guillaume Mcm I gave the above message fix ;)
Tradingrob Is it possible to put the itf-file in the right way here in Prorealcode? so the right 'trend...
Guillaume Mcm Update link ;) https://www.prorealcode.com/topic/trend-histogramme-cci-mise-a-jour-suite-...
Pierreco1991 Hello Can you confirm this configuration for FRANCE ? //Time in UTC+8 Rest0Minutes =...

Top