Value at a BAR

#1
Hi Traders, Good Day. I am trying to write a formula, where I need to get value of MACD at a certain bars, but that number of bars will not be defined. The value will be dynamically generated. I could have used REF but it accepts only constant data. I need some thing like below:

bars_1 := <some expression >


ValueAtaBar(MACD,bars_1);


Can any one help.
 

Similar threads