Here is the code for the indicator :
"Update every tick" is deselected. I tried on many different machines with different setups and MC is always not crashing, but is working 100times slower ( in BarHigh-BarLow mode) then without this indicator. With other PlotStyles everything is fine.Inputs : Price(Close),Length(89),Pct1(0.21),Pct2(0.34);
Vars : Var1(0), Var2(0), Var3(0), Var4(0), Var0(0);
Var0 = @Xaverage(Price,Length);
Var1 = (Var0 * (100 + Pct2)) / 100;
Var2 = (Var0 * (100 + Pct1)) / 100;
Var3 = (Var0 * (100 - Pct1)) / 100;
Var4 = (Var0 * (100 - Pct2)) / 100;
Plot1(Var0,"Xavg");
Plot2(Var1,"VT2");
Plot3(Var2,"VT1");
Plot4(Var3,"VB1");
Plot5(Var4,"VB2");
Kind regards.
Mike