MQL4 and MetaTrader 4 - page 1129

How is it possible to trade wrong prices in MT4, and how can it be avoided? Does anyone have experience with this that can elaborate on: - How this is possible - How to avoid it - What are consequences of trading wrong prices continually?
[Deleted]
I have a 2-dimension array: double Data[5][2000]; The first dimension identifies 1 of 5 timeframes (0 = 1 minute, 1 = 5 minute, 2 = 15 minute, 3 = 30 minute, 4 = 60 minutes). For each timeframe, the array holds up to 2000 data points. I want to call the function iMAOnArray, using one of the 5 sets...
[Deleted]
Is there any way send TWS Interactive Broker account's trade signals to MT4 account?
Hi guys, I was reading the forum and manuals but nothing... This is my code: for (int Count = 0; Count < OrdersHistoryTotal(); Count ++) { OrderSelect(Count, SELECT_BY_POS, MODE_HISTORY); if (OrderSymbol() == Symbol()) { double price_ini = OrderOpenPrice();...
[Deleted]
Hope someone can explain this. I'm stumped. Look at this small example of the problem: int start() { string tt, tt_now; tt_now = "" + Hour() + ":" + Minute(); Comment("Current Server Time is: ", tt_now, " IsTesting: ", IsTesting(), "\n"); tt = StringConcatenate("Now: ",...
[Deleted]
Hi Everyone, Does nayone know / understand the difference between ERR_INVALID_PRICE (129) and ERR_INVALID_PRICE_PARAM (4105)? I got the second one (4107) as a result of using OrderSend() to submit an OP_BUYSTOP order. Thanks, dennisne
[Deleted]
Hello People, we are working on an automated trading system like the most in here i would say ;) The following is crazy.. We have a code structure, which should order a "buy", then do some things, an if some events are happening, it should execute a function which include the ordersend function. e.g...
sir how to use atomatice trading
[Deleted]
Hi all. I need decrease lots after (every) loss to 0.1 lots. And after (every) win increase lots to 1.0 lots. How do it? Ty.
int start(){//----int action = 0;double loty = 1/100;int course = Bid ;int lastOpenTime = 0, Ticket = 0 ;double point = MarketInfo(Symbol(),MODE_POINT);double diference = 50*point;bool result;double price, Oprice;int cmd, error;lem //1------------------------------------------------for ( int i =...
  EA to read email  (7)
Is it possible to have an EA that will read emails? I have read that someone isdoing this but don't know how ? HELP... thanks in advance.. d
Hi, I am using 2 instances of MT4: one for a real account, and the other for a demo account (trials and such). Of course, the 2 instances reside in 2 different folders in \program files (x86). [win 7 64] The "real" MT4 is build 406, updated at install time. The "demo" MT4 is build 226, update failed...
[Deleted]
//|-----------Global Variableint Magic;int init(){string chartTF=Period();switch (chartTF){                case PERIOD_M1:         Magic=8; break;                case PERIOD_M5:         Magic=9; break;                case PERIOD_M15:        Magic=1; break;                case PERIOD_M30...
[Deleted]
//Code to Delete complete OCO       if( (OCOset == true)&&(OrdersTotal() > 0) )       {         OrderSelect(OTicket1, SELECT_BY_TICKET);                   if(OrderCloseTime() == 0 && OrderType() == OP_BUY)          {           bool Deleted = OrderDelete(OTicket1, Green...
[Deleted]
Hello I'm looking for a EA programer. I'll send details after we discussed all terms of our cooperation. Thank you very much in advance to all who respond with serious interest.
hi, Anyone knows if this is possible: to import an dll function which uses as argument a: variable-argument lists e.g. http://www.cplusplus.com/reference/clibrary/cstdio/vprintf/ int vprintf ( const char * format, va_list arg );if so how would one do it?ThanksMJ
Hi, I'm looking for a non-repainting version of the zig zag indicator (it doesn't draw the last leg: that's why it does not "repaint") calculated only on the close, not the high and low (like the standard version).
Hi all ! Please Help or advice ! Currently i'm using the code at above to open/close a trade and it working fine. But problem happen when i trade more than one pair currency ! (Same EA loaded into different pair currency chart). Thanks in advance.
[Deleted]
HI traders, I have quite a good EA, but I think it would work even better when I add a filter to it. Firstly, I will describe, how it works now: It is based on MA - when a candle crosses MA, it opens a trade by the beginning of the next candle (in the same direction as it crosse the candle). The...
I found a website that searches this website with great detail. It does have ads but I just ignore them. http://glm.net/forex Thanks kalkaska
I have a problem in my EA, strategy tester reports invalid index buffer number error repeatedly throughout the test so I created a simple test EA/Indicator combination to try and find the cause but I still get the same results in tester, I cant see what is wrong with these test programs can anyone...
[Deleted]
I wanted a code to find the previous/nearest highest price bar such that the high price of the next bar and the high price of the previous bar is less than this bar. Any ideas????
int start(){//----int action = 0;double loty = 1/100;int course = Bid;int lastOpenTime = 0, needleTicket = 0 ;double point = Point;double diference = 50*point;bool result;double price, Oprice;int cmd, error;for ( int i =   OrdersTotal () - 1   ; i >= 0 ; i -- ) {if (OrderSelect ( i, SELECT_BY_POS,...
  OrderSend Issue  (1)
This seems way to simple but I'm missing something and its only changed recently This used to work a couple of weeks ago: OrderSend(Symbol(),OP_BUY,1,Ask,5,Ask-25*Point,Ask+35*Point); Now it doesnt but if I change it to 0 stoploss and 0 take profit it does work: OrderSend(Symbol(),OP_BUY,1...
Hi, I am trying to code the RelativeSlope indi. The Rslp buffer always returns a "zero"when it is just a 3 periode EMA of the PLOT1 buffer. I would appreciate some advice about what is causing this issue. Thanks in advance #property  indicator_separate_window#property  indicator_buffers...
hi guys ...   Can someone modify this indicator to  appear for all the last days( not just the current day ) to make a BackTest for it
Hello kind people ! ok, still early days that i have been dabbling with OCO, but is the concept of constantly running an OCO EA on MT4, straddling price and rebooking immediately after again automatically not possible ? so, if EURUSD is currently at 1.40, OCO is placed either side at 6 pips for
-> You can see I downloaded the historical data used to test my EA .However, I found where the data are broken. Direct data not find them 2011.6.10-2011.9.14, I repeated several times to download the results of operations, but no difference. How should I do? Can someone help me?
[Deleted]
  OCO confusion  (11   1 2)
I am collecting a high and low for a previous period and I want to place an OCO using the high as the pending "buy" price and the low as the pending "sell" price. This works perfectly fine on my laptop using it on 5 different instruments. It works perfectly and executes...