MQL4 and MetaTrader 4 - page 1177

To post a new topic, please log in or register
Hi, After my offer to help peoplewith their EA's, I've had loads of requests for help that I'd like to get on with. The MQL5 video clearly shows some MASSIVE improvements over MQL4 that I would like to use. I'd like a more robust environemnt for my EA code and more "black-box" style code with...
Hi All, I am trying to colorize background band between Envelope lines. The code I've written could not create the required effect. If you could kindly help, I'll be truly appreciated. JP int start() { int limit; if(Bars <= MA_Period) return(0); ExtCountedBars = IndicatorCounted(); if...
Hello All. i want to sell entry new candlies for sisgnal bars ?
Good day may, who knows how to make the indicator. like a normal MAwith a shift but when it ends are equal footing with one another humanwho can advise.
  Symbol Properties (12   1 2)
How can I change the spread size of the symbol properties window? Please help
I've read the articles on how the results in the Strategy Tester are derived, but my question is what they really mean when picking a good EA. In other words, a great profit doesn't mean much if the drawdown wipes out the account before the profit is realized. While I know that this is somewhat...
Hello sir/madam,how are you today! We are the professional supplier which offering mobile phone OEM Housing,LCD,USB Data cables,Keypad,Flex cable,Battery,Antenna,Speaker,Microphone,Case,Bluetooth USB Adapter,Ropes,Repair tools and so on.Our products main export to South/North America,Eastern/Western...
Is there any way to 'group' orders to later reference them such as ticket IDs? Can multiple orders be opened at once? (not at the exact same moment of course, 1 after another) for example, how to simply open a hedged order on EUR/USD long and short at the same time, as soon as the EA loads?
Hi, I'm finishing my first EA based on MA cross (yes, one more...), 0 error, 0 alert, it works but it opens all the positions it can till bankruptcy on the first signal I want to be sure of the line to add to limit the action - at the first tick of new bar - at on one open position short or long...
  Paid services (4)
I need some one who can answers technical questions about MT4. It is hard to get an answer from the forum. Is there any one can has sound knowledge of MT4 and would like to be paid for sharing their knowledge. Please let me know. Thanks,
Please i have an ea that i am still working on,initially it was placing trades,but it stopped working when i opened another demo account with the same broker on a different server, and installed it there so that i could try it on a different parameter, i was running them simultaneously, i compiled...
Hello everyone! Just a little question: How can I have the name of the chart in an Alert? Thanks
when a code runs the journal continues to log even after end of test run, please teach me how to stop it after end of exection, thanks.
Hi there, I need to make a change on a simple expert advisor that is based on 2 slope direction lines. This lines, changes to blue when on uptrend and red when on downtrend. The expert advisor gets a global variable=1 when both uptrend (2 slope=blue) and a global variable=2 when both on downtrend (2...
How come I cannot send 2 orders at the same time: int start() { //---- OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green); OrderSend(Symbol(),OP_SELL,1,Bid,3,Ask-25*Point,Ask+25*Point,"My order #3",1622,0,Green); //---- return(0); } Is...
Why, when I run the strategy tester several times, do the results differ greatly? I'm not changing anything in the EA, or the tester settings. I'm using the "every tick" model on a M1 period, for the GBPUSD. Thanks in advance. Richard
Hello, please can any one help me to modifiy my expert advisor that is attached. this one place trade and closes too. but sometimes it refuse to place trade even when candlestick has gone over 50 pips. so i want it modified as thus; the ema shuold be changed to 6 and 12 it should place trade for...
I'm having a problem with digits and was wondering if anyone could help. I'm using the MACD indicator, which provides at least 5 digits (if I convert it to a string I get lots of digits). The problem is, if I do a "greater than" comparison between two values it only seems to use the first 4 digits....
Get MetaTrader progam directory with MQL4+WIN-API is possible?
I've also posted this on another forum: I'm looking for a simple indicator which I'd be happy to pay for if noone can do it for free. It may or may not be possible to code. It could be two indicators in 1 or 2 separate indicators, although I'd prefer the former which I think should be possible. So,...
Hello, I use 2 EMA lines to signal trading. I wish to have an alarm when the 2 lines cross. Is this possible? Thanks, Fred
Hello, I use Moving Average Exponential lines on the chart (EMA Lines). One line is set at 5 and the second line is set at 13. I would like to know if there is a way to have an alarm sound when the lines cross. Thanks for the help, Fred
I'd like to have a detailed report generated every 12 hours or so automatically from my EA, and saved with a different name each time:  Report1, Report2, Report3... Possible??
Hello everyone, I want to tidy up my EAs and store my functions in libraries. Example: EA contains this: extern int loglevel = 1; int start() { [...] Log(1, "Important message, like errors and stuff"); [...] Log(0, "Warnings, Infos etc."); [...] return(0); } The library contains the log-Function...
  Never Lost? (1)
No wonder this robot never lost a trade. To lose a trade, it must first place a trade. I opened a $500 account, and guess what happened. Nothing.
Hello everyone, I'm trying a demo of metatrader, I need to create a script that automatically close the positions at a certain hour at a market. Someone can help me? (Forgive my English I'm Italian!) Thanks. Ettore.
Hi! I wrote an EA that works fine until I added a simple line of code with a ObjectSetText function. A few seconds after compiling it, the terminl crashes. If I remove that line of code, everything works fine. Is there any known issue concerning this?
  help please (2)
Hello, I am hoping to find some help on this forum; I have been trading fx with average success for the last few months. In December I will be heading to Iraq and I will not have the time, so I hoping to use an automated program… but I have no idea how to write these programs. Is there any other...
Hello, please can any one help me to modifiy my expert advisor that is attached. this one place trade and closes too. but sometimes it refuse to place trade even when candlestick has gone over 50 pips. so i want it modified as thus; the ema shuold be changed to 15 and 40 it should place trade for...