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 • 165 days ago #

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

  12. Leduc71 • 2 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
Marc Boliart Hi! i do not know why _v.1.1"] was on 1st line, remember to remove it!
Iván Change line 23 for this IF BarIndex <= 2 THEN
roccafragius Thank you so much!!!!!! :):)
roccafragius Hi Ivan, unfortunatelly I still hace some problem using timeframe 3 minutes in 1 minutes, th...
Iván
3 weeks ago
roccafragius Thank you so much, for my point of view very useful!!!
NicoGB67 Excelente trabajo!!
Jrmjrm Bonsoir est-il possible d'avoir cet indicateur, mais à la place du Wilder Average, utiliser ...
Iván Hi! just change line13 for this: showsignals=1
Quino Hi Excellent indicator as usual. Just 2 questions: Why LenH and LenL = 15 as Len could be...
Iván Hi! good question. This is a code request traslation from other platform. I took same inputs...
Gaspare Grazie Ivan, ottimo indicatore posso chiedere, per favore, una strategia che apre posizio...
Iván thanks! maybe I could test it
Iván
9 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.
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...
ipbvba Hello, Is it possible to have a screener for the various buy and sell signals?

Top