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
Iván
2 months ago
Madrosat Bonjour ivan Quelle différence il y a t il entre Extra trend et ultra trend lequel est le p...
MaoRai54 dear Ivan, it seems to be very interesting but please clarify what are all the lines I see i...
Iván Hi! you have the answer in the last line of code... MacdMiddle as "histo" style(histogra...
kats Le Top , a utiliser avec le nuage violet et alerte TN pour plus de précision.
roccafragius Hello Ivan, very good job! May I ask you to translate teh script from TradingView named Tre...
Iván Hi! yes. You can ask for it here: https://www.prorealcode.com/free-code-conversion/
roccafragius Thank you so much Ivan! I created this request in english Translate from TradingView Indicat...
Regisnew très bel indicateur merci
Jean2139 Bonjour Yvan, Merci pour ton indicateur que je trouve très intéressant. Je suppose que tu ...
Suffi Hier eine kleine Korrektur: //-----Inputs-----------------------------------------// MALengt...
kats Bonjour, J'ai une question etes vous trader? Je m'explique , j'ai téléchargé tous les indi...
Faisalx Hola Ivan. Thanks for your great job. I would appreciate if you have look at my request http...
roccafragius Thank you for all these useful information!! Very great job Ivan! THank you so much
geroniman Merci Ivan, super travail. On peut toujours compter sur toi pour apporter des innovations su...
Stenozar Ciao IVAN , mi da errore per la riga 49 "print tema low"; puoi suggerirmi la modifica da met...
Iván Avete provato a scaricare il file .itf?
AndyB72 Caricato ora sulla V12, nessun errore.
Iván Allora crei un nuovo post. Lo aspetterò.
Stenozar Ciao Ivan, ho inserito il post con la richiesta di traduzione. Se puoi vedere, grazie!
Iván perfect!
kats BONSOIR c bon merci j ai trouve ce weekend merci de votre reponse cdlt
the_giorgio Hi, nice work I would like to understand something about prorealtime code. With your ...
Iván Hello. When you use the drawcandle() instruction then in the configuration window you add ...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
Iván
8 months ago
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
WhyAskOZ Hi, Ivan As always you are doing great coding. The code works on my PRT, however the issu...
Iván You can delete in the last line (return) the configuration for color. Delete coloured(xx,xx,...
Bernard13 (Je réécris mon commentaire -français- en français car certains mots ne correspondaient pas ...
Iván 1000 indicateurs !!! brutaux
Lean Me parece muy buen indicador, y se complementa muy bien en mi sistema, ¿podrías crear un scr...
Iván Gracias! Para el screener sólo tienes que copiar el indicador y poner como condición de búsq...
Lean Muchas gracias Iván, ya lo he podido crear.
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Iván
10 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
10 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...

Top