Forum

Questions in understanding the indicator system in MQL5

I'm new to MQL5 with some experience in MQL4. In MQL4 the indicator value is directly called by double value = iSomeIndicator(symbol, period, parameters..., shift); While MQL5 we use a handle to initialize first, use CopyBuffer() to map it to a defined Array then visit the array to get value. So my

Minimum requirements for showing different symbol info in-time info in one chart?

I want to read, for eg. the live RSI of EURUSD, AUDUSD, CADJPY when I'm running EA on NZDUSD chart every several ticks passed on NZDUSD, however, I don't want to open the EURUSD/AUDUSD/CADJPY chart all the time. I remember in such case the EURUSD etc. might not always keep refreshing and will return

possible to send MT4 notification when account is disconnected from server?

Don't want rent a VPS, use local machine to run EA. However the local network is not stable and might get disconnected (sometimes it lasts forever until take human action). I want to ensure that when network is disconnected and lasts for given threshold then send notification to mobile (which should

How to show result for strategy tester in optimization even if it is insiginificant?

I have an EA that works good in some charts (which means profit is greater than zero), but is not working good in other ones. I know the profit is negative, but I still want to use optimization to see the exact negative value, drawdown etc. to determine parameters. As you may know. Optimization

How do I get chart not shown on screen auto refreshed?

My task is, for eg, when executing EA on EURUSD chart H1, calculate RSI on H1, RVI on M15 and MACD on M5 simutanously to get my result. double myValue = iRSI ( NULL , PERIOD_H1 , 14 , PRICE_CLOSE , 0 ) + iRVI ( NULL , PERIOD_M30 , 13 , PRICE_CLOSE , 0 ) + iMACD ( NULL

Calculate indicators across symbols get value wrong

My requirement is to calculate value across indicator of multiple symbols and get back result in whole, but looks like something got wrong that I can never guarentee all of the symbols outside of the current chart window is right. Brief code is as follows: void onStart() { int output =

Anyway to calculate indicator reversely to the price?

I have a request, that to use the indicator functions in the reverse direction of what it should be. For eg. 'I want to place a buy limit order where iRSI(14) = 20. Currently, the RSI is above 20. What is the price I should place it on?' 'I want to place the stop loss value where MACD signal line