Amibroker Autotrade AFL Toolkit - AlgoJi

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.

AutoTrade-Simplified.afl

This autotrading AFL has 5 parameters:

  1. Instrument Name: Select the instrument name for the market segment you want to trade
  2. 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
  3. Strategy Tag: You can use any strategy tag to manage signals coming from mutiple strategies in Amibroker. Eg. STG1, STG2, STG3 etc.
  4. Disable Long: If you want to disable all Long signals (use only Short side for trading), then turn this Yes
  5. Disable Short: If you want to disable all Short signals (use only Long side for trading), then turn this Yes

Click here to download the AutoTrade-Simplified.afl

AutoTrade-Separate-Entry-Exit.afl

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.

Click here to download the AutoTrade-Separate-Entry-Exit.afl

AutoTrade-Simplified-Exposure.afl

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.

Click here to download the AutoTrade-Simplified-Exposure.afl

AutoTrade-Exposure-EntryExit.afl

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.

Click here to download the AutoTrade-Exposure-EntryExit.afl

AutoTrade-Intraday-SL-TGT.afl

Using this AFL, you can apply stoploss/target to any strategy, or even make it intraday only. It has following additional parameters:

  1. 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
  2. Trade Entry From(HHMM): Time when you want to start trading, example 930
  3. Trade Entry Upto(HHMM): Time upto which you want to take fresh trades, example 1430 (for 2:30pm)
  4. Trade Exit(HHMM): Time at which you want to exit all open positions, example 1515
  5. StopLoss(Rs.): Stoploss in absolute points, for example 2.50
  6. Target(Rs.): Target in absolute points, for example 5.50
  7. Color of Modified Signals: This AFL displays on chart both original signals and modified signals, you can set its colors
  8. 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.

Click here to download the AutoTrade-Intraday-SL-TGT.afl

AutoTrade-MultiTargets.afl

This AFL has all features of AutoTrade-Intraday-SL-TGT.afl but additionally you can set multiple targets to scale-out positions.

Click here to download the AutoTrade-MultiTargets.afl

PlotAll-Signals.afl

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.

Click here to download the PlotAll-Signals.afl

Latest Amibroker AFL

Please visit this section to download many clean and verified AFL codes: https://algoji.com/latest-amibroker-afl/