protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
Overlay = false;
Add(PeriodType.Volume,anchorMultiplier);
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
try
{
if (BarsInProgress == 1)
{
Plot0.Set(EMA(Close,maLength)[0]);
//this should plot the MA of the larger chart???? doesn't work.
}
}
catch(Exception err) {Print(err.ToString());}
Comment