Type/to search

Moving Average AO Indicator Trading Strategy

Cryptocurrency
Created: 2023-09-12 16:09:01
Last modified: 3 years ago
1
Follow
1781
Followers

This strategy combines moving averages and the AO oscillator to identify trends and trade pullbacks. It aims to capture short-term reversals in price oscillation.

Strategy Logic:

  1. Calculate fast EMA and slow SMA to construct a moving average system.

  2. Calculate fast and slow AO lines and the difference between them.

  3. Go long when fast MA crosses above slow MA, close is above slow MA, and AO rises.

  4. Go short when fast MA crosses below slow MA, close is below slow MA, and AO falls.

  5. AO compares differences to avoid false signals.

Advantages:

  1. MAs determine main trend, AO times reversals.

  2. AO difference filters false signals.

  3. Combining indicators improves accuracy.

Risks:

  1. Tuning required to match MA and AO with market conditions.

  2. Both MAs and AO lag, potentially missing best entries.

  3. Hard to set stops in ranging markets, increasing loss risks.

In summary, this strategy combines the strengths of MAs and AO for trading. This can improve signal quality to some extent but proper stops are still required to manage risks for steady returns.

Source
Pine
/*backtest
start: 2023-09-04 00:00:00
end: 2023-09-11 00:00:00
period: 30m
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy("MA&AO", overlay = true, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.075, currency='USD')
startP = timestamp(input(2017, "Start Year"), input(12, "Month"), input(17, "Day"), 0, 0)
end   = timestamp(input(9999, "End Year"),   input(1, "Month"),   input(1, "Day"),   0, 0)
Strategy parameters
Strategy parameters
Start Year
Month
Day
End Year
Month
Day
Fast EMA
Slow SMA
Awesome Length Fast
Awesome Length Slow
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)