// Passing in the second Bars object held in a multi-instrument and timeframe strategy // The default value used for the SMA calculation is the close price double value = SMA(BarsArray[1], 20)[0]; Print("The current SMA value is " + value.ToString());
If I do following, it will apply to primary instrument but I want SMA of HIGH of secondary instrument.
double value = SMA(High, 20)[0]
Comment