I have an indicator. A simple oscillator. It can have an input other than price. This all works fine. For example, instead of Close as the Input, I might have an input of SMA(Close,50). Again, this works fine.
What I want to do, inside the indicator, is pass the same input series to another indicator, say, EMA within the code. So, I might say, EMA e = EMA(Input); and I am Expecting the original Input of SMA(Close,50) to apply, so effectively, it'd be EMA(SMA(Close,50))
I hope this makes sense as to what I am trying to do. The input cannot be hardcoded as the input could be any indicator/price when it is added to the chart.
Would you expect this to work? I am getting unexpected results, so wanted to verify with you that what I am doing is sound.
Thanks.
[edit: apologies - I just realised this is not in the indicator forum. I cannot delete posts. Please feel free to move it]
Comment