Forum

Order Send Error 130 : Invalid Stops in BuyStop. Can someone help?

So I get this error in Backtesting: And this is my code, I want to add a BuyStop at High Price from Previous Candle: pr= iHigh ( NULL , PERIOD_CURRENT , 1 ); ticket= OrderSend ( Symbol (),OP_BUYSTOP,LotSize,pr,Slippage, 0 , 0 , NULL ,MagicNumber, TimeCurrent ()+ 3600 ,Blue); I already read this

I get error OrderModify error 1 in Strategy Tester mt4. Can someone help me fix this?

So, I get this error in strategy tester mt4: Beside of the error, the strategy tester works really fine. But I'm afraid if I using this code in real account, this error would disrupt the trading. Can someone help me to fix this? This is the code I write: extern int Magic1 = 100 ; extern int

Create ZigZag EA and filters?

Hello, my name is Daniel and I am still a newbie in this forum. I want to learn how to create an EA using ZigZag as main indicator and few filters to filter out false signal. So, I read this thread : https://www.mql5.com/en/forum/144092/page2#854926 After I read that thread, I have few question in

Need help fixing my points/pips/digits problem in my mql4 EA. Any help would be really appreciated.

So, I want my EA on my ECN broker for all currency to have S/L at 30 points and T/P at 60 point. Here's my input code: input double StopLoss = 30 ; //Fixed Stop Loss (in Points) input double TakeProfit = 60 ; //Fixed Take Profit (in Points) input int