MQL4 and MetaTrader 4 - page 1213

Hi guys, I'm currently exporting backtest data from MT4 via this very simple code I made: int fileHandle; int init() { fileHandle = FileOpen("MT4dump.txt",FILE_CSV|FILE_WRITE, ';'); if(fileHandle < 0){ Alert("Error ", GetLastError()); } return(0); } int deinit() {...
//+------------------------------------------------------------------+//|                                                   Invincible.mq4 |//|                                                            N.Huy...
Hello, currently im stuck at my EA code. Almost everything works fine, but i also want it to display how many trades are already closed. Right now is use the following piece of code. But the "Closed orders: " always shows 0, while i have enough closed trades with the same MagicNumber. What am i...
Someone here know something new about MQL5? When will start some roll out from brokers? Already some brokers have live feed (not Demo Account)? Also in mql5.com was not finding some answer for this ....
[Deleted]
plz tell me can i close an order for a paire that's not in the chart how is the EA attached?
  Inside Bar EA  (5)
Anybody know, where I can find a script for an Inside Bar EA? Thanks
Hi, I would like to simulate my trading account as an indicator, is it possible?
Hi im new to this forum, and also quite new to MQL4. Im currently trying to modify an EA. Im attaching 4 EAs to an MT4 platform on 4 different currency pairs, and each EA trades one currency pair. However, they are opening so many simultaneous trades for the same currency pair! Can anyone tell me...
well... if there any way to disable ea with a command on some donctition exemple: any help would be much appreciated :) if AccountEquity() >= x   {      TheCommandIseek();  ///Stop Ea or either turn live trading to off would do (I would first go for disabling ea)    }
[Deleted]
hola. plz i want that you help to know the different states of an expert. when i attache my E.A. to a chart it appears to me face different from each other when it is normal (sad face). can you help me to know what is my prbolem?
  Who can help?  (1)
Searching for how to automate the MAMA indicator. A EA with MAMA. Thanks
hi all ; how can i write the following idea :- 1 - i have 100 double variable with names x1 -x2 - x3 ........... x100 2 - i want to subtract x1 -x2 then x1 - x3 then x1 - x4 ........ till x1-x100 3- second loop x2-x3,x2-x4,x2-x5....... x2-x100 4- x3-x4,x3-x5,x3-x6............x3-x100 98 - x95-x96...
This drives me crazy: //---- input parameters extern datetime theDate=0; int init() { //---- indicators theDate = TimeCurrent(); When I drag and drop indicator it shows 1970.01.01 00:00 mql4 is illogical :(
[Deleted]
How do I make it such that only one order can be made in one particular time frame? This rule should be enforced even when an order made in the same time frame is closed.
[Deleted]
Hi for all, would you check the attach file( to get the open position price) and make to me what i mentioned in below red line . That is not a real indicator. it's just a script that prints a price. You cannot call scripts as custom indicators. I understand what you try to do but is more complex...
[Deleted]
I don't want to waste too much time on sorting the tickets by their entry dates, so, can anyone provide a quick fix? p.s. some have suggested that the latest position == OrdersTotal() -1, is it true?
hi........ any one can help me in this........ i need an indicator that show each candlestick bar as rectangle..from high to low just want the name of that indicator and i will google for it hope for some help
Traders & developers -- We have developed a successful trading EA which is running live on a large account with success. Our plan is to NOT release this EA, but we are looking at providing managed accounts on our own network facilities and possibly also an automated signaling service along the lines...
[Deleted]
I've just written an EA based on OPEN, HIGH, LOW. I've uploaded it to the code base kindly check it, recommend if any thing can be added(There are lot of things). And modifications to the code... Thank you Regards, Rohit
Please can someone help me on how to make the password typed by a user hidden (or substituted with asterisk characters). The code fragment is shown below: extern string Username; extern string Password; I have attached a capture of possible output I require. Thanks.
[Deleted]
Hi Pros, Is there any way to run several EAs on one chart? I have no idea on it. Thanks and Happy new year!
Why do: int bars = iBarShift( Symbol (), 0 ,iTime( Symbol (), PERIOD_MN1 , 24 )); AND int bars = iBarShift( Symbol (), 0 ,iTime( Symbol (), PERIOD_MN1 , 3 )); BOTH return bars = 1000??? (On Daily chart in tester) If i change period to PERIOD_W1 the return is still 1000. I have tried to execute it on
here is the problem, I wanted my positions to stack as they get profits and as well do a "martingale" I know this is not martingale because this is not doubling the lots on wrong trades but here is what it is supposed to do. - Open an order in both sides buy/sell for the currency with a take profit...
Follow up on previous post Pls read the previous post “Risk Reward 1:5″ first before reading this. In this post i would like to touch on a very important topic. As seen in the chart above. Forex trading pair: Gbp Jpy went down even further from our target profit area. Does it matter to us to see it...
Software products from Piligrimm – DAO _______________________________________ In this theme I wish to begin presentation of programs developed by me for trading. Unfortunately, I do not know English language, therefore is compelled to use the electronic translator, and its translation is not always...
Hi, This function is sporadicaly returning OrderModify Error 1. Any ideas? I'd be most thankful! void ManageOrders(){   double open, stop;      if (OrdersTotal() != 0)   {      for (int x=OrdersTotal()-1; x>=0; x--)      {         OrderSelect(x,SELECT_BY_POS,MODE_TRADES);                  if...
[Deleted]
Is free forex trading education is available on internet.Does forextradingevo.com is best forex education website? Is there any other website who is given free forex education? forextradingevo.com is providing free online forex certification.If forex trading education is free why you go...
[Deleted]
Hi Everybody, Wishing you a Happy New Year. Actually I am New to MetaTrader 4 Programing. And also I don't have anyexperience in Programing. I just trying to learn from the basics. WhenI tried to make a EA, I failed to calculate the "Average". This isbecause of, as i told you before, I am new to...
I working a stochastic divergence with automatic divergence line, and i did it ....when i start open in 1 hour the line is perfect but if i change to another period the line from 1 hour is still exist and mix with 4 hour line . did someone can help me for solf this problem ? Thankyou
[Deleted]
please i need help here. I am a new MQ4 student. i made this EA SAMPLE, Here I use 2 indicator : PARABOLIC SARS (0.01, 0.1) and HISTOGRAM (period 10) please check and correct it for me...