Generic Amibroker Exploration AFL Code - AlgoJi

We attempt to code the perfect Amibroker Exploration AFL Code which can work with any good strategy- positional or intraday.

How to Use the Amibroker Exploration AFL Code

Step 1: Click here to download the AFL file. Save it on standard location like desktop for convenient use in future.

Step 2: Append this code at the bottom of the AFL strategy for which you want to run exploration. If you are not sure how to edit code, go through our 5-Minute Amibroker Training for Algo Trading

Step 3: Done! If you are not sure how to run exploration, please go through our

 

Parameters in Amibroker Exploration AFL Code

Even if the original AFL is positional, you can use it for intraday exploration by using this exploration code.

Intraday Mode: YES|NO allows you to turn the exploration in intraday or positional mode.

Trade Entry From: Specify in HHMM format the time after which you want to start trading. Some traders do not trade in first 15 minutes after market open because market is very volatile at this time.

Trade Entry Upto: Specify in HHMM format the time after which intraday exploration aflyou do not want to take a fresh trade. Example: Many traders do not want to create a new position in last one hour of market.

Trade Exit Time: Time at which Amibroker will generate exit signal for open positions.

Limitations of Amibroker Exploration AFL Code

This AFL cannot continue a signal from previous day. In the example of SuperTrend, if ST continues in sell signal from yesterday, the AFL will plot exit signal at end of day. But it cannot plot fresh Sell signal at market open. Fresh signal is generated when SuperTrend indicates buy/sell. To get rid of this limitation, the complete modification of original afl is required. Please share your coding requirement in comments section or avail personal consultancy.