Filter for too high volatility

Forums ProRealTime English forum ProOrder support Filter for too high volatility

Viewing 6 posts - 1 through 6 (of 6 total)
  • #180718

    I’m not sure yet whether it makes sense …

    is there a filter / indicator that keeps my bot out of the market if it is too volatile? For example, when news triggers high price fluctuations in both directions. Can you filter that in order to stay away from the market, i.e. not trigger a trade?

    #180720

    You could make that filter yourself. Say some news make a spike, you can decide not to open a trade, no matter if your conditions are met, if the candle ‘s range is N times its average range over the last P periods.

    Or if the high is greater than the previous bar by X%.

    #180721

    Could you please provide me with the code?

    #180732

    There you go:

    then use TradeOFF to not enter a trade.

     

    1 user thanked author for this post.
    #180817
    JS

    Hi @phoentzs

    You can also use the above with the volatility:

    xVolatility = Std[n](Close)

    or percentage

    xPVolatility = (Std[n](Close) / Close) * 100

    when the volatility is higher than x%, ensure that no trades are executed or close current trades.

    #180818

    Thank you. 👍🏼

Viewing 6 posts - 1 through 6 (of 6 total)

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