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 • 232 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
BaderBader Good day davidelaferla, Thank you for making your strategy available to the community, I do...
kats Bonjour, J'ai une question etes vous trader? Je m'explique , j'ai téléchargé tous les indi...
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.
JohnScher Short variant, see at https://www.prorealcode.com/topic/late-lunch-trade-dax40-strategy/
DANY Hi JohnScher, Thanks a lot for your contribution. Consider this release to avoid overfit...
JohnScher Thank you so much for exploring the Late Lunch Strategy. For discussion and in answer to yo...
BenJuice JohnScher, merci de partager ta stratégie. Je suis nouveau dans ce domaine, sur ton code q...
JohnScher As a percentage of the price, here 2%. StopLoss as well as TargetProfit. SL and TP come ...
Wilko I absolutely love the simplicity of this mean-reversion strategy. Well done!
Patrice210 bonjour STANKO, effectivement la première ligne apparait en anomalie et je ne comprend pas v...
KumoNoJuzza Hi guys, Thanks @Stanko and everyone for your contributions. I have been playing around ...
Stanko Hi KumoNoJuzza, thanks for the post. I also tried your code with Dax and the performance is ...
thomas2004ch Hi, Is this startegy suitable for daily SPY? Regards
ebous64 Je cherche à traiter des effets de bords avec un encadrement ajustable des variables. Vous a...
thomas2004ch What are the values for nbx, nby, pbx, pby, ptsup, stplos, stptg, tp, vsmax, vsmin?
JohnScher Postscript: It's running in the live right now. One position after the other is opened. ...
ullle73 nice!! how's it been since your last post on going live? :)
thomas2004ch Hi, Is this strategy suitable for daily SPY? Regards
AndPar Buongiorno Nicolas, vorrei provare questo indicatore, ma quando lo inserisco in PRT mi vengo...
Nicolas Basta aggiungerlo al prezzo https://www.prorealcode.com/blog/video-tutorials/how-to-add-an-i...
Aragorna hello Nicolas, this indicator works with the last Beta version of PRT? Ive seen tha many in...
KAMJKAZE thanks, really interesting!
2c95 thanks, why do U prefer average than lowest ? to close under average does'nt mean another...
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 ...
cdc.andersson Hello, I´m trying to paste the code and start testing but can´t get it to work in PRT. Shoul...
Lupo32 Thank You Aaron
superfalcio I'm having no more issue on the new Prorealtime release 11.1
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. ...
Boris Hi IVMcm, thanks for your amazing work. I have tested all of your indicators and use some of...
IV Mcm With pleasure and thanks!
ashiash how to use this indicator can i use tradingview platform
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.....
Maxime Baudin Super travail !
Yanic c'est top j'adore
Maxime Baudin Merci l'ami, passe une bonne semaine
IV Mcm Merci de même ;)

Top