Forum

Calculate a Moving Average from Arrays

Hello everyone, I would like to calculate a moving average , not from prices but from 2 histograms which accumulate values, in this way : (Hist1a) if current low < previous low --> = 1 if current low ≮ previous low --> = 0 (Hist2a) if current vol < previous vol --> = 1 if current

Need Help for Custom Indicator With Variables

Hello everyone I work on a custom indicator and begin learning coding following tutorials and articles, after several months some limitations persist and I thought getting your opinion could help me. Please excuse any possible beginner's mistakes, the basic idea of the indicator may seem simple

0-LINE CODE FOR INDICATOR

Hello, I'm a beginner and would like to know how to code a 0 line in the middle of the indicator graph with the possibility of modifying its width, color..., can you help me? Thank you very much for your answers