Flat price, low volatility

Forums ProRealTime English forum ProBuilder support Flat price, low volatility

Viewing 4 posts - 1 through 4 (of 4 total)
  • #18648

    Hi guys,

    first, do you have any tips on an already created indicator that returns when the volatility is low? When price is mostly flat and don’t move? Would be awesome if you could share me this!

    second, i wonder if i could use “ticks” in code, like close + 3 ticks upp/pips.

    Instead of coding close+0.3 i want to use 3 “ticks”, if the spread is 0.1. Due to that different instruments have different spreads i want to use “tick/pip/points” instead of a value like “0.3”. Is this possible, to use “number of steps” where the spread is 1 step? I want to use number of steps instead of a raw value, because some instruments may have 0.01 in spread, then my code would still work, because of the “steps” instead of a value. Hope i’m clear and that i could transfer my context.

    ps. don’t know if ticks is the right word. But one tick up or down is what i mean. Maybe a pip/point…

    Thanks in advance.

    #18658

    To make calculation “universal”, you can make use of the ticksize or pipsize / pointsize instruction.

    For example:

    Will give you = 0.0003 on EURUSD, while it will return 3 on DAX/GER30.

    About volatility, you may have a look on everything related to ATR (average true range) or even statistical deviation indicators like Bollinger Bands derived ones (%bandwidth, etc..)

     

    #18669

    Thanks alot Nicolas. Unfortunately does this not work on different stocks, it shows “0.001” on all of them, even while the spread ticks is different. Any suggestions?

    #18671

    About the spread, it is not possible to retrieve it with the code I’m sorry. You’ll have to set it manually into your code for each different instrument.

     

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login