How i can get fixed value to candle number
-
I have two questions that I hope you can help me with
The first question.
I want to set a fixed candle every time the market moves the candle remains fixed
Example: I want to calculate the highest and lowest value of candle number 60 specifically every time the market moves after one candle the value of candle number 60 changes and so on.
I want the value fixed until the end of all open deals -
second question
How can I calculate the number of candles from the first deal I opened buy or sell until the current price -
@khalids222 I think this is what you are trying to achieve.
-
@jstap
Thank you very much, but I am trying to understand this method correctly so that I can put what I want, but it seems to me that there is something wrong.
As you see when the price changes, you see that the price is moving and not fixed -
@khalids222 I am a little lost, do you mean the variable values? Price never stops when the markets are open, put all variables into the comment block so you can visually watch what it's doing.
-
@jstap Are you sure block 4 is correct? I guess not.
-
@l-andorrà Yes it's just a bool condition to start/stop the candle count.
-
@jstap Ok. So it should say If start_buy_count=false. Right?
-
@l-andorrà If it had more words it would say if buy count = true, only then would it start the count.
-
@jstap Thank you again for your patience and I apologize for the delay in responding to my personal circumstances.
I know the price is moving but what I mean:
I will explain it with pictures and details -
@jstap Ok. Thanks.