MQL4 and MetaTrader 4 - page 726

  delete?  (3)
a
[Deleted]
Hi guys, I have this code: #property copyright "Copyright 2014, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strict#import "libutm2.ex4"  int InitLibrary();  int My2(int, int);  int Calc_Count2(int, int);#import#import "test.ex4"   int...
Hi I am trying to turn part of an indicator into an EA. At the moment i just want to see the the basic logic working before i add to it, but i can't seem to get the switch correct to reset the indicator. I just want to see the date/time printed for each bullish pin or bearish pin. I was trying to
What are you using for sending orders reliably ? Is there newer version of this lib or similar robust libs?
//+------------------------------------------------------------------+//|                                                      两个KD都背离.mq4 |//|                        Copyright 2014, MetaQuotes Software Corp. |//|                                              https://www.mql5.com...
Hi, I developed very profitable EAs (50 EAs plus or less) in ten years of trading and 7 years of programming. Does anybody knows how to insert a DLL extension with an EA because as I am am a technical and financial analyst but not a geek unfortunately. If somebody can show me a real example of it I...
i have an EA to handle orders automatically from weekday to weekend, and then from weekend to weekday.for example: Last Friday: buy limit at 1.39000  Last Friday: Before the market is closed modify open price to 1.40000 far safe reason This Monday: when ever and where ever run the EA again,it should...
[Deleted]
Hello, I am trying to build an simple experts advisors: Change default chart from EURUSD,H1 to XAUUSD,H4.At 6:00 everyday, auto add new order at XAUUSD, volume 2.I think it's very simple but I don't know how to do. I have already studied and understood all of these: MQL4 Language for Newbies....
I'm wanting to understand how to change seconds into date and time? Short_Trade_Send = OrderSend(Symbol(),OP_SELL,LotSize_Sell,Bid,3,Short_Stop_Price,stp1,NULL,MagicNumber,0,Green);if( Short_Trade_Send > 0 )TradeOpenTime = GlobalVariableSet(" Open Time ", OrderOpenTime()); double Get_Open_Time =...
Hi everybody.  I have a problem or I think that I have in my mt4. I have an account in MBT and I am using MT4 Build 670. Look at the attached image bellow.   All information are showed and calculated as the spread is 17pips but really is the 1.7pips because the last digit is a 1/10th... But in true...
[Deleted]
Dear all!! In mi code (below) I'm only trying to read data from any order, and not delete orders or open anothers, but every time it show the "INVALID PARAMETER " error, (code 3). Why?? Code: double FindPrice; int Type_Find1, Type_Find2, Ticket_Founded; void start() { Type_Find1=OP_SELL;
[Deleted]
I'm trying to test my EA in the strategy tester, but when I set the EventSetTimer I get an error - 4051 (ERR_INVALID_FUNCTION_PARAMVALUE). When I put the same EA on a chart (instead of the strategy tester) , I don't get this error. I created a new EA with only a simple print in the OnTimer() and I...
[Deleted]
  There are 2 candles on 07:00 so my charts are not right. Candles, OHLC, everything is wrong with my charts.  This problem is just about phone. I saw same issue with different servers on my Galaxy Note 2  Build:636 (30 May 2014) 
Hello everyone. Just a heads up! If you have multiple tabs opened in MetaEditor (build 966), and you have done edits to all of the tabs but not yet saved or compiled, if you click compile on one particular tab, it will save and compile all tabs. I repeat, all tabs will be compiled. I have reported...
I am trying to read a horizontal line value dropped on an indicator sub window, but having no luck. Take any indicator, drop a horizontal line and change its name to "down" (right click, properties). I then have this code in the indicator: Do object functions work in indicator sub windows as...
Hi, bare with me if this is quite obvious but I am wondering what the correct way of calling an external dll function is. According to its documentation the dll function is expecting a parameter of the type: "pointer to a null-terminated string" So how should I call this function from mql? // first...
[Deleted]
Hi all, I'm currently new to coding and automated trading . I was curious to know, how would I incorporate an rss feed into MT4 and create a trading algo to trade based on the information from the rss feed? Thanks, Mitchell
Dir Sir,  I found the "Access violation read to 0x09A45000" for the ChartSymbol(), ChartPeriod() after issuing the "PostMessageW(hwnd,WM_COMMAND,CHART_CMD_UPDATE_DATA,0);" in release 670. Is there any way to fix? Great Thanks,
Hallo, I am using A binnary tree to determine the lotsize depending on the profit of the last three orders. Is it possable that the function OrdersHistoryTotal() doenst work while backtesting?           OrderSelect(OrdersHistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY);           double P5 =...
[Deleted]
SE VOCÊ SABE COMO CONSTRUIR UM E.A. E MORA NO ESTADO DE S,PAULO ENTRE EM CONTATO mperinazzo@gmail.com . MARCOS
When backtesting my EA I am getting the error "incorrect start position 0 for arraysort function", but there's no info on that error.  When I do GetLastError()  I get error 4051 but I don't think it's related (I had that as my last error, but fixed it so think it's residual), but then again, I dont...
[Deleted]
  Hello from India  (2)
Hello Fellow Trader,   My name is Azhar and I`m from India. I`m here to learn and share my knowledge on Forex Trading.   Happy Trading
Good morning to all Wear long time developing strategies renko graphics. I would like to find partners who want to share ideas about renko graphics to create automated systems. Would share development costs. It's an idea, someone wants to join. Kind regards. Hermo.
[Deleted]
Can anyone give me suggestions on how to fix an EA that works in strategy tester but only intermittently when attached to a live chart.  Autotrading is enabled and other EA's in the same account continue to make trades.  Strategy tester makes trades using the same price data and there are no errors...
Hi:   Once I place a pending order, what's the way to know that the particular pending order is just triggered?    Using the order counter is a possible way, but if there are many pending orders, I may not be able to locate the particular pending order sent by specific strategy.   Is there a way to...
Hello, I was wondering if it is possible to detect a sudden move in price(lets say 5 pips) in a less than 1second time difference between the previous price. An Example would be: At 4:10.12 the price was 1.6754 and at 4:10.125 the price is now 1.6759. If i am unclear please let me know. Thanks
[Deleted]
How the title says, i am trying to disable my ea when trades not opened by it are already running, i am using the following code: OrderSelect(0,0); {if (OrderMagicNumber()!=Magic) othersplaying=1; else othersplaying=0;}  if (othersplaying==0) {OrderSend(Symbol(),..... etc etc... However, with the...
Dear Guys I draw a button but when i click button it not draw like button. mean: when i click button it going down then again click it going up. but it going to up auto, how like button work:   After click: button going to show down. but it should be up auto.     is there any code that button work...
Need help please - I see various charts where anchor points are being used when changing TimeFrames. These are supposedly on the Bottom left of chart & /or Top Right. Can anyone tell me how to make these visable please - I have tried locating them but no luck. Cheers 
if shutdown the computer and when i open it ea again sending order . how can i stop it forex