Buy Sell Magical Trend

Buy Sell Magical Trend

The Buy Sell Magical Trend indicator is a “trailing stop” style indicator made of trend inversion obtained with Bollinger Bands. SignalPeriod is the period of the Bollinger bands and ArrowPeriod the standard deviation applied to it.
The arrows are painted on the breakthrough of the other side band with segments connecting the 2 most recent arrows.

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. FXtonio • 04/17/2023 #

    Bonjour Nicolas, génial cet indicateur, plutôt précis (67% de trades gagnants) merci 🙂

    • Nicolas • 04/17/2023 #

      C’est “magical” ! Bonne continuation 🙂

    • RICOU • 04/17/2023 #

      Bonjour, quelle est la meilleure UT pour travailler avec cet indicateur?

    • FXtonio • 04/17/2023 #

      @RICOU en 1 minutes avec un filtre de tendance ZLSMA 200 et eventuellement un rsi 7 , 69% de trade gagnant rr 1.5

  2. superfalcio • 04/17/2023 #

    Hello Nicolas, just started having a look on this last indicator : what timeframe this default parameters are working better? and as forex than indeces? thank you 🙂

    • Nicolas • 04/17/2023 #

      I don’t know, this is your part 🙂

  3. gioport • 04/17/2023 #

    Bonjour Nicolas…..
    est-il possible de construire un écran …. merci

    • Nicolas • 04/17/2023 #

      Merci d’ouvrir un sujet sur le forum avec une description complète du screener.

  4. RICOU • 04/17/2023 #

    Bonjour Nicolas, est il possible d’avoir un codage complet d’un trade automatique avec les paramètres de cet indicateur ?

    • Nicolas • 04/17/2023 #

      Oui, merci d’ouvrir un sujet dans le forum ProOrder pour créer une stratégie avec cet indicateur.

  5. Chrisinobi • 04/17/2023 #

    Hallo Nicolas eine Tolle Arbeit, wie immer !!!! Eine Frage zu Deinem Indikator, könntest du es so bauen, das man ein Signal auf die Pfeile setzen kann ???? Danke

    • Nicolas • 04/17/2023 #

      Ändern Sie die letzte Zeile des Codes mit:
      return ts coloured(r,g,0) style(dottedline,2), trend as “trend direction”
      um den Trend zu erhalten (1=grün, -1=rot)

  6. Chrisinobi • 04/17/2023 #

    Danke Nicolas, vielleicht habe ich mich verkehrt ausgedrückt, ich will gerne einen Alarm auf dem Pfeil haben um damit Automatisch einen Trade zu beginnen. Wenn das so möglich wäre ??? Nicht als Algo einfach nur in der Alarmeinstellung, um nicht ständig den Bildschirm zu beobachten müssen. Vielen Dank

    • Nicolas • 04/17/2023 #

      das ist richtig, man kann die Warnungen nicht codieren, also muss man das integrierte Tool der Plattform verwenden.

  7. Chrisinobi • 04/17/2023 #

    Ich Denke, ich habe es begriffen, in den Alarmeinstellung einfach, kreuzt über Wert 1, als Buy und kreuzt unter Wert -1, als Sell. Nochmals Danke

  8. aldtrading • 04/17/2023 #

    Merci pour votre travail.

  9. JC_Bywan • 04/17/2023 #

    For people interested in the screener: https://www.prorealcode.com/topic/screener-buy-sell-magic-indicator/#post-214201
    For people interested in a strategy: https://www.prorealcode.com/topic/buy-sell-magical-trend/

  10. octum • 04/17/2023 #

    Gracias NJicolas. Las lineas 35 y 36 dan fallo. (¿Es adrede para iniciados?)
    Puedes corregir porfa? Gracias.

  11. mortezaali14 • 168 days ago #

    Salut Nicholas, comment exécuter ce fichier dans les métadonnées

  12. Leduc71 • 5 days ago #

    Bravo ! Cet indicateur est un suiveur de tendance, type “stop and reverse”, inspiré des canaux de volatilité.
    Il fonctionne bien en tendance mais peut donner de faux signaux en range.
    C’est un outil robuste, populaire, à condition de bien régler les paramètres selon l’actif et la période.

    Points forts :
    Clarté : L’indicateur donne des signaux nets, faciles à lire sur le graphique.
    Suit les tendances : Il permet de “coller” à la tendance du marché, en sortant lors des retournements majeurs.
    Approche “stop and reverse” : Toujours en position (long ou short), pas de période à l’écart du marché.
    Approche éprouvée : La logique est proche de SuperTrend ou Donchian Channel, connus pour leur robustesse.

    Limites / Points de vigilance :
    Beaucoup de faux signaux en marché range : Comme tout indicateur de tendance, il peut donner des entrées/sorties inutiles sur un marché plat ou sans volatilité.
    Réactivité dépend des paramètres : Si SignalPeriod ou ArrowPeriod sont trop faibles, on aura trop de signaux ; trop élevés, tu risques de rater le début des mouvements.
    Pas de filtre de volatilité : Il n’intègre pas d’ATR ou de filtre pour ignorer les “bruits” de marché.

    Version améliorée avec filtres ATR et volume : les signaux d’achat/vente ne sont générés que lorsque la volatilité (ATR) et le volume dépassent des seuils définis, afin de limiter les faux signaux et ne prendre position que sur les phases actives du marché (on peut régler l’ATR et Volume au besoin)

    // PRC_BuySell Magic02 – Version filtrée ATR et Volume pour UT 1mn

    SignalPeriod = 12
    ArrowPeriod = 2
    ATRperiod = 14
    StartHour = 8
    EndHour = 18

    bbup = average[SignalPeriod] + std[SignalPeriod] * ArrowPeriod
    bbdn = average[SignalPeriod] – std[SignalPeriod] * ArrowPeriod

    myATR = average[ATRperiod](tr)

    // Initialisation
    if barindex = 0 then
    ts = 0
    trend = 0
    startbar = 0
    startts = 0
    endif

    // Entrée initiale avec filtres
    if ts = 0 and myATR > 0.60 and volume > 100 and (hour >= StartHour and hour 0.60 and volume > 100 and (hour >= StartHour and hour 0.60 and volume > 100 and (hour >= StartHour and hour <= EndHour) then
    trend = 1
    ts = bbdn
    r = 0
    g = 255
    drawarrowup(barindex, ts) coloured("lime")
    drawsegment(startbar, startts, barindex, ts) style(dottedline2) coloured("blue")
    startbar = barindex
    startts = ts
    endif

    return ts coloured(r, g, 0) style(dottedline, 2)

avatar
Register or

Likes

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

+21 more likes

Related users ' posts
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...
bab el franco hello once installed I have no results despite different options of markets or temporality
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.....
Nicolas Sorry there was a small issue in the code, i have changed the attached itf file and updated ...
Mitchy14 Hi Nicholas, apologies, I am usually fairly good at implementing your creations (for which I...
Nicolas Are you using PRT version pre-v11? TIMEFRAME for indicators is possible since months for pro...
venugopal Hi Nicolas, Thanks for this code. Is it possible to build a screener using this indicator?. ...
Nicolas It has been done in that topic. Enjoy.
Abouadam2 EFFICACE
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 ?
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 à ...
Pensera Bravo Nicolas ! Tu es en quelque sorte l’inventeur de Metascore…(oups je viens de lire jusqu...
Nicolas Dans un but d'investissement pure, et non spéculatif.
Enigma08 Hi Juanj. I am new to ProrealTime and I am trying to program the Proscreener. I want the Pro...
Nicolas Please open a topic in ProScreener forum with your query, I'll reply you there. Thank you.
manafull Thanks Nicolas, I post my question, along with the codes I am trying to convert from your in...
Nicolas I replied to your post here: https://www.prorealcode.com/topic/screener-for-rsi-and-linear-r...
Fabian Hi Thomas, thanks for your explanations. Which indicator do you use in the screenshot ...
Thomas Thats On Balance Volume and Bollinger or SMA or what you want. It shows me the volume flow. ...
bertrandpinoy @MAKSIDE I would be grateful if you send me your version. have a nice day
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
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!

Top