The fast Moving Average tracks the most recent changes in price, whereas the slow Moving Average tracks the changes in price over a longer period. The fast Moving Average responds to the price changes very quickly compared to the slow Moving Average. When the fast Moving Average moves in the direction of the price movement faster than the slow Moving Average it implies a confirmation in the direction of the trend.
ENTRY RULES for OST MA Crossover
Entry Rule No 1. BUY if the fast Moving Average crosses above the slow Moving Average and there is no BUY trade already open.
Entry Rule No 2. SELL if the fast Moving Average crosses below the slow Moving Average and there is no SELL trade already open.
EXIT RULES for OST MA Crossover
Exit Rule No 1. Exit BUY if the fast Moving Average crosses below the slow Moving Average.
Exit Rule No 2. Exit SELL if the slow Moving Average crosses above the slow Moving Average.
Exit Rule No 3. If the initial stop-loss is hit.
Exit Rule No 4. If the trailing stop-loss is hit.
It is very important to note that this Expert Advisor does not have a take-profit mechanism. Since the objective of this Expert Advisor is to catch large trends the losses are restricted (by using initial stop loss), whereas the profit opportunity is unlimited. As a result, this Expert Advisor can accumulate large profits if the trend is very strong.
The lot-size of each trade is based on whether Money Management is enabled or not. If Money Management is disabled, the fixed LOT_SIZE parameter value is used for the lot-size However, if Money Management is enabled, the lot-size is calculated based on the Account Balance, RISK_PERCENT parameter and the initial stop-loss.
The initial stop-loss is calculated by multiplying the ATR_MULTIPLIER with the Average True Range. Calculated using the ATR_PERIOD.
The trailing stop-loss is calculated by multiplying the TS_ATR_MULTIPLIER with the Average True Range calculated using the TS_ATR_PERIOD. The trailing stop is applied only when the trailing stop is profitable.
If the PARTIAL_CLOSING feature is enabled, half of the open position is closed when the open profit reaches the equivalent value of the initial stop-loss. For example, if the initial stop-loss is 50 pips, and the trade is 50 pips in profit, then half of the position is closed by this Partial Closing feature.
If the BREAKEVEN feature is enabled, then the stop-loss is moved to the entry price when the open profit reaches the equivalent value of the initial stop-loss. For example, if the initial stop-loss is 50 pips, and the trade is 50 pips in profit, then the stop-loss is moved to the entry price.
Please note that if both PARTIAL_CLOSING and BREAKEVEN are enabled, then half the position is closed and the stop-loss of the remaining half position is moved to the entry price when the open profit reaches an equivalent value of the initial stop-loss.