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

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

author EAcpu | 4 reads | 0 comments |

Trading signals function. Based on the values ​​of the CCI indicator. - library for MetaTrader 4

Trading signals function. Based on the values ​​of the CCI indicator. - library for MetaTrader 4

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.

Trading signals function. Based on the values ​​of the CCI indicator. - library for MetaTrader 4


Attachment download

📎 Signal.mq4 (1.6 KB)

Source: MQL5 #8695

Verification code Refresh