Amibroker Afl Code
// Plot Moving Averages Plot(ShortMA, "Short MA", colorRed); Plot(LongMA, "Long MA", colorGreen);
// Plot moving averages Plot(FastMA, "Fast MA", colorRed); Plot(SlowMA, "Slow MA", colorGreen); amibroker afl code
FastMA = MA(C, 10); SlowMA = MA(C, 50); Buy = Cross(FastMA, SlowMA); Sell = Cross(SlowMA, FastMA); Use code with caution. Copied to clipboard Once these rules are defined, they can be used in: // Plot Moving Averages Plot(ShortMA, "Short MA", colorRed);
: These are reserved variables that tell AmiBroker when to enter or exit a position. For example, Buy = Cross(Close, MA(Close, 20)); // Plot Moving Averages Plot(ShortMA