Help me in draw object pls!
-
My ideas:
It's about the Bollinger band breakout.
In case the candle break and continue go up or go down:
Conditional 1:
When the first Candle closes outside the BB upper band I will draw a Fibonacci retracement. Like that (this case is break and go down) :

So I have set a conditional like that (this case is break and go up)

Level 100 is the highest price and Level 0 is the lowest price.


I just draw it in the first candle (which means the first momentum of price)
But when I set the conditional of block conditional like that the BOT continues to draw Fibonacci for the next candle and the next candle if it's matching with the conditional.
I have to try to insert the block "Once per object" and then the BOT draw it only one time.

So I have tried to add another conditional like that but it did not work.
The idea of this condition is that if candle id 01 closed outside the BB AND the candle id 02 closed inside the BB then draw Fibo retracement. And I think it's can filter the wrong signal like the first case. But it's still not working.

This is the link to my project: https://fxdreema.com/shared/VxRXMuXne
Pls help me! Thank you so much
-
@hhhung94 Do you really need the fibo to be drawn on the chart? As far as I understand what you need that would not be the case. You can calculate the fibo level you want via variables, but that would be a simple structure to build.
-
Well thank you for responding to my post,
I see what you mean, it is not necessary to draw the Fibonacci in this case.
However can you help me with 2 condition blocks to be able to calculate variables in this case?
My idea is to do the calculation only for the first candle that closes outside the Bolinger line.
How can I set the condition to do that? -
@hhhung94 You can use a yes/no variable. As soon as that condition is met, the variable is set to true for example. That way no more candles outside the BB will be considered. However, you will need to restart the variable to false again when necessary.
-
Can you explain more clear your mean? I try to add set Flag True/False but it's not work. Thank you so much..
My project here: https://fxdreema.com/shared/g2AtM2m7e -
@hhhung94 I mean something like this:
https://fxdreema.com/shared/dbJHouTTd
You will need to reinititiate thevariable to false as soon as the is a crossing in the ooposite direction. Otherwise the variable would not work properly.
-
Thank you, I understood you logic.
I have tried but it is not work like I want.
This my project after apply your logic. https://fxdreema.com/shared/9uuPL0VHb
Pls review my project and input for me if I'm wrong at somewhere.
Thank you so much!
-
@hhhung94 Sadly the problem is that you are using the same candle ID to define the fibo retracement and the block need two different candle ID to work correctly.
-
Yeah, thank you, but I don't think problem at Block Fibonacci,
Probably because I have tried replace Draw Fibonacci block by Pending Order Block and the result is same.
I think problem at the way I put block "One per bar" or something wrong in logic at condition 1 and condition 2.