Oscillators and Moving Averages Module

How it works

The Oscillators and Moving Averages Module by aggregating and analysing signals from any number of Oscillators and Moving Average Indicators Selected. Once the relevant Indicators have been selected, AESIR will pool together the computed results from Tradingview, and place a trade if the additional criteria in Moving Averages Threshold and Oscillators Threshold is met.

In addition to the General Configuration Optionswhich need to be defined for any strategy, The Moving Averages and Oscillators Module requires a few more variables to be set in order a configuration to be valid. These are: Moving Averages [Multiselect], Oscillators [Multiselect], Moving Averages Threshold [number], Oscillators Threshold [number] and Timeframe [select].

 

Moving Averages

A list of Moving Averages that AESIR will compute. Can select Multiple MA indicators. Can be empty, if Oscillators is not empty.

 

Oscillators

A list of Oscillators that AESIR will compute. Can select Multiple Oscillators. Can be empty, if Moving Averages is not empty.

 

Moving Averages Threshold

Represents the minimum number of Moving Averages that need to return a positive buy signal in order for a Trade to be placed. For instance, you have selected: EMA5, EMA10, EMA30 as your Moving Averages. Setting Moving Averages Threshold to 2 means that AESIR will place a trade when any 2 of the 3 Moving Averages selected indicate a buy signal.

 

Oscillators Threshold

Represents the minimum number of Oscillators that need to return a positive buy signal in order for a Trade to be placed. It works in the same way as the Moving Average Threshold.

 

Examples

If both Moving Average and Oscillators are selected, then both would need to evaluate to true in order for a trade to be placed. For instance:

 

  • You have set Moving Averages to [EMA5, EMA10, EMA30].
  • Moving Averages Threshold is set to 1.
  • Oscillators is set to [RSI, MACD].
  • Oscillators Threshold is set to 2.

 

In this configuration, AESIR will place a trade if at least 1 of the three Moving Averages selected returns a buy signal AND both Oscillators return a buy signal.

If either Oscillator or Moving Averages are left empty, only the populated will be evaluated. For instance:

 

  • You have set Moving Averages to [EMA5, EMA10, EMA30].
  • Moving Averages Threshold is set to 1.
  • Oscillators is Empty.
  • Oscillators Threshold Empty.

 

This configuration will trigger a trade if 1 of the three Moving averages returns a buy signal. Oscillators is not evaluated, since it is empty and therefore simply ignored.

 

Buy & Sell Signals

These are computed and evaluated based on general consensus of what constitutes a buy signal for each indicator. Below is a detailed breakdown of exactly when each Indicator returns a buy or sell signal.

 

  • Moving Average:
    • Buy: Current value < Close Price
    • Sell: Current value > Close Price

 

  • RSI
    • Buy: Current value < 30
    • Sell: Current value > 70

 

  • Stoch
    • Buy: stochK < 20 AND stochD < 20 AND stochK > stochD AND stochK1 < stochD1
    • Sell: stochK > 80 AND stochD > 80 AND stochK < stochD AND stochK1 > stochD1

 

  • CCI
    • Buy: cci20 < -100 AND cci20 > cci201
    • Sell: cci20 > 100 && cci20 < cci201

 

  • ADX
    • Buy: Current Value > 20 AND adxPdi1 < adxNdi1 AND adxPdi > adxNdi
    • Sell: Current Valye > 20 && adxPdi1 > adxNdi1 && adxPdi < adxNdi

 

  • AO
    • Buy: (Current Value > 0 AND ao1 < 0) OR (Current Value > 0 AND ao1 > 0 AND Current Value > ao1 AND ao2 > ao1)
    • Sell: (Current Value < 0 AND ao1 > 0) OR (Current Value < 0 AND ao1 < 0 AND ao < ao1 AND ao2 < ao1)

 

  • MOM
    • Buy: Current Value < mom1
    • Sell: Current Value > mom1