Quality check my CrossTwoMALength AFL

Im quite new to AmiBroker and AFL but have used a couple of weeks on this now.
I have written a AFL code that will give me buy/sell signal when two moving averages crosses. Im happy with my AFL code, but not sure if its optimal, and need some feedback on my code or if its something else I should add to my code?

I have 200000 in InitialEquity and want to spend 20000 on each position. I want to use next day Open price when I get buy/sell signal.

_SECTION_BEGIN("Crossover Trading System");

SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C ));

//Initial Parameters
SetTradeDelays( 1, 1, 1, 1 );
SetOption("InitialEquity",200000);
SetOption("FuturesMode",False);
SetOption("MinShares",1);
SetOption("CommissionMode",2);
SetOption("CommissionAmount",95);
SetOption("AccountMargin",100);
SetOption("RefreshWhenCompleted",True);
SetPositionSize(20000,spsValue);
SetOption("AllowPositionShrinking", True );
BuyPrice=Open;
SellPrice=Open;
ShortPrice=Open;
CoverPrice=Open;

//Parameters
MALength1 = 6;
MALength2 = 34;

//Buy-Sell Logic
Buy = Cross(ma( C, MALength1 ),ma( C, MALength2 ));
Sell =Cross(ma( C, MALength2 ),ma( C, MALength1 ));
B=WriteIf(Buy, "Buy","0");
S=WriteIf(Sell,"Sell","0");

Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
Short = Sell;
Cover = Buy;

Filter= Buy OR Sell;
AddColumn(MALength1,"MALength1",format=1.2);
AddColumn(MALength2,"MALength2",format=1.2);
AddColumn(Close,"Close Price", format=1.2);
AddColumn(Buy,"Buy");
AddColumn(Sell,"Sell");


TextList = "No signal Buy Sell Buy and Sell"; 
AddColumn( IIf(Buy, 'B', IIf( Sell, 'S', 'N') ), "Which Signal", formatchar, IIf( Buy, colorGreen, IIf( Sell, colorRed, colorBlue)) ); 


Plot( Close, "Price", colorGreen, styleCandle );
Plot(ma( C, MALength1 ),"MALength1",colorWhite);
Plot(ma( C, MALength2 ),"MALength2",colorBlue);

/* Plot Buy and Sell Signal Arrows */
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40);
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50);
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45);
PlotShapes(IIf(Cover, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40);
PlotShapes(IIf(Cover, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50);
PlotShapes(IIf(Cover, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=40);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50);
PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45);
PlotShapes(IIf(Short, shapeSquare, shapeNone),colorRed, 0, H, Offset=40);
PlotShapes(IIf(Short, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50);
PlotShapes(IIf(Short, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45);


_SECTION_END();