Amibroker Autotrade AFL Toolkit contains a set of AFLs for automating your strategy. You can use these set of AFLs to change any strategy signals for intraday trading or multiple targets. The AFLs work for Indian markets in stocks, futures, options, currency and commodities.
How to Use Amibroker Autotrade AFL Toolkit
You can read and understand the different parameter options provided by these set of AFLs. To modify your strategy, simply add the required autotrade AFL at the end of your strategy AFL. This is all you need to start automated trading with AlgoJi APIBridge.
However, remember the Garbage In Garbage Out principle. 90% of AFL codes on internet are not programmed properly. If you use the Autotrade AFL toolkit with random AFLs on the internet, chances are that you will face many issues.
This autotrading AFL has 5 parameters:
- Instrument Name: Select the instrument name for the market segment you want to trade
- Trade Intrabar: If you want to trade immediately when signal appears, select Yes. If you want to wait for signal confirmation until completion of candle, select Candle Completion
- Strategy Tag: You can use any strategy tag to manage signals coming from mutiple strategies in Amibroker. Eg. STG1, STG2, STG3 etc.
- Disable Long: If you want to disable all Long signals (use only Short side for trading), then turn this Yes
- Disable Short: If you want to disable all Short signals (use only Long side for trading), then turn this Yes
This autotrading AFL has same parameters as AutoTrade-Simplified.afl. However, it allows you to control entries and exits separately. Example, use Limit orders for entries and use StopLoss Order for exits.
This AFL has additional parameter of Exposure compared to AutoTrade-Simplified.afl. It allows you to automatically control the number of shares/contracts to buy or sell. For example, If you want to buy/sell each stock with Rs. 100,000, you can se the exposure =100000 and run the AFL on multiple stocks. It will automatically trade 1000 share for a 100 rs. stock, and 250 shares of a 400 rs. stock.
This autotrading AFL has same parameters as AutoTrade-Simplified-Exposure.afl. However, it allows you to control entries and exits separately. Example, use Limit orders for entries and use Market order for exits.
Using this AFL, you can apply stoploss/target to any strategy, or even make it intraday only. It has following additional parameters:
- Activate Intrade Mode? If turned yes, it makes even a positional trading or indicator based strategy for intraday trading only. To apply the intraday timings rule, you should turn this on
- Trade Entry From(HHMM): Time when you want to start trading, example 930
- Trade Entry Upto(HHMM): Time upto which you want to take fresh trades, example 1430 (for 2:30pm)
- Trade Exit(HHMM): Time at which you want to exit all open positions, example 1515
- StopLoss(Rs.): Stoploss in absolute points, for example 2.50
- Target(Rs.): Target in absolute points, for example 5.50
- Color of Modified Signals: This AFL displays on chart both original signals and modified signals, you can set its colors
- Exposure and Quantity both parameters are available. If you change exposure to non-zero value, it will take quantity as per exposure. If exposure is zero, it will take the defined quantity.
This AFL has all features of AutoTrade-Intraday-SL-TGT.afl but additionally you can set multiple targets to scale-out positions.
90% of AFLs found over internet have repainting/fake signals. Sometimes you may find an Order placed but no signal in Amibroker Chart. This can happen only if AFL has fake signals. The actual signals triggered by AFL may be different then the signals plot on chart. To check signals, use the AFL plotALLsignals.afl with bar-replay.
Latest Amibroker AFL
Please visit this section to download many clean and verified AFL codes: https://algoji.com/latest-amibroker-afl/