I created my own indicator and would like to also plot its moving average. I know this can done with the built-in indicators but what about a custom-made indicator? Is there a way to pass a custom series to an MA function?
If I have to create my own MA function what data structure options for the price series are available in Javascript? I know about arrays and I believe there is a simple collection class. Is there anything like a stack so I can pop the most recent price onto the stack and everything shifts down?
If I have to create my own MA function what data structure options for the price series are available in Javascript? I know about arrays and I believe there is a simple collection class. Is there anything like a stack so I can pop the most recent price onto the stack and everything shifts down?
Comment