Forum

User Input

I used the predefined list, but it gave 1 error that says: cannot convert enum enum MY_TIMEFRAME { D1 = PERIOD_D1 , H4 = PERIOD_H4 , H1 = PERIOD_H1 , M15 = PERIOD_M15 , M5 = PERIOD_M5 }; input MY_TIMEFRAME Timeframe = H4; int OnInit () { datetime time = iTime ( _Symbol

Data Handling In Indicators

Hi, How can I determine the index value of the most recently closed bar. For instance, this indicator calculates data on the index that is currently being formed. The result is the display of upward and downward arrows if both conditions are met during the formation. Ideally, only one arrow should

Exponential Moving Average Indicator in MQL5

Hello, Can someone please refer me to a plain and straightforward exponential moving average (EMA) indicator written in MQL5. As I am currently learning the ins and outs of the MQL5 language, I believe it would be beneficial to study and understand how things work with this specific type of