The Amibroker ApplyStop Function is one of the most useful functions in the Amibroker Formula Language. Using the Applystop function you can quickly and easily add many types of stops to your Amibroker trading system including:
- Initial stop loss (stopTypeLoss)
- Profit Target (stopTypeProfit)
- Trailing Stop Loss (stopTypeTrailing)
- Time Stop / N-Bar Stop (stopTypeNBar)
All of these stops can be added to your AFL code using just a single line to code each one! Many other trading software requires complicated coding to implement trailing stops and profit targets but Amibroker software allows you to do it very simply with the ApplyStop Function.
The Ultimate Free Amibroker Tutorial Guide – ApplyStop Function
In this section of The Ultimate Amibroker Tutorial Guide, you will find the following Amibroker Tutorial Videos on how to use the ApplyStop function:
- Introduction to The ApplyStop Function
- Code the Trailing ATR (Chandelier) Stop Loss, using ApplyStop
- How to Plot ApplyStop on a Chart
Introduction to The ApplyStop Function
In this Amibroker AFL Tutorial video taken from my Amibroker Launchpad Course gives you a solid introduction to the Amibroker ApplyStop Function. In this Amibroker tutorial video I explain all of the different types of stops you can create using the function including your initial stop loss, trailing stop, profit target and time stop. I also explain the different components of the Applystop Syntax so you know exactly how to use it yourself. This video gives you a sneak peak into the Amibroker Launchpad Course – I decided to share it here because there really were not any other great videos online explaining this function.
Viewing Time: 14.48 minutes
Channel Name: Enlightened Stock Trading
Let’s Learn Amibroker – Code the Trailing ATR (Chandelier) Stop Loss, using ApplyStop
In this Amibroker Tutorial video, Dave at ASX Market Watch explains how to code an Average True Range (ATR) trailing stop, also called a chandelier trailing stop using the Amibroker Applystop function. This is one of the most powerful applications of the ApplyStop function because it allows you to limit the size of your losses and also let your profits run – Both critical requirements for trend trading systems.
Let’s Learn Amibroker – How to Plot ApplyStop on a Chart
Perhaps one of the shortfalls of the ApplyStop Function in Amibroker is the inability to easily plot the function on your charts. To visualise the ApplyStop function you must independantly write the code to plot the indicator level. This can be quite challenging depending on the settings you use for your stop. In this Amibroker Tutorial Video, Dave from ASX Market watch does a reasonably good job of explaining how to plot the ApplyStop on your chart.