Amibroker Autotrade AFL Toolkit contains a set of AFLs for automating/modifying your strategy. You can use these set of AFLs to change any strategy signals for intraday trading or multiple targets. The AFLs work for different markets like stocks, futures, options, currency and commodities.
Also, watch this video on Troubleshooting for Amibroker using FYERS API Bridge.
90% of AFL codes on the 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.
90% of AFLs found over the 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 the chart. To check signals, use the AFL plotALLsignals.afl with bar-replay.
Instrument Name: Select the instrument name for the market segment you want to trade
Trade Intrabar: If you want to trade immediately when the signal appears, select Yes. If you want to wait for signal confirmation until completion of the candle, select Candle Completion
Strategy Tag: You can use any strategy tag to manage signals coming from multiple 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 is a simple and powerful auto trading template for strategies where you want to trade DOUBLE quantity on the reverse signal. It should be used only for strategies where buy= cover and sell= short.
Parameters:
Instrument Name: Select the instrument name for the market segment you want to trade
Trade Intrabar: If you want to trade immediately when the signal appears, select Yes. If you want to wait for signal confirmation until completion of the candle, select Candle Completion
Strategy Tag: You can use any strategy tag to manage signals coming from multiple 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
Initial qty- the quantity you want to trade. It will get double after the 1st trade signal
Previous Session Position- If yes it will double the quantity from 1st trade signal else it will double from second trade signal
Reset – reset the trading quantity to initial quantity
This is an advanced template useful for intraday trading.
Parameters:
Activate Intrade Mode? If turned yes, it makes even 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 up to which you want to take fresh trades, example 1430 (for 2:30 pm)
Trade Exit(HHMM): Time at which you want to exit all open positions, example 1515
StopLoss(%): Stoploss in percentage from Buy/Short signals
Trail Stop(%): Trail Stop in percentage from Buy/Short signals
Target(%): Target in percentage from Buy/Short signals
Colour of Modified Signals: This AFL displays on chart both original signals and modified signals, you can set colours. The stop-loss, trail stop and target lines are also drawn on the chart with the same colour.
Exposure and Quantity both parameters are available. If exposure is 0, it will take the defined Quantity. Exposure example: If you want to buy/sell each stock with Rs. 100,000, you can set 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.
Qty Using SL: If this is given non-zero value, it calculates quantity based on SL as defined in percentage. It will ignore Quantity given in parameter or Quantity calculated from Exposure.
This is a basic template used for trading in options.
You can use it on any chart of cash/future to trade in options based on signals generated in the chart.
If a Buy signal generated, it will Buy Call and exit the Long position in Put.
If a Sell signal generated, it will Buy Put and exit the Long position in Call.
Parameters:
Base symbol- a symbol of derivative you want to trade-in.
Expiry- Expiry of that Put/Call
Put Strike – strike for selecting Put for trading
Call strike- strike for selecting Cut for trading
Instrument Name: should be OPTIDX or OPTSTK
Trade Intrabar: If you want to trade immediately when the signal appears, select Yes. If you want to wait for signal confirmation until completion of the candle, select Candle Completion
Quantity- Total quantity in which you want to trade. For example, in Nifty 1 lot use 75, Nifty 2 lot use 150 and so on.
This is an advanced template with position sizing used for strategies where Buy (LE) and Cover (SX) are the same; Sell (LX) and Short (SE) are the same. It is basically addon version of Intraday Trading AFL.
Parameters:
Colour of Modified Signals: This AFL displays on chart both original signals and modified signals, you can set colours. The stop-loss, trail stop and target lines are also drawn on the chart with the same colour.
Exposure and Quantity both parameters are available. If exposure is 0, it will take the defined Quantity. Exposure example: If you want to buy/sell each stock with Rs. 100,000, you can set 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.
Qty Using SL: If this is given non-zero value, it calculates quantity based on SL as defined in percentage. It will ignore Quantity given in parameter or Quantity calculated from Exposure.
Day Profit Limit: Strategy will square-off and stop trading when the profit limit reached (example 5000)
Day Loss Limit: Strategy will square-off and stop trading when loss limit reached (example 2000)
Apply Intraday Martingale: Select NO or Arithmetic or Geometric
Note:
This works only when Intraday mode is activated
If selected Arithmetic, it adds the trading quantity on every losing trade. Example trade quantity is 1, after every losing trading, it adds 1 to new trade. So the progression is like 1, 2, 3, 4, 5….
If selected Geometric, it multiplies the trading quantity on every losing trade with 2. Example trade quantity is 1, after every losing trading, it multiplies 2 to new trade. So the progression is like 1, 2, 4, 8, 16….
Integrating FYERS API Bridge with Amibroker is extremely simple, watch the following video for complete integration. Amibroker Autotrade AFL Toolkit contains a set of AFLs for automating/modifying your strategy. You can use these set of AFLs to ...
Central Pivot Range (CPR) is one of the prominently used indicators by day traders that helps you to identify the important price levels to set up trades. CPR can also be used to understand or predict the trends in the market. The major concept ...
To use the Price Ladder feature on FYERS Web, follow these steps: Locate the 'Trade' (Depth of Market) option at the bottom of the FYERS Web platform, next to the 'Account Manager'. Click on 'Trade'. This opens the Depth of Market (DOM) tab, where ...
Yes, on FYERS, technical indicators are available across all timeframes, allowing you to apply in-depth technical analysis to your chosen trading strategy. Whether you are using the seconds charts for scalping or the monthly charts for long-term ...
Quick Trade Mode allows you to place instant market orders using keyboard shortcuts without the need to open an order window. Here’s how to enable and use it: Enable Quick Trade Mode: Open the Scalper Terminal and go to Settings. Toggle the Quick ...