Forum

Different Indicator values in visual mode ON and OFF

Here is the problem: When I use the visual mode, indicators are drawing values that are the same as when I print the values in the log. Unfortuanltelly, when I don't use the visual mode, indicators change the drawing values and they do not correspond to the ones from the log(Print function was

Volume limit reached problem when publishing the EA

Hi everyone, there is an issue I saw many people had when they were trying to publish their EAs. Here is some output I get(errors). 2019.04 . 05 03 : 30 : 00 failed instant sell 0.75 EURUSD at 1.12243 sl: 1.12503 tp: 1.11463 [Volume limit reached] 2019.04 . 05 09 : 00 : 00 failed instant sell

Reading buffer values from custom indicators

Hi everyone, I am programming in MQL4 for some time but there is an issue I can't resolve and it is around using buffers in custom indicators. Specifically, it is one indicator that I found online(i have it's source code). Here is the picture of the indicator *** How I approached the problem: I've

MT5 not recognizing simple if statement

I have a problem with MT5. I was building a more advanced EA and I had strange problems. Then I decided to go to basics and see what is the problem. Here is the simple code I wrote, and it is not performing how it should. input ENUM_TIMEFRAMES timeframe = PERIOD_M15 ;

Strategy Tester stops at 10%

Hi, I've built an EA and wanted to backtest it in a Strategy tester . When using historical data from the broker, on EURUSD, everything works fine. But when I switch to any other pair, strategy tester just stops at x%, around 10-15% depending on a pair, and does not want to go any further.. Does

Can't open a simple buy trade?

MqlTradeRequest myrequest; MqlTradeResult myresult; ZeroMemory (myrequest); ZeroMemory (myresult); myrequest.type = ORDER_TYPE_BUY ; myrequest.action = TRADE_ACTION_DEAL ; myrequest.sl = 0 ; myrequest.tp = 0 ; myrequest.deviation = 20 ;