Trading signals function. Value based on CCI indicator. - MetaTrader 4 Library - MT4/MT5 Resources


Add the function to the EA: #include <Signal.mqh>
The condition if(GetSignal()==1) is used for purchase.
The condition if(GetSignal()==-1) is used for selling.
External variables of the function:
periodCCI - the average period over which the indicator is calculated.
Applied_price - Applied price. It can be any price constant ranging from 0 to 6.
shift - the index of the value obtained from the indicator buffer (shifted backward by the specified period relative to the current bar).
CCI_High - upper limit of the indicator.
CCI_Low - the lower level of the indicator.
Attachment download
📎 Signal.mq4 (1.6 KB)
Source: MQL5 #8695
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •