Help with this Forumla
-
I want to add the Candle Body Size(pips) for not just last 2 candles like in the screenshot but for "n" number of candle and store that value to a variable. How can this be achieved?

-
try using custom code block ...
averageBody and allBody are variables
x are candles "n"
I have not tested it ...
-
Could you use a counter block - pass n times?

-
probably you can use it, try it carefully, you can place on the chart comments to see whats happening

-
I sure try to test this and will let you guys know how it goes. Thank you very much for your suggestions.
-
I tried the Counter Pass n times block but something is not working right for me I am only seeing the result of last candle. and not "n" number of candles. Seems like the loop is not working as expected or for some reason its not adding the body size correctly to the variable.
One more thing I noticed which could be the reason:
In your "Candle Index Counter" Formula block...I noticed you have an extra field called "Cross Width" What is that? I don't have it in my Formula black where I am adding to the Candle number.Thanks in Advance.