Swing Teller indicator

v10.3
Swing Teller indicator

This indicator is a part of a swing strategy described as follows by users in the forum:

Swing +1 starts when a candle closes higher then the 3 candles before.  And the swing -1 starts when the candle closes lower then 3 candles before. When a Fully swing has appeared (Swing 1 -> 9) it stops counting because the 10th candle is called the resting candle. If the 11th candle also closes higher then the 3 candles before the swing starts again at swing 1 (in green colour and red for -1). Also if a swing doesn’t succeed in reaching number 9, the swing has failed and an “F” letter appear above or below the candlestick.

The main purpose of this indicator is to signal a reversal. When a full swing +9 or -9 has appeared the chances of an upcoming bottom or a top increases a lot. A fully upswing +9 combined with a red 10th candle suggest to exit your long position. Its the same for a downswing -9 combined with a 10th green candle means exit your short position.

This swing counter indicator has been coded by request in the English forum. The 1 to 9 numbers distance form high or low of candlestick can be modified with the “CountDistance” setting.

The complete discussion can be found here: https://www.prorealcode.com/topic/rewrite-code-to-prorealtime-code/

 

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. JohnVS • 04/07/2017 #

    Hey Nicolas,
    Absolutly brilliant work. Thanks very much for your work, time and patience
    Its exactly what i was looking for and even the “F” feature is better then in the original 🙂
    rgds
    John

  2. JohnVS • 04/07/2017 #

    hi nicolas,
    I have a a question regarding the countdistance.
    Since the stock have a wide range of price sometimes is quite far away or very close to the candlestick. Would it possible to change it a little to making it depending on the price the number comes under or above say 1% of the price. It will keep the number in a fixed place.
    If you can make it a variable everyone can change it to ones liking.
    Hope you know what i mean
    rgds
    John
     

  3. JohnVS • 04/07/2017 #

     Hi Nicolas,
    There is a little problem in the swingcounter on the week charts.
    When the weeks are not complete as in being 5 days the counter plots 2 numbers on 1 bar as you can see on the picture included. Hope you can take a look at it.
    rgds
    John

    • Nicolas • 04/07/2017 #

      It’s a platform related problem currently being investigated. 

  4. JohnVS • 04/07/2017 #

    okay thanks,
    Hopefully u had a chance to check the other question too?
    Since the stock have a wide range of price sometimes is quite far away or very close to the candlestick. Would it possible to change it a little to making it depending on the price the number comes under or above say 1% of the price. It will keep the number in a fixed place.
    If you can make it a variable everyone can change it to ones liking.
    regds
    John

    • Nicolas • 04/07/2017 #

      I’m pretty sure you can do it yourself John! Please don’t be shy 🙂

  5. century • 04/07/2017 #

    thanks for this work , quite interesting
    but i would like the same thing as JohnVS , 😉

  6. platypus • 04/07/2017 #

    Bonjour Nicolas,
    Merci pour cet indicateur. Juste une question : les chiffres “upcount” en vert ne ressortent pas sur le graphique. Est-il possible de les mettre en noir ou en bleu foncé et comment procéder ?
    Merci par avance pour votre réponse.

    • Nicolas • 04/07/2017 #

      Il faut simplement changer les codes RVB de toutes les instructions “Coloured”. Il y a des exemples dans la documentation du site :https://www.prorealcode.com/documentation/coloured/

    • platypus • 04/07/2017 #

      Bonjour Nicolas,
      Merci pour votre réponse. Grace à celle-ci, le désagrément a été rectifié. Reste à bien utiliser votre indicateur.
      Encore merci. Cdlt

  7. swapping • 04/07/2017 #

    Wonderfull script, thank all’s

  8. ricksportel • 04/07/2017 #

    @JohnVS

    So how are things working out with this indicator 9 months later? Did it help you a lot?

    I just got familiar with the Swingteller by watching some great videos featuring Nico Bakker. I also just added the indicator to ProRealtime to check it out. I see a lot more ‘F’s compared to ‘9’s, so I am really curious to know how exactly you use it.

    By the way, I managed to make CountDistance percentage based. Checkout the attached code.

  9. ricksportel • 04/07/2017 #

    //PRC_swing teller live count2 | indicator
    //version with rounded numbers and below/above each candle
    //07.04.2017
    //Nicolas @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge
    //https://www.prorealcode.com/topic/rewrite-code-to-prorealtime-code/

    // — settings
    CountDistance=1.01
    // — end of settings

    Lb=4

    //continue swing Up
    if UpCount>0 and Close>Close[Lb] then
    DownCount=0
    UpCount=UpCount+1

    //draw count
    if UpCount=2 then
    drawtext(“2”,barindex,low-(low*CountDistance-low),Dialog,Standard,12) coloured(0,200,0)
    elsif UpCount=3 then
    drawtext(“3”,barindex,low-(low*CountDistance-low),Dialog,Standard,12) coloured(0,200,0)
    elsif UpCount=4 then
    drawtext(“4”,barindex,low-(low*CountDistance-low),Dialog,Standard,12) coloured(0,200,0)
    elsif UpCount=5 then
    drawtext(“5”,barindex,low-(low*CountDistance-low),Dialog,Standard,12) coloured(0,200,0)
    elsif UpCount=6 then
    drawtext(“6”,barindex,low-(low*CountDistance-low),Dialog,Standard,12) coloured(0,200,0)
    elsif UpCount=7 then
    drawtext(“7”,barindex,low-(low*CountDistance-low),Dialog,Standard,12) coloured(0,200,0)
    elsif UpCount=8 then
    drawtext(“8”,barindex,low-(low*CountDistance-low),Dialog,Standard,12) coloured(0,200,0)
    elsif UpCount=9 then
    drawtext(“9”,barindex,low-(low*CountDistance-low),Dialog,Standard,12) coloured(0,200,0)
    last9bar=barindex
    //reset count
    UpCount=0
    endif
    //up swing fail
    elsif UpCount>0 and Close0 and Close0 and Close>Close[Lb] then
    //draw fail count
    drawtext(“F”,barindex,high+(high*CountDistance-high),Dialog,Standard,12) coloured(200,0,0)
    //reset count
    DownCount=0
    endif

    //begin swing Up
    if UpCount=0 and barindex-last9bar>1 then
    r = close[Lb]
    if close>r then
    UpCount=1
    DownCount=0
    //draw count
    drawtext(“1”,barindex,low-(low*CountDistance-low),Dialog,Standard,12) coloured(0,200,0)
    endif
    endif

    //begin swing Down
    if DownCount=0 and barindex-last9bar>1 then
    r = close[Lb]
    if close<r then
    DownCount=1
    UpCount=0
    //draw count
    drawtext("1",barindex,high+(high*CountDistance-high),Dialog,Standard,12) coloured(200,0,0)
    endif
    endif

    return

  10. Edward Small • 04/07/2017 #

    The F markers are nice but many seem to fail and not signal a reversal. But my main concern is the 9 limit seem to be fixed for the time frame used which can change the dynamic of price movement so whole that seems to me to be a lot of guess work. 9? why not 6 or 10 or 14. Your chart is a daily I see that ok perhaps 9 is good on a daily but what about an hourly or 30 min.

  11. Regan2020 • 04/07/2017 #

    Hi, has anybody update the above code to enable on a 15m or 5m TF?

  12. gigi64 • 04/07/2017 #

    ik heb de code op mijn pro realtime gezet , en bij indicator staat hij erbij maar komt niet op mijn daggrafiek ook niet op 15 of 1 uur grafiek wat doe ik verkeerd

  13. gigi64 • 04/07/2017 #

    I have put the code on my pro realtime, and it is on the indicator, but it does not appear on my daily graph nor on 15 or 1 hour graph what am I doing wrong

avatar
Register or

Likes

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

+2 more likes

Related users ' posts
Finning Hi JuanJ, just a question about the tollerance*pointsize. I know what it is/what it does (in...
JOKAMAURICE Hi I am looking to number bars in a chart to ease analysis. Any idea if a program has been d...
goldenfish67 Hi guys just copied the code but I keep getting an error message: "Line 15 one of the fo...
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/
idunnomuch IS this working in the latest version of prorealtime? I get the indicator, but not over my c...
bernardmorel egalement apparait en dessous du graphique mais vide
bernardmorel Bonjour est t il possible de remettre en ligne the strat car il y a une indication qui d...
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 ?
Nicolas C'est dans ce sujet: https://www.prorealcode.com/topic/trendline-une-approche-du-trading/ M...
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.
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
jimkn0pf Christopher, wie saehe denn die Formel ohne Kontrollkerze (3. Kerze) aus?
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 Hi man, I installed the indicator and i don't know why but my graph it is so big
HelixKing sounds interesting I'll take a look
Godo Bonjour Souhait Sam, Après de nombreux essais pour le mettre en format afin d'utiliser ce c...
Nicolas Il faut supprimer celles qui existent dans la fenêtre d'optimisation et les créer en dur dan...
crusoe76 hi there, anyone can help making this strategy work, i have a message saying replace variabl...
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...
ribes65 Bonjour Nicolas, Merci pour votre travail. Est-il envisageable de créer un screener pour ...
Nicolas Bien sûr, merci de formuler une demande dans le forum des screeners pour prorealtime. En res...
ipbvba Est il possible de le transformer en indicateur (pour ne plus avoir les lignes mais uniqueme...
supertiti Bonjour Nicolas, Je ne comprend pas bien , le trend change de couleur quand les prix sont a...
Nicolas Oui ce serait possible, cependant l'indicateur est bien prévu pour conserver la couleur de l...
supertiti Quand tu pourras si tu peux nous coder la troisième couleur cela améliorerait les trades cou...
Nicolas How to import file page: in the help section of the website explains howto
kenssa import through the indicator page/window in the Proreal time
chicoteca Buenas, no consigo que se me muestre en el chart de DAX. ¿Cómo procedo? Gracias.-
frenqle Hi There.. It seems the TSL stop loss is not working.. it does not respond is that correct?
Ciccarelli Franco Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
JADINVEST Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...

Top