Multi Time Frame Indicator and HLOC price
Created at 11 Mar 2021, 15:33
Multi Time Frame Indicator and HLOC price
11 Mar 2021, 15:33
I'm working to make multi time frame bollingerband indicator, and I want user to choose which price they use to calculate, like open, close, high, low, as source parameter. At this moment my code is below.
[Parameter("Source",)]
public DataSeries Source { get; set; }
private BollingerBands bollingerBands;
Bars _bars;
protected override void Initialize() {
_bars = MarketData.GetBars(TimeFrame);
bollingerBands = Indicators.BollingerBands(_bars.ClosePrices, BandPeriod, std, MAType);
}
Please tell me how can I do this.
amusleh
11 Mar 2021, 15:54
Try this:
@amusleh