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

    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

+6 more likes

Related users ' posts
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
skfomx I have a thread in pro screener support where I describe some problems with the creation of ...
fazel53 How do i attach this indicator to my mt5 platform?
Nicolas You can't! All indicators here are for ProRealTime trading platform: https://www.prorealtime...
mistersylv What parameter should we change to make another channel appear in the higher or lower time u...
carpentier Joffrey Bonjour à tous, Avant tout merci pour ce travail, cependant je suis bloqué quand je l'insta...
carpentier Joffrey Re, C'est ok, j'ai trouvé mon erreur... Cependant sur quel base peut on calculer son CALC...
Aragorna Hi Nicolas, How is it possible to use it in a higher timeframe plotted on a lower timeframe?...
Bhanu Pratap Great Work Sir, Hats Off.
bolsatonimora2 Hi Roberto, It is possible to modify this indicator which it marks the supports and resist...
robertogozzi What do you mean by "very high volume"? What do you want to be printed exactly?
Bard Very interesting approach Vonasi! I'm getting a 404 error when trying to download though?
Vonasi I just tested and I was able to download with no error.
Psari Hi Vonasi, I am a newbie and was wondering whether you could possibly help me with this pro...
Vonasi Yes that was the issue. I have posted an updated ITF file here: https://www.prorealcode.com/...
crolakstrading @vonasi Thank you for fixing the issue! This is a great indicator.
gregoire good evening vonasi , I had made the request to create this indicator a few years ago and I ...
Giogio hello dear Vonasi, thank you for your indicator, can I ask you for some help in order to let...
Pottar24 HI Vonasi I would like to know how can this algorithm give me the value of the last max e mi...
parthapersonal Hello Vonasi, Great work. Is it possible to replicate this to get values of "Price Line" (1...
tobytarczy Hi Vonasi, Sounds lovely, I race yachts around europe myself. Most regattas cancelled unfor...
mlouys Hello Vonasi thank for your work ! A question how can we do it for minutes ( or 15 min or x ...
Vonasi I think that would be possible but probably in a whole new indicator as detecting when a new...
thierrybl Thanks a lot
B-ling1 Hi Vonasi, I love this indicator - good job! Just one question: If I want the monthly OHLC L...
ezman Copy and paste this code, don't work. error!
datageek How do I change the thickness of the line or change it too dashed lines? Kind regards
lkiklkik NE fonctionne pas ( ou plus ... )
Nicolas il faut modifier toutes les références à top par itop et bottom par ibottom. Ces mots étant ...
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...
abhay I am getting a shading between the lines, how can I avoid that. I just want to see lines as ...
Vonasi Delete the 'Color Zone' in the indicator settings window.
mathiasKN Steffen Schmauch • 12/11/2018 # hello Nicolas, can I change the indicator that I only get t...
Nicolas Please open a new topic in the indicator forum and explain there your query, thank you.
upupandaway This seems like a very useful indicator. However, it does not seem to open properly in the c...

Top