Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

XBullsBearsEyes_Vol - MetaTrader 5 Script - MT4/MT5 Resource

author EAcpu | 3 reads | 0 comments |

XBullsBearsEyes_Vol - indicator for MetaTrader 5

BullsBearsEyes_Vol indicator and additional average of the resulting histogram. Similar averaging also applies to dynamic overbought/oversold levels.

 //+------------------------------------------------------------------------+
//| Indicator input |
//+------------------------------------------------------------------------+
Input unit period = 13 ; // indicator average period
Enter double gamma = 0.6 ; // indicator smoothing rate
input ENUM_APPLIED_VOLUME volume type = volume_scale ; // volume
Enter an integer High level 2 = + 25 ; // Overbought level 2
Enter an integer High level 1 = + 10 ; // Overbought level 1
Enter an integer low level 1 = - 10 ; // oversold level 1
Enter an integer low level 2 = - 25 ; // Oversold level 2
Enter Smooth_Method MA_SMethod=MODE_SMA_; // Average method
Input unit MA_length = 12 ; // Smoothing depth
Input integer MA_phase = 15 ; // first smoothing parameter,
//---- For JJMA, it changes within the range of -100...+100, which affects the quality of the transient process;
//---- For VIDIA this is the CMO period, for AMA this is a slow average
Input integer shift = 0 ; // indicator moves horizontally (in bars)

The indicator uses SmoothAlgorithms.mqh library class (copy it to \MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

XBullsBearsEyes_Vol - indicator for MetaTrader 5

Figure 1. XBullsBearsEyes_Vol indicator


Attachment download

📎 SmoothAlgorithms.mqh (130.2 KB)

📎XBullsBearsEyes_Vol.mq5 (30.8 KB)

Source: MQL5 #22570

Verification code Refresh