Amibroker Afl Code [ SAFE ✰ ]
PlotShapes(Buy * shapeUpArrow, colorGreen, 0, L, -20); PlotShapes(Sell * shapeDownArrow, colorRed, 0, H, 20); PlotShapes(Short * shapeDownArrow, colorPink, 0, H, -20); PlotShapes(Cover * shapeUpArrow, colorLightGrey, 0, L, 20);
// --- Exits --- Sell = Cross(ExitMA, C); // Price closes below MA Cover = Cross(C, ExitMA); // Price closes above MA for shorts amibroker afl code
// --- Backtest Settings --- SetPositionSize(1, spsShares); // 1 share for testing SetOption("InitialEquity", 100000); SetOption("FuturesMode", False); SetOption("PriceBoundChecking", True); PlotShapes(Buy * shapeUpArrow