Buy if the price has fallen

Buy if the price has fallen

We buy when the price is below the EMA200 and above the EMA50 (sik!).
As a filter we use a simple linear regression slope.
We sell when the price is above the EMA28 and below the EMA7.

It really couldn’t be easier

thats all for today
until then

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. Richk87 • 02/15/2022 #

    Hi John, I like the code a lot, but i can only get it to work cumulateorders in backtesting. It doesn’t do it in live situation. Any reason why?
    Many thanks
    Rich

  2. Desastrader • 02/15/2022 #

    Da error en la linea 9 🙁

  3. JohnScher • 02/15/2022 #

    If you import the itf.file the code works very well, with a big loss at the end based to the attack of Russia on Ukraine

  4. adconsulting • 02/15/2022 #

    Ciao John. grazie per la condivisione. Sul DAX A 4 H HO FATTO PICCOLE MODIFICHE E RISULTATI SONO OTTIMI ANCHE CON NOTIZIE NEGATIVE COME LA GUERRA IN UCRAINA, TI COPIO DI SEGUITO IL CODICE:

    defparam cumulateorders = true // false is working well

    once ordersize = 1

    TradingDay = ((dayofweek=1 and (time=050000 or time=090000 or time=130000 or time=170000)) or (dayofweek=2 and (time=010000 or time=050000 or time=130000 or time=170000)) or (dayofweek=3 and (time=090000 or time=130000 or time=210000)) or (dayofweek=4 and time=050000) or (dayofweek=5 and (time=010000 or time=090000 or time=130000 or time=170000)))
    //TradingTime = time >= 090000 and time Exponentialaverage [45] (close)
    c2 = close close [1]
    c4 = LinearRegressionSlope[95] (close) < 0

    IF TradingDay then
    If c1 and c2 and c3 and c4 then
    buy ordersize contract at market
    Endif
    ENDIF

    c5 = close Exponentialaverage [21] (close)

    IF longonmarket then
    If c5 and c6 then
    sell at market
    Endif
    Endif

    Set Stop %Loss 5.50 //as insurance
    Set Target %profit 2.75

    //*****************************************************************
    if close>open then
    marginebv=low-130
    elsif close<open then
    marginebv= low-115
    endif
    //tp=300
    //stopbv=200
    //acquistobreck= LOW-margine
    //acquistobv= close -marginebv

    if longonmarket then
    sell at marginebv stop
    endif

  5. adconsulting • 02/15/2022 #

    SCUSA . ECCO IL CODICE
    defparam cumulateorders = true // false is working well

    once ordersize = 1

    TradingDay = ((dayofweek=1 and (time=050000 or time=090000 or time=130000 or time=170000)) or (dayofweek=2 and (time=010000 or time=050000 or time=130000 or time=170000)) or (dayofweek=3 and (time=090000 or time=130000 or time=210000)) or (dayofweek=4 and time=050000) or (dayofweek=5 and (time=010000 or time=090000 or time=130000 or time=170000)))
    //TradingTime = time >= 090000 and time <= 170000

    c1 = close > Exponentialaverage [45] (close)
    c2 = close < Exponentialaverage [100] (close)
    c3 = close > close [1]
    c4 = LinearRegressionSlope[95] (close) < 0

    IF TradingDay then
    If c1 and c2 and c3 and c4 then
    buy ordersize contract at market
    Endif
    ENDIF

    c5 = close < Exponentialaverage [9] (close)
    c6 = close > Exponentialaverage [21] (close)

    IF longonmarket then
    If c5 and c6 then
    sell at market
    Endif
    Endif

    Set Stop %Loss 5.50 //as insurance
    Set Target %profit 2.75

    //*****************************************************************
    if close>open then
    marginebv=low-130
    elsif close<open then
    marginebv= low-115
    endif
    //tp=300
    //stopbv=200
    //acquistobreck= LOW-margine
    //acquistobv= close -marginebv

    if longonmarket then
    sell at marginebv stop
    endif

  6. wally • 02/15/2022 #

    Hola soy nuevo en el mudo robots. Alguien seria tan amable de poner el archivo itf.file ya que sin él no sé como poner el código en el PRT. GRACIAS!!

  7. Darren Nash • 02/15/2022 #

    I found this works well on the DOW

  8. thomas2004ch • 02/15/2022 #

    Hi John,

    Is your strategy suitable for daily SPY?

    Regards

  9. gatowman • 318 days ago #

    Hi, ich bin leider Anfänger, habe den Code zwar importiert, aber scheinbar läuft er nicht auf D1, was muss ich ändern, oder kann jemand den code auf D1 oder W1 umschreiben, danke.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
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.
simmerseb Bonjour, merci beaucoup pour cet indicateur je le trouve très clair et pertinent.
Manu L. Bonjour Nicolas, j'ai créé un screener avec l'aide à la prog en TF weekly mais je voudrai...
wtangsiri C'est exactement le même signal que donne le croisement et le décroisement de deux EMA (7 et...
PHAN100 bonjour, j'ai un bug sur le programme recopié prorealtime me dit qu'il y a un problème à ...
IV Mcm Vous devez faire un clic droit sur le prix > propriété > ajouter indicateur Si vous...
punch1 Fonctionne pas chez moi il s'affiche rien pourtant j'ai bien fait le clic droit sur le prix ...
punch1 Je peux te faire un screen d'ecran si tu as un email :)
ferros bonjour , super votre indicateur!!!! est-il possible de l'avoir en histograme +1 /-1 por en...
IV Mcm V2 is coming
SudhirRN is this code working for on tradingview plartform?
Nicolas No. All our codes are made to be used with ProRealTime trading platform: https://www.proreal...
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
oraclus Bonjour indicateur très intéressant existe t il un screener qui détecte les actions qui donn...
IV Mcm Ce n'est pas le but de cet indicateur, mais avec un peu d'entraînement vous pourriez le code...
Yantra Thank you for sharing your good work!
Nicolas le code est déjà sur cette page, inutile de fournir un autre format ?! Les fichiers itf sont...
Novice-Surfer Hello IV Mcm, You are my leader ! Your work is incredibly precise, thank you very much f...
Mikolajek Merci pour votre excellent travail !
mickey992 salut merci pour ton partage et ton travaille
patapouf Hi Vivien René I just discovered your “Ordered trend-following stocks Screener”. Great work...
afanitro424 its not plotting on chart but instead as it's own histogram directly below chart? How to fix...
Nicolas by adding the indicator on the chart :)
Nicolas Oui c'est possible. Merci de ne pas poster des demandes qui sont hors sujets. Pour les deman...
Igor Merci pour cet itf. Question : comment faire pour instruire un screener ?
Nicolas tester le croisement du Close avec la première valeur de l'indicateur : "TrailingStop", faci...
Dunstan I would like to get guidance_ How do I access and attach this indicator to my MT5 platform...
Nicolas You can't, use prorealtime, it's way better
jc84 Thank you very much for this indicator , not provided by PRT I was actually working at thi...
Nicolas Oui le code est correct et il fonctionne, j'ai de bons résultats sur la liste NASDAQ par exe...
pincherman Bonjour :-) J'ai coller le script dans prorealtime pour jouer avec le supertrend et j'ai un...
Nicolas Vous l'avez sans doute collé au mauvais endroit, dans l'éditeur de code pour les stratégies,...
IV Mcm Bonjour, Je ne reconnais pas cette ligne dans le code, essayer de télécharger directement le...
Manu L. Bonjour, Possible de créer un screnner multiframe Mois dans Ichimoku semaine dans Ichimok...
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-...
Screw27 Salut nicolas j'aimerais savoir tes résulats grace a cettte methode
eva.g.forsgren It dose not work, I get a strap instead of candels???????????????????????????????????????????
Nicolas That indicator is the one below the chart. The indicator to put on the price chart is this o...
pyhrus P.S : IG , que j'ai contacté ,m'indique que la version V11 , ne sera pas disponible avant un...
Hasardeur Dear Nicolas, is there someting at the arry to modify in order to run the trend at the actu...
MALIMALO Dear Nicolas, just try touse your indicator with backtest but it's not working. is anybody...

Top