This library is a further development of SignalMAAboveBelow.
What’s new in version 2
- The Type of trade parameter allows to set the type of signal to be produced by the module:
- only BUY
- only SELL
- BUY and SELL
Example of opening positions when Reverse == false:
Fig. 1. SignalMAAboveBelow 2 – opening a BUY position
Fig. 2. SignalMAAboveBelow 2 – opening a SELL position
Parameters of the signals module
- Reverse – the flag of the reverse of signals;
- PeriodMA – the averaging period of the Moving Average indicator;
- Shift – the horizontal shift of the Moving Average indicator;
- Method – type of smoothing of the Moving Average indicator;
- Applied – the type of the price, based on which the Moving Average indicator is calculated;
- TypeOfTrade – type of trading signals: 0 → BUY, 1 → SELL, 2 → BUY and SELL.