I have a number of custom indicators, is it posible to on the Initialise method to set the default value of a parameter to the value used buy one of my other indicators if it is loaded?
I have tried the following
protected override void Initialize() {
Overlay = true;
if (strength == -1) {
strength = 2;
foreach (Indicator ind in Indicators) {
if (ind.GetType() == typeof(HiLowSwing)) {
strength = (ind as HiLowSwing).Strength;
}
}
}
}
The Indicators collection is empty, can i reference the indicators collection loaded on the chart?
Thanks
Mike
Comment