Getting Error when Running Code

image

_SECTION_BEGIN( "Price" );
SetChartOptions( 0, chartShowArrows | chartShowDates );
_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ) );
Plot( C, "Close", ParamColor( "Color", colorDefault ), styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );
_SECTION_END();

SetOption("DisableRuinStop",True);

db=7;//Optimize("db",30,15,60,15);
p1=30;//Optimize("p1",75,25,125,25);
p2=150;//Optimize("p2",200,50,200,25);

em =Optimize( "per", 10, 50, 500, 50 ) ;

dd = DaysSince1900();

Short = L<LLV(Ref(L,-1),25) AND dd>( LastValue( dd ) - db ) AND H > 100 AND L<400 ;//AND

Short=Short AND BarIndex()!=(BarCount-1);

Cover = BarIndex() == BarCount - 1 OR C<100 ;

xx=50;
SetOption( "Initialequity", 77000xx10);
SetPositionSize( 40*xx, spsShares );
SetOption( "MaxOpenPositions", 10 );

Also How to Delete All the Symbols that have no quote ?

First which version are you running?

As to how to delete empty symbols see: Tools->Cleanup database.

Hello,

Amibroker 6.10.0