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

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

  12. Leduc71 • 15 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
Doctrading Hello, Someone asked me something (his results seemed to be different) on my email, but it ...
Glen Marquis Not your best..So what is your best strategy? :)
verdi55 At least there should be some moving average that has also reverted into the opposite direct...
verdi55 In addition to the moving average, wait until at least one bar is completely back inside the...
rama This works excellent on range bound I tried , give 90% win rates on dax , 3 min chart. can s...
GraHal Hi Nicolas I like this and would like to understand it fully so please forgive the (maybe) d...
Nicolas Hi GraHal, the Factor parameter is only a multiplier of the ATR that is added or subtracted ...
GraHal Nicolas, thank you for your useful and informative response. Yes I optimise using ProBackte...
Denis Hello, Congratulations and thank you for this work. I do not understand one thing, however...
Nicolas
9 years ago
GraHal Hi Nicolas Britains .itf file didn't work for me ... I had to change h to hh at line 13 and...
Nicolas Thank you GraHal for pointing this error, i have corrected the code in the file. The code in...
Nicolas
9 years ago
cepamoi Unfortunately, this still does not work: ONCE haOpen = medianprice haOpen = ((Open[1]+High...
Nicolas Force calculation to wait 1 bar of history already loaded: ONCE haOpen = medianprice if b...
cepamoi Now it works. Thanks a lot Nicolas! Here is the full code: // variables : // period ...
Nicolas
10 years ago
U Trend Sensor
U Trend Sensor
4
Indicators
Nicolas Hi Stef, thanks again for contributing to my near perfect english :)
Salocin Hi Nicolas, seems to be a pretty cool one as an indicator. can you define "plotsingal". Syst...
Nicolas Download the itf file attached to the post, there's everything needed in it. Just import thi...
Nicolas
10 years ago
cosmicsurfer I actually live up the road from Daryl Guppy. On the first day of my training i walked aroun...
Pleidian Hi, I'm trying to add the guppy indicator to my charts but i keep getting a box that's says ...
Nicolas Wrong copy/paste? Always a better idea to download the ITF file and import it into the platf...
Yantra "i believe this indicator could help any trend followers in trading decision. " I'm wonderin...
Nicolas
10 years ago
Tradesun Salve, ho provato ad inserire l'indicatore nella piattaforma ma mi chiede di definire la var...
maximus78 Tradesun, se scarichi il file ITF allegato e lo importi nella piattaforma ci sono già le var...

Top