Forum

error 130

I am getting error 130 can someone help here is what i am doing get the signal from email and opening trades on mt4 its working smooth on alpari uk demo account but getting error on hotforex current price 1.2560 where SL=1.2460 output of StrToDouble(SL) is 1.246 int ticket_num = OrderSend

10pips above upper band

Hi I am trying code EA it should open position once price goes 10-15 above 3 bands but not able to figure out how to check # of pips after its above upper band like below code will confirm that its above upper band but after this condition I want to wait till it goes 15pips up and then open position

trilling stop code

Hi, I have an EA which opens trade, but I am not able to figure out how to do trilling on it can someone give me code to do trilling as fallowing condition 1. once i am xx pips in profit I want to close half position and put stoploss on 1 pip profit ex: if I buy 1lot at 1.4400 once market is at

close all pending orders

I am trying to close all pending orders but it is closing only half of it here is the code i am using if(OrdersTotal()>0){ for (int i=1; i<=OrdersTotal(); i++) //Cycle for all orders.. { if(OrderSelect(i-1,SELECT_BY_POS)==true)//If there is the next one { if(OrderType()>1) //pending orders

custom indicator to EA

I am new to mql programming Hi have custom indicator (bought it online), I want to write EA which will check the condition and open the trade, I know it possible but what I don't understand is how to call it and get the return values from that indicator ? Thank You

email .ex4 file

is there a way to email .ex4 file through sendmail

EA trading only Sell

Hi, I am back-testing an EA and its trading only Sell, for some reason its not trading any Buy. Can someone help plzzzzzz and its NOT throwing any error messages also, so don't know what is wrong...also download the History for all instruments I am testing this EA on but same thing only Sell's no