Sweet Spots – round numbers

v10.3
Sweet Spots – round numbers

The SweetSpots indicator plots automatically lines on round price rates, not only double zeros, it includes any round numbers calculated with 2 different settings in parameters:

  • MainLevels (define major levels, define this setting in points/pips, it will automatically adapt the calculation for the current security/instrument)
  • SubLevels (define sub levels, same setting as MainLevels one)

The ‘NumLinesAboveBelow’ setting will determine how much levels will be plotted on the chart (default is 100 lines above and below the current Close).

 

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. Bullan • 12/04/2017 #

    Hi Nicolas, thanks a lot for posting this, very useful. A quick question, I havent much experience with coding but was wondering how I could go about changing the colour of the lines as well as the thickness of the lines? Also, is it possible to put a label on the lines?

    Thanks
    Andrew

    • Bullan • 12/04/2017 #

      One other quick thing, I notice that the lines flicker on and off when price trades close to either side of the level – is there any way of turning this feature off? Cheers

    • Nicolas • 12/04/2017 #

      Not possible to change the thickness. You can add text with DRAWTEXT instruction, you’ll find many examples in the library.

  2. financier • 12/04/2017 #

    Hi, Nicholas I find your sweetspot indicator very handy for identifying key areas in a range of markets, and I would like to incorporate what I think are important levels into my own programmes. Is it possible to reference these lines either in this or a similar programme by attributing variable names to them directly ?
    Thank you very much for your help and time.

    • Nicolas • 12/04/2017 #

      Sure,you can. Just add different variables in the loop and test them at each iteration if they have a value or not. Dont forget to reset them to zero before the loop.

  3. BobFlynn • 12/04/2017 #

    Hello @Nicolas
    Thank you very much for this code ! It’s very useful to me.

    I was wondering how I could use in ProOrder. I manage to simply call it, but how can I use the different levels to raise conditions ?

    Let me know if I shall open a new topic for this.
    Thanks,

    • Nicolas • 12/04/2017 #

      Lines are just graphical and are not returned by the indicator. To use it in automated trading, it would be adapted somehow. Please open a new topic for this specific question.

  4. robbo192 • 12/04/2017 #

    Nicolas, How do you change the colour of the lines? or would you change the code for a fee. I am looking for dark blue rather than the yellow. This is really important to me as I trade off Round numbers. Thanks Rob.

    • Nicolas • 12/04/2017 #

      change the lines with:
      r=0
      g=0
      and lines with coloured like this: coloured(r,g,255)

  5. robbo192 • 12/04/2017 #

    It’s ok this indicator is perfect. You have saved me lots of time with this indicator. It would be better if the sub lines where a light grey.

  6. robbo192 • 12/04/2017 #

    Have you any indicators that might help you trade off round numbers. I look for the break and bounce off round numbers.

  7. s00071609 • 12/04/2017 #

    I am using this indicator but it keep crashing as i change the timeframe. For example, changing from 1 Min to 5 minute. Each time I change timeframe, I need to reload this indicator. The error gives “calculation error”. I load only 5 lines, yet this keeps crashing. What could be the issue? thanks

    • Nicolas • 12/04/2017 #

      in the mean time you can try this one: https://www.prorealcode.com/prorealtime-indicators/horisontal-grid-for-00-values/

  8. Gianluca • 281 days ago #

    Is it possible to have an indicator where those value are as instogram ? and separated? in order to obtain them for a strategy?

avatar
Register or

Likes

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

+5 more likes

Related users ' posts
mscharstrom Hi @robertogozzi, I really love this indicator. However, I'd like to tinker with it to fit ...
Ahimsa Hi Roberto I cannot thank you enough for writing this code. It could help me more than you ...
Nicolas With PRT v11, you have to click on "price" at the upper left side of the price chart.
Nicolas Sure, I suggest you open a new topic in the forum to discuss about your ideas.
hdgm Bonjour Nicolas, est ce que l'on peut en faire une stratégie de trading automatisée ?
Nicolas Non, pas en utilisant l'indicateur zigzag traditionnel de la plateforme.
Gianluca ok i fixed it i hope is ok like this: //TAC trader zone 10.2 | indicator //01.01.2018 //R...
TAC Bolsa Hello try this new version or view the blog with the new indicators .. https://www.t...
TAC Bolsa Sorry, TAC Trader Zone V2 https://www.tiburonesdealetacorta.com/2018/11/indicador-tac-tr...
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
ciniselloftse salve fulvio .il trading sistem e sempre profittevole?
cervantes2 Buenas tardes y gracias por este magnifico indicador. Queria saber si tienes un proscreener ...
cervantes2 Que busque los valores que la linea verde acaba de cruzar al alza o a la baja
AngelPujalt Tenéis algún screener de este indicador?
Nicolas Formule de l'indicateur Momentum: Le Momentum se calcule avec une simple soustraction pour ...
Roberto1 Hi, can this code be converted for the Nanotrader Platform or for the MT4 Platform?
Nicolas This website is dedicated for PRT programming, but you can still ask for private coding with...
Yannick Hello There is a mistake in trailing stop code, I think that this should fix the problem s...
Paul About the trailing-stop the way it's coded. That works for backtesting only, just look at th...
Jonny sorry paul, but system says that is not possible to put many stop order combined...what have...
rb-72 Thank you, area of twist by dilatacion of the price, missing part of the code that is not pu...
Thomas007 after reading your blog now I understand why there is only a part of your code here. I'm try...
Juanjo Hola¡¡ la estrategia se podria aplicar sobre acciones con marco temporal diario?? gracias.
Paul Thanks for posting. I was currently searching how to improve day-trading based on support an...
Jessar Könntest du im Forum etwas öffnen und später darüber zu sprechen?
arahussein Hi All, I am new to trading and i find this indicator very logicail! Hence my (dumb?) quest...
Wing Not yet but I plan to.
Leo Have a look in this Forum, I got something interesting for you... https://www.prorealcode.co...
Dávid Gyalus Dear Wing, As I am a daytrader, and one of my best friend is a programmer we think your a...
Nicolas Questo indicatore è stato progettato solo per i dati intraday, ma potrebbe essere adattato a...
MrCrous //FR Bonjour, Dans le code ci dessus, je ne comprends pas ce que fait la ligne : linea...
Nicolas J'ai déjà répondu à cette question quelque part sur le forum. Il faudrait chercher un topic ...
Wing Yes, investigate as much as you want. For more insight, you can view the linet1, linet2 etc....
CKW Hi Wing, Thanks for your sharing. I am still trying to breakdown & understand your code...
Wing Hello CKW. No, the parameter, 7 in this case, is used when calling the RSI indicator to ide...

Top