Forum

Run button disabled

Hi,I am developing an Expert advisor for Meta trader 4. my code compiles without error or warning in metaeditor, but anyway the run button is disabled son I can't test it.do you know why this could be? thanks for your help

DoubleToString returns null

Hi,I am trying to convert the value of Ask to string but it allways returns null :(,I don´t know the reason,the code is really simple just 2 arguments,here it is strprecio= DoubleToString (Ask, 4 ); the code is in MQL4 DoubletoStr() has the same problem,do you know any other way to convert a price

orderSend runtime error

Hi,I have the following simple code to open an order ticket = OrderSend ( _Symbol , 0 , 1.0 ,Ask, 5 , 0 , 0 ); the problem is that in runtime Ordersend returns -1 GetLastEror then returns "Expression could not be evaluated" I am going crazy because I ca't find where the problem is.the function

open and close orders

Hi,I am new in MQL and I have a doubt,when you open an order is it necesary to fill the stoploss and takeprofit fields? I mean wouldn't it be possible to open an order and close it in the future in the moment the EA determines it must do it? thanks for your help