Flat price, low volatility

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18648 quote
    Spekulanten
    Participant
    Average

    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 quote
    Nicolas
    Keymaster
    Master

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

    For example:

    3 * pointsize

    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 quote
    Spekulanten
    Participant
    Average

    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 quote
    Nicolas
    Keymaster
    Master

    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.

    spread=3 //set your spread in the code
    value = close+spread*pointsize
    
    Spekulanten thanked this post
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Flat price, low volatility


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Nicolas
9 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/16/2016
Status: Active
Attachments: No files
Logo Logo
Loading...