BrainTrend_HTF_Signal - MetaTrader 5 Script - MT4/MT5 Resource

BrainTrend_HTF_Signal displays the trend direction starting from the last bar The BrainTrend1 and BrainTrend2 indicators are a series of graphical objects colored according to the trend direction. The number of bars to use is set in the input parameter.
Red indicates a downward trend, while purple indicates an upward trend. If there is no trend signal, use gray. The diamond is the BrainTrend1 signal and the circle is the BrainTrend2 signal.
Indicator input parameters:
The time frame and name of the financial assets used for indicator calculations can be changed through the appropriate input parameters of the indicator. If the Symbol_(Financial Asset) input parameter is empty, the current chart symbol will be used as the financial instrument.
All input parameters can be divided into two major groups:
//+------------------------------------------------+ //| Indicator input parameters | //+------------------------------------------------+ Enter string symbol_= ”” ; // Financial assets Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Indicator time range for indicator calculation Input integer ATR_period = 7 ; // ATR period Input integer STO_period = 9 ; // random period Input ENUM_MA_METHOD MA_METHOD= MODE_SMA ; // Smoothing method Input ENUM_STO_PRICE STO_price = STO_LOWHIGH ; // price calculation method
//----Indicator display settings Input StringSymbols_Mr.Name = "BrainTrend_Label_" ; // Indicator label name Enter unit Column total = 4 ; // Number of bars to display Input color UpSymbol_Color=blue-purple; // Growth symbol color Input color FlSymbol_Color=grey; //Flat symbol color Input color DnSymbol_Color=red; //Color of downfall symbol Input color IndName_Color=Dark Orchid; // Indicator name color Input unit symbol_size = 34 ; // Signal symbol size Input unit font size = 15 ; // Indicator name font size Input integer Xn= 0 ; // horizontal movement of name Input integer Yn=- 60 ; // Name moves vertically Input boolean display name = true ; // indicator name display Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // position angle Input unit X_= 0 ; // horizontal movement Input unit Y_= 30 ; // vertical translation
If you want to use multiple BrainTrend_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.
Place the BrainTrend1 and BrainTrend2 indicator compiled files into terminal_data_folder\MQL5\Indicators\.

Attachment download
📎 braintrend1.mq5 (7.26 KB)
📎 braintrend2.mq5 (7.98 KB)
📎 braintrend_htf_signal.mq5 (12.94 KB)
Source: MQL5 #691
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •