This is a simple prototype Amibroker AFL Code for those who want to design a level based breakout system when the technical event occurs(For example ema crossover, MACD crossing zero or RSI crossing above a certain threshold).
System is designed in such a way that when a bullish technical condition occurs that high of the candle price will be used for buying price reference and when bearish condition occurs that low of the candle price will be used for selling price reference.
Short EMA = 13 EMA
Long EMA = 34 EMA
Look for Long Opportunity on the Positive EMA Crossover.
When the EMA Crossover happens, use the high of the candle as a buying reference and enter Buy on the breakout of the EMA candle crossover high reference.
Exit Long Condition
Look for Long Exit on the Negative EMA Crossover.
When the EMA Crossover crossover happens, use the low of the candle as selling reference and exit long on the breakout of the EMA candle crossover low reference
Amibroker AFL Code for the Simple EMA Crossover High-Low Breakout System.