Combine the current candle with the previous one continuously throughout the day
-
In this example I want to combine the current candle with the previous one every quarter.
Please help from experienced people.
Is this method correct?shared/54wfkzKwc
-
@new1 Not sure what you mean. What do you exactly need?
-
-
@new1 Ok. So essentially what you want is adding the number of pips (from high to low) of candle 1 to the number of pips (from high to low) of candle 2 and so on. Correct?
-
@l-andorrà said in Combine the current candle with the previous one continuously throughout the day:
Ok. So essentially what you want is adding the number of pips (from high to low) of candle 1 to the number of pips (from high to low) of candle 2 and so on. Correct?
Yes, I want to add the old candle pipss to the new candle.
So that it is a continuous candle that has not ended every time -
@new1 Then you need to create two variables in which you can accumulate that number. Something like this:

-
@l-andorrà Thank you, I appreciate your time, but I have two questions. Please explain when answering. Thank you
1-In the photo I sent, what is the value overall pips? candle total size or body pips or high or what?2-I attached another picture? Is the method correct or not?

-
@new1 Modification nummber1 (you sent)
-
@new1 No, your system will not work as expected. In my image:
-
The formula block on top is storing the value (in pips) of candle ID 1 within the variable called 'previous_bar_pips'. As new candles are created, that value will change.
-
The formula block below is adding that value to the overall value (in pips) of all previous candles. This means the value you are looking for is this one called 'overall_pips'.
Your system is adding values from different candles. That way you will never get the distance in pips from high to low in any candle.
-
-
@l-andorrà While looking for something similar, I found this response to you, but you didn't value overall_pips .
Is it possible to put its value please ? -
@khalids222 Sorry, but what do you exactly mean?
-
@l-andorrà said in Combine the current candle with the previous one continuously throughout the day:
@new1 Then you need to create two variables in which you can accumulate that number. Something like this:

In this image you put a value called overall_pips a (variable)
What type of variable is here, what is its definition -
@khalids222 Oh, Ok. sorry. It is a double variable.
