Round Number Block (Pass when near round number)
-
Hello,
I need to create a block that only passes when price is near a round number.
I know we have the 'Round number block' but that only works if the round number has been hit?
I need it so that it passes when price is X pips away, or X percentage away from the round number.Is this possible? Thanks.
-
https://i.imgur.com/x66LNdE.png
Here is an example. I would like the block to pass only when inside the red box (A set amount either side of the Round Number)
-
@highmoose How are those round numbers calculated? Or do you need ALL possible round numbers?
-
Yes all round numbers that end in either 000 or 500
-
@highmoose Try this, but I didn't test it:

-
@l-andorrà I tried but the systems rejects the use of ?. Can you suggest another way to achieve this? Thanks
-
@didymario7 That's weird. It should accept it with no problem. Can you please share the link to your project?
-
-
@l-andorrà This is the syntac error I get- https://im.ge/i/syntax.lTaTC
-
@didymario7 Then I have no idea why happens, sorry.
Any programmer here? -
@didymario7 said in Round Number Block (Pass when near round number):
did you ever get this iron out @Highmoose @didymario7 ?
-
@tipsywisdom No I didnt.
-
2 months later, here I am with a thought and trying to find a solution. You?