Forum

Controling MT4 via cmd ?

Hi, Can Mt4 can be controlled via cmd (windows shell - command line) ? For example, to send "buy" order to MT by the command line ? Why to do so ? Well, suppose I want to control MT4 on my computer when I'm not there. I want to send an email to my outlook, with the subject: "BUY 1 GBPUSD". Now I'll

To trade or not to trade Indicators?

Do you know indicators which determine if it is a "trade zone" or not ? I know only one - "noise to signal" indicator. If you know more, please write them here... 10X

ICustom question ..

Hi, I want to check if some indicator, let's say Fisher_jurik, is crossing the "0". I have tried to use iCustom but I don't think I understand how to do it ... the code is : int start() { //---- int ticket; if(Volume[0]>1) return; double res0 = iCustom(NULL,0,"Fisher_Yur4Ik",0,0); double res1 =

EA help!! I'm desperate...

I have a simple EA that open buy orders at Ask price or sell orders at Bid Price. When I'm tring to backtest it, I'm getting errors regarding to the open price of the trade. How can It be ??? Attached here the output of the jurnal with those errors. I have Printed all the variables that I pass to

EA question

Hi all ! I have a quite simple question (I think...) Suppose I have a EA that opens several trades - all with sepecific TP. Now, I want that this EA will close all the other open trades, once one of the open trades will hit it's TP. I want that this will happend also if the EA was stopped from some

Script don't work - need help

Hi, I am tring to run the following script on MT4 (build 196) and I get an error msg - "Invalid trade parameters ". //+------------------------------------------------------------------+ //| script "send pending order with expiration data" |

How to get an indicator value for another time frame ?

Suppose I run an EA code on a 5 min chart. How can I know the current value of some indicator, lat's say RSI, on the 15 min chart (of the same symbol of course), or any other time frame rather the time frame from which I run the EA? 10X ! yaniv

Question: Time base exit

Hi, How can I know the duration expresse by number of bars (in the current chart) for a specific position ? Actually, I want to close a position automatically after 30 bars (in my expert-advisor) How can I do that ? 10X

Please help !!!

Hi, I'm writing the simplest code I can but I always get error "Invalid price" when tring opening a position !!! ex: if (OrdersTotal() == 1) return; res=OrderSend(Symbol(),OP_SELL,Lots, Bid,3,Bid+StopLoss*Point,Bid-TakeProfit*Point,"",100,0,Red); if(res<0) { Print("OrderSend SELL failed with error