Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1111

To post a new topic, please log in or register
duoble yon=icustom(...." TL_by_Demark_v6.mq4"....); if yon>0 Alert("SELL"); if yon<0 Alert("buy");
I need to be able to check if an array is set, or if it is empty. Doesn't really matter if it returns a boolean or errorcode or whatever. Anyone who knows a command to do this? Or have another solution to go around this problem? All answers are apprecicated. Best Regards, Johan
hello everyone, if I have been draw a pitchfork and I want to get the value for the extend mid trend with a specified point to start draw another trend or 2nd pitchfork, how could I code that? for example: this point will be at 00:00 time as shown in the pic. i tried ObjectGet( "Pitchfork",...
Hi @ all, i spent a lot of time in programming an EA, which is lukily working very well most of time. But during trying to make it better i found the following problem for e.g.: The EA has 3 Open Buy Orders with MagicNumber 1 then it is opening an position in opposite direction with MN 2 Next it...
New article What about Hedging Daily? is published: A trading strategy using hedging system created for trading the intra-day style of GBPJPY / EURJPY and for daily trading. Author: chayutra sriboonruang
Hi If I want to draw a horizontal line from say bar[1] to bar[-100] previous bar forward 101 bars what is the best way to specifiy the forward time in the call to createobject? Thanks Paul
Can sombody help with this EA please. this has done according to demark trend line theory.it don't place any trades.and i can't even back test it. looking for a helping hand fix the error. thank you in advance
HI I have an indicator that I want to convert it to an EA pls email me your email address, my email at kwng111@myway.com so I can email you the indicator source code. Thank you in advance. K.W.Ng
Hi all senior member.... I'm realy new in MQ4 programming but I have php background. I like to learn more about MQ4 coding. There are some question in my head about MQ4 coding for creating an EA: 1. if I use D1 TF, How can I detect the closing/opening price ? 2. How can I order the BUY/SELL STOP...
What I want to do is have an indicator update every X seconds and not wait for ticks at all. I have an indicator that writes to memory every time the price changes. I want to have another indicator read memory every X seconds and display the value. while(true){ elapsed = TimeLocal() - tTime ; if(...
i have the following code on the main part of an EA:    double pADX = iADX(NULL, 0, 5, MODE_CLOSE, MODE_MAIN, -1);   double ADX = iADX(NULL, 0, 5, MODE_CLOSE, MODE_MAIN, 0);      double pPDI = iADX(NULL, 0, 5, MODE_CLOSE, MODE_PLUSDI, -1);   double PDI = iADX(NULL, 0, 5, MODE_CLOSE, MODE_PLUSDI,...
hi i am newbie trying to understand ins and outs of this and any help will be appreciated!! my current indicator has the following code for generating alerts, butthis alert lasts for only one beep, is there any way i can make it tobeep for 30 or 60 sec or atleast bit longer than 1 beep if (setalert...
Our company is looking to purchase resell rights to an EA (either pre-existing or a collaberative design) Please respond if you are interested
After compiling an EA, is there a way have the EA run the start() function without having to wait for the next tick?
I have come across a new number based system which I believe could be extremely interesting in solving price time dynamics. I require the help of a math/programmer to develop this further. If anyone is interested then leave your contact details for an intial discussion.
  ADX Smoothed (1)
Dear Coders, unfortunately i`m not be proficient in MetaTrader programming language, so i need a little your help, please. I am using this ADX Smoothed coded by ROSH and I would like to add a pop up alert when the lines cross ( lines DarkBlue and FireBrick ) and the DarkGreen's line above 25....
Hello Everyone. Can anyone tell me how to start with real login? I want to start with my real login? i have an account in iforex.com will my account will work in MetaTrader4. if not then which website will work and how it will work? Please answer me as soon as possible. Thanks COmmunity in advance
I am working on an EA that automatically opens a buy when a sell is closed out and vice versa.  So, no need for an object to be placed on a chart to show when a trade is closed.  The order's are closed via stop order, and I don't see any place to add a NULL to the OrderSend function to stop this....
It happens when my EA loads, the log shows: 10:21:18 MYEA EURUSD,H1: loaded successfully 10:23:43 TestGenerator: unmatched data error (volume limit 1138 at 2008.08.08 14:00 exceeded) 10:23:43 TestGenerator: unmatched data error (volume limit 1138 at 2008.08.08 14:00 exceeded) 10:23:43 TestGenerator:...
I have the daily range pip feature installed on my meta trader. How is this calulated? By each individual pip? Or by movement from open to close from a fixed point? Thanks, Fred
Is it possible to add percentage price movement in crosshair tools? Or is there any other tools to measure price movement in percentage?
Hi you all, My EA works best when I increment the lots by 0.1 after each order. I want to send it to the Championship, so I came up with a formula to stop the lots at 5. I am new to Mql4, there may be a better way, but this is all I can think off. The following code works fine with the strategy...
Hi All, Are there instance variables in EA besides external variables, or can I reset an external variable from EA code? After declaring and initializing an external variable, how can i reset the value without clicking on smiley face and resetting it manually, how can i do it inside the code?...
Hi, i have load the overlaychart from mql4 site for indication the correlation, but i want a indicator to building a spread from two different pairs or securitys. Can here anybody help me? Thanks
Hi, Is it possible to "catch up" my EA code on the server-side? Thanks, GG
Hi, Who can help me out of dilemma: restart? try over? Where" is the metatrader helpdesk: email, telephone? Thanks in advance Bern
I realize there are quite a few posts regarding importing dll's and error 126, but I am hoping someone has some input on this. I have created a DLL and am having an error 126 problem. I am calling some functions in my DLL from another DLL. I have made sure all the dependencies are in the folder...
Hi all, I am looking into writing an EA/Script that needs to open charts for different symbols and close them when they are not needed anymore. Is this function available in MQL4 ? I don't seam to be able to find a call in the standard library that does this. Is there a way ? Thank you for your...
Hello, Can anyone provide me list of brokers offering swap free trading. Please let me know if you know. Thanks,
Hello, I'm testing my first simple EA. It opens an order with a stop loss some pips above the high. I would expect if in the next bar the stoploss level is exceeded it would close the order. Much like it closes the order when a takeprofit target is reached. But the stop loss does not work like I...
1...110411051106110711081109111011111112111311141115111611171118...1245