OST MACD EA for VertexFX

omsaitech555

Active Trader
Oct 15, 2015
24
1
39
The OST MACD Expert Advisor is a VertexFX client-side script that trades based on the Moving Average Convergence Divergence (MACD)

indicator and the trading range breakout mechanism.
This Expert Advisor uses the concept of MACD indicator and a breakout of the recent Highest High or Lowest Low in the direction of the MACD to

determine the trade entries. When the price breaks out above the recent Highest High it is a strong indicator of a new bullish uptrend. By using the

bullish confirmation of the MACD indicator the Expert Advisor ensures that the BUY trade has a very high probability of success. Similarly, when the

price breaks out below the recent Lowest Low it is a strong indicator of a new bearish downtrend. By using the bearish confirmation of the MACD

indicator, the Expert Advisor ensures that the SELL trade has a very high probability of success.
The Expert Advisor opens a BUY trade when the price has crossed above the Highest High of the recent BREAKOUT_PERIOD, and the MACD

Main indicator value is above the MACD Signal value. If a BUY trade is already open, then the new BUY signal is ignored, whereas if a SELL trade

is already open, it is closed and a new SELL trade is opened.
The Expert Advisor closes the BUY trade if the stop-loss is hit, or if the MACD Main value closes below the MACD Signal value.
Likewise, the Expert Advisor opens a SELL trade when the price has crossed below the Lowest Low of the recent BREAKOUT_PERIOD, and the

MACD Main indicator value is below the MACD Signal value. If a SELL trade is already open, then the new SELL signal is ignored. If a BUY trade

is already open, it is closed and a new SELL trade is opened.
The Expert Advisor closes the SELL trade if the stop-loss is hit, or if the MACD Main value closes above the MACD Signal value.
The initial stop-loss is set to the Average True Range calculated over the ATR_PERIOD and multiplied by the ATR_MULTIPLIER.
When a position reaches profit which is equal to the initial stop-loss, the Expert Advisor moves the stop-loss to the entry price if BE_ENABLED is set

to TRUE. Likewise, if PARTIAL_CLOSE_ENABLED is set to TRUE, it closes half of the position upon reaching this profit milestone.
The Expert Advisor does not use a profit target for the open positions. The open positions are closed by the initial-stop, the trailing stop or based on

the MACD exit rules. By not using a fixed profit target, the Expert Advisor capitalizes on generating huge profits when the trend is very strong and

continues for a long time.


http://www.hybrid-solutions.com/plugins/client-vtl-plugins/free/ost-macd.html
 

Attachments

  • OST_MACD_EA.zip
    4.2 KB · Views: 15