MQL4 and MetaTrader 4 - page 1036

Hello, I want to get values from offline chart: (Open[1] - Close[1]) and (Open[2] - Close[2]) from Expert Advisor attached to 1 Minute chart. I think the best will be to make one expert attached to offline chart that set values, and then EA attached to 1 minute chart get these values. How to code...
Hello, I need to get values for Open[1], Open[2], Close[1] and Close[2] from Offline chart, BUT my Expert Advisor is attached to 1 Minute chart. How to get it?
  Broker is busy  (4)
This week suddenly my EA, sometimes and sometimes I just put the TP and I get that Broker is busy, until yesterday I never had this happen. In the demo accounts I have no such problems, but in the real s. Anyone know I can do? They try to fuck the EA?, Fuck them you can make a profit. TKN
Hi at all. I posted this good EA because the entry order is perfect...but the exit order and automatic contrary order not function perfect..your have any ideas ? where is the error in the code ? Thanks and Regards.
I tested expet advisor on meta trader EA tester,I noticed that The EA was not executed,, I checked the jornal what i saw is this...(2009.07.22 03:28:22 TestGenerator: unmatched data error (low value 1.4192 at 2009.07.22 13:15 is not reached from the least timeframe, low price 1.4193 mismatches).I...
[Deleted]
I am testing my Slave EA on IBFX Australia ( US Currency ) and have the following problem: For Buy Trade I am using the following command: if (OrdersTotal()==0&&ask<=openprice){ticket=OrderSend(pair,OP_BUY,LOT1,newask,30*point,0,0,"HI",0,0,Green);} Please note that the value of the open price is...
  can not compile  (20   1 2)
Hi guys, a bit of WHReoder program was suggested to me,I cant get it to compile. I am trying to get the last profit taken (order price level ) to use for continuation of trend for intri level. int GetHistoryOrderByCloseTime(int& tickets[], int dsc=1){  #define ASCENDING -1    /* https://forum.mql4...
Hi, Working on TF 5M I want to know a little of whats going on higher TF, like 1H and 1D. Eg. I want to know the day's high, and previous day's high.. simple:          int ToDaysHighestPrice = iHigh(NULL, PERIOD_D1, 0);         int YesterDaysHighestPrice = iHigh(NULL, PERIOD_D1, 1); But how can I...
Hi, I am trying to find a way how to automatically export history and real-time data so that I can build in real time the same chart as is in MT4 - just do not like it. For example: 1, M1 history 2, the last record is autoupdating with every change in quote (actual close, can change low or high) 3,...
When we look at correlated pairs (e.g. EURUSD and GBPUSD) that have been moving in sync for some time, a moment of misalignment is bound to occur. If the Poundback suddenly turns down, which is synchronously flying with the Euro, this could be a signal to sell the Euro. When one observes this
New article Who Is Who in MQL5.community? is published: The MQL5.com website remembers all of you quite well! How many of your threads are epic, how popular your articles are and how often your programs in the Code Base are downloaded – this is only a small part of what is remembered at MQL5.com....
I have read avout the problems of CompareDoubles. But would it be safe (and faster) NOT to use the coorect way: if( NoramlizeDouble(doubleValue,8)<0.0) ... if I only check the sign: if (doubleValue < 0.0 ) Alert ( "negative" ); else Alert ( "not negative" ); Thanks in advance, Carl
[Deleted]
hi, i recently downloaded metatrader4, for the opening the account bit i filled in all my personal details then clicked next, then clicked next again, then it says wait and the load bar loads, the load bar loads up and it is meant to display the username and password and investor password but it...
[Deleted]
Hi, I keep getting ordermodify errors 1 and 130 when executing this code: Please note that the "Lot" variable is predefined, and the call to the LOT() function is not being used right now. //Zero Stop      bool StopMoved;      for(int z = 0;z<=OrdersTotal();z++){   OrderSelect(z,SELECT_BY_POS...
[Deleted]
Hi there, I would like to add a new swap group on MT4 admin, however, I don't know to do that easily without doubling the symbols... I mean, we can change swaps on symbols, but without adding a new symbol, we couldn't add a new swap on the same symbol... I don't want to see 2 eurusd pair on the
Hi gurus I'm trying to design code that would limit the number of trades per (time frame) I am confident with my knowledge of making time codes thanks to the gurus in the forums etc. I'm considering making some code and OrdersHistoryTotal to accomplish this. Am I headed in the right direction ?...
Hi there, second time this happens ? Trading halted ? I can't place orders ? Someone any idea why ?
Hi All, I have been trying to get my EA to place an order with the same previous stop loss size (it is based on a candle low/high) for hours now with no luck. Basically, I would have to store and use the last stop loss value and call it for the order below. Please note the order below is seperate...
Yes Im new that being said Im new to codeing as a rule I trade naked however the pivot points calculater i use has tags I so like its accuracy for my setups problem is the tags on the levels are interupting my vision i wish to have the lines not the tags that read h5 lb target,h4 long breakout
[Deleted]
I am trying to use the method of opening lots based of the percentage of equity I want to risk. Print("Calculating Lotsize");            Balance = AccountEquity();            StopLoss = multiplier*atr24;            Print("StopLoss"+ StopLoss);                     //LotSize =...
[Deleted]
Can you help? I am learning MQL4 and working through the MQL4 tutorials. I have been working on the ROC EA example and have made some tweaks to the code so all it takes for a trade to be made - either opening or closing - is the crossing of one specialised MA(Moving Average) over another. The MA's...
[Deleted]
I WANT TO BE AN IB OF FOREX,CAN ANY ONE PLZ GUIDE ME WHICH COMPANY IS GENUINE AND GIVING LOW SPREAD AND HVE NO SCAM TILL PLZZZ
Normally a bitwise shift operation of 32 bits gives 0x00000000, all bits being shifted out of the integer. I've noticed the code n = n>>32; m = m<<32; lefts n and m variables unchanged though they should be assigned 0x00000000 ! However n = n>>31>>1; m = m<<16<<16; z = z<<31<<31; does the job and...
New article Mechanical Trading System "Chuvashov's Fork" has been published: This article draws your attention to the brief review of the method and program code of the mechanical trading system based on the technique proposed by Stanislav Chuvashov. The market analysis considered in the article has...
Hello traders, I want to make my EA open a position only at the hour bar close price, after the condition has been met. Not immediately the next tick after the condition is met. I have tried using iClose(EURUSD, PERIOD_H1, 0) in place of Bid and Ask in OrderSend but it still opens the position in...
[Deleted]
Hello all, I am having and issue sending rate alerts to my email. I have the SMTP information and have entered my details and in the journal I am getting different error messages. I am getting - a "not enough space error in the journal". Mail:login to smtp.mail.yahoo.com failed If anyone knows...
[Deleted]
HEY GUYS M OPEN AN ACOUNT OF 10000$ BT I DNT HVE 80-90% ACCURACY INDICATOR CAN U PLZZ GUIDE WHICH INDICATOR IS BEST TO USE
[Deleted]
PLZ ANY KNW THAT PLZ GVE ME THANKS...
Hi All,, I have a strange situation as follow: MA1_DN=NormalizeDouble(MA1-ATR1,4); .................. if (OrderStopLoss()!=MA1_DN) { Print("MA1_DN=",MA1_DN," OrderStopLoss=",OrderStopLoss()); OrderModify(OrderTicket(),OrderOpenPrice(),MA1_DN,0,0,Red); } It returns : 15:25:40 2005.03.31 01:00...
After attacking the graphic indicator TrendLine were formed between the black lines and gray candles. It does not happen on all TF. they are formed on the market. I know what they mean? Thanks and sorry for the trivial request