Tag: how to write amibroker afl scripts

MarketSecrets - Learn To Trade Like a Pro

AMIBroker AFL Data Feed – June 2021

AMIBroker is one of the most famous Algo-Trading Tools available in the market today, which uses AFL Scripting. We can use AMIBroker to create, back-test and deploy and strategy. This post is the placeholder for sharing AMIBroker AFL Data Feed for June 2021. Note: These files contain data feed up-to 1 minute. We are providing…
Read more

How to create algo for MACD Momentum Trading strategy?

How to create algo for MACD Momentum Trading strategy?

Condition:
The MACD indicator is one of the most popular indicators to determine trending prices. The basic trading rules is to buy when it cuts above zero line or buy when its cuts above signal line. When the direction of trend is not clear, MACD stays close to the zero line.

The trading idea is simple.
We need to buy when
• trend is strong
• there is momentum in market
• the market is not sideways

Buy Condition: MACD above 0 and MACD above Signal Line and MACD above 25 and Signal candle is beyond Bollinger Band
Sell Condition: When either MACD below 0 or MACD below Signal Line

Reverse is applicable for shorting.

AMIBroker AFL Data Feed – May 2021

AMIBroker is one of the most famous Algo-Trading Tools available in the market today, which uses AFL Scripting. We can use AMIBroker to create, back-test and deploy and strategy. This post is the placeholder for sharing AMIBroker AFL Data Feed for May 2021. Note: These files contain data feed up-to 1 minute. We are providing…
Read more

AMIBroker AFL Data Feed – April 2021

AMIBroker is one of the most famous Algo-Trading Tools available in the market today, which uses AFL Scripting. We can use AMIBroker to create, back-test and deploy and strategy. This post is the placeholder for sharing AMIBroker AFL Data Feed for April 2021. Note: These files contain data feed up-to 1 minute. We are providing…
Read more

How to setup Algo-Trading for Simple Breakout Trading Strategy?

How to setup Algo-Trading for Simple Breakout Trading Strategy?

Condition: It is very simple. If price breaks out above the previous day’s high, go long. If price breaks out below the previous day’s low, short. There is one additional check – price should have opened between previous day’s low and high

Script Setup:

I’ll go long if
• Today’s opening price is less than previous day’s high
• Today’s high is greater than previous day’s high (this is break out to upside)
• Current time is between 9.45 & 3.15

I’ll short if
• Today’s opening price is higher than previous day’s low
• Today’s low is lower than previous day’s low (this is break out to downside)
• Current time is between 9.45 & 3.15

This simple set-up can be used to create AFLs for any of the breakout patterns in including Flag, Triangles, etc. We will use this code as base template in future episodes to teach various breakout patterns.

AMIBroker AFL Data Feed – March 2021

AMIBroker is one of the most famous Algo-Trading Tools available in the market today, which uses AFL Scripting. We can use AMIBroker to create, back-test and deploy and strategy. This post is the placeholder for sharing AMIBroker AFL Data Feed for March 2021. Note: These files contain data feed up-to 1 minute. We are providing…
Read more

AMIBroker AFL Data Feed – February 2021

AMIBroker is one of the most famous Algo-Trading Tools available in the market today, which uses AFL Scripting. We can use AMIBroker to create, back-test and deploy and strategy. This post is the placeholder for sharing AMIBroker AFL Data Feed for February 2021. Note: These files contain data feed up-to 1 minute. We are providing…
Read more

AMIBroker AFL Data Feed – January 2021

AMIBroker is one of the most famous Algo-Trading Tools available in the market today, which uses AFL Scripting. We can use AMIBroker to create, back-test and deploy and strategy. This post is the placeholder for sharing AMIBroker AFL Data Feed for January 2021. Note: These files contain data feed up-to 1 minute. We are providing…
Read more

AMIBroker AFL Data Feed – December 2020

AMIBroker is one of the most famous Algo-Trading Tools available in the market today, which uses AFL Scripting. We can use AMIBroker to create, back-test and deploy and strategy. This post is the placeholder for sharing AMIBroker AFL Data Feed for December 2020. Note: These files contain data feed up-to 1 minute. We are providing…
Read more

AMIBroker AFL Data Feed – November 2020

AMIBroker is one of the most famous Algo-Trading Tools available in the market today, which uses AFL Scripting. We can use AMIBroker to create, back-test and deploy and strategy. This post is the placeholder for sharing AMIBroker AFL Data Feed for November 2020. Note: These files contain data feed up-to 1 minute. We are providing…
Read more

error: Content is protected !!