I am trying to plot in a scanner window when there is a narrow range bar. I am using code that I have used in TS but it isn't working with mc.
Code: Select all
if range < lowest(range,6)[1] then
begin
plot1(1,"NRx");
SetPlotBGColor(1,blue);
SetPlotColor(1,blue);
end
else begin
noplot(1);
end;
I have also copied a line out of the multicharts user guide on plot statements and I couldn't get it to work as stated...
Plot the closing price, offset back by 3 bars, using the plot color of blue, using cell background color of green if this plot is applied to a scanner, line width of 3, and name the plot "Close 3 bars later":
Code: Select all
Plot1[3](Close,"Close 3 bars later",Blue,Green,3);
Also multicharts is crashing intermittently as I try to compile this.
<<EXCEPTION>>
Address: 0x60D6EF77 ( 1624698743 )
Code: 0xC0000005 ( -1073741819 )
Continuable: 0x00000000 ( 0 )
Description: The instruction at 0x
ErrorCode: 0xC0000005 ( -1073741819 )
ExceptionType: 0x00000000 ( 0 )
Module: C:\Program Files (x86)\TS Support\MultiCharts\StudyRunner.dll
Process: C:\Program Files (x86)\TS Support\MultiCharts\MultiCharts.exe
Thread ID: 0x00001004 ( 4100 )
Time: 28.10.2011 - 16:40:46.276
Thanks