MQL4 and MetaTrader 4 - page 1165

To post a new topic, please log in or register
Hi all, I have a question that is regardless SPREAD vs LOTS traded. I have an idea that will allow me to protect my orders and need to know if the spread is always the same independable of the lots traded... That is, if I trade 0,1 lots of EUR-USD on a broker with 2 pips spread, will this spread be...
  Base Code (6)
Hello, I opened a trading account with a brooker that supports MetaTrader 4. I have been trading for some years in stocks and I am converting my systems to MQL4. Is there a template for Authomatic Trading System and for Trading System tester? Basically, some common from where I should start when...
I tried writing a simple EA that buys whenever stochastics crosses up. The good news is that it buys at the correct time. The bad news is that it buys many, many times per bar. I attempted to limit this by counting the total orders. It then makes sure that no orders are currently open before...
Hello! In your opinion wich one is the best volatility indicator? Standard Deviation Average True Range Bolinger Bands Other? How do you use it to trade? Thanks!
Hi all, I have a requirement that will allow me to reduce the losses. But for that I will need a code for: SITUATION: I have an open BUY order, and a SELL STOP order (at a 50pips level for instance). This BUY order must trail after a specif number of profitable pips (lets say 20), and a trail of +1...
Looking for some guidance.. I was interested in backtesting the RoboMiner EA. Idownloaded the AUD /NZDdata in the History Center. Went thru all the steps for the strategytest. Clicked "Start" and all appeared to be testing fine. Once thetest ended, I clicked on the "Results" and "Graph" tab......
I need an automated program for entry of pre-calculated stops and limits for use in a hedge system. I'd just like to one-click orders (a lot of orders)...then have stops and limits automatically entered based on math I will provide. I'm relatively new to forex, but my hedge concept works...
my problem is the character's size in MetaEditor's help table's home page become too large to see !(refer to the picture above) my operator system is VISTA.what i have tried so far: 1.hold the "Ctr"l key and turn the scroll wheel up ( away from me).it is not work!(i mean it is also cann't zoo in)...
On the website of the Automated Trading Championship 2008,an article New Data on the 8th Week's Top Ten has been published. We continue publishing results of ATC 2008 Participants. This time we analyzed results of the eighth week's top ten Participants. Again we recalculated trading results as if...
Hello. I am a newbie. I was running 2 E.A.s at the same time. A trade was started automatically. How can I figure out which E.A. triggered the trade. Both E.A.s do the eur/usd. Thanks.
does someone have the answer? imagine your computer shut off in the middle of trade, while your were outstation some reasons are; 1. electricity breakdown or power failure 2. your computer detect viruses & need to restart again 3.else etc... kindly if someone who's close friend of superior of...
hello i need to help a programer i have a market profile indicator i want to edit this indicator : 1.add a option for number of drawing market profile candle(bars). 2.add a option for start Drawing time. Thank you
Hey there. I'm bit stuck en closing orders. I get en error "unknown ticket", but I've tried a lot of ways and got a lot of different errors. Can someone help? Thanks a lot. :) OrderSelect(OrdersHistoryTotal()-1, SELECT_BY_POS, MODE_HISTORY); if ((updown==1)&&(OrderType()==OP_SELL))...
  blue screen (3)
hi, why my screen (background) becomes blue? soudenly it becomes blue... that's quite unconfortable... please, how can i fix that? thanks,,, Ma
  MathAbs (1)
Can anyone tell me-or show me the use of the function MathAbs? I see it everywhere and Docs dont tell the story.
Hi everybody, I am a newbie in this platform and also to forex also. i want to know how to add sound while any of my active trade closed successfully (by taking profit)?? And also if closed by stop loss how to add  sound there???? Please let me know....... Thanx in advance to all.
Hi, I'm trying to calculate the margin while hedging. In the code below I made an atempt to calculate the correct margin. The function works fine if there are only trades open in one direction. But it's totally off when the EA has trades open in both directions. Any help would be highly...
hi, guys I have very very nice strategy it's called "sab7-sab7" it's very simple >>> It's based on the crossing of EMA's 1- If EMA (7) cross up EMA (15) and RSI value was more than 50 then you enter " buy" 2-If EMA (7) cross down EMA (15) and RSI value was less then 40 then you enter " sell"...
This grid builder indicator only accept values like 10, 20, 30. Don't accept 15, 25, 35. Can anyone fix it, please? https://www.mql5.com/en/code/7292 Thanks.
please can some one help me modify the trailing stop for this ea so that it TRAILS THE MARKET ONLY ONCE?
I would like to hire a MQL4 programmer to write an EA for me. Write me at skyaxe1@yahoo.com.
I'm looking for a programmer to code a simple EA for me to make small orders on my account, when not at the terminal. I have two simple systems that I'd like to write up and be able to adjust a little bit. Please email me if any of you are interested. Thanks, Kurt kjpix@mac.com
Hi there, I have a problem with the WindowBarsPerChart() function (see attached screenshot) that I hope someone can help me with. The screenshot shows a standard chart that I have scrolled all the way to the right so that the rightmost bar is bar 0. I run a simple script that prints the values of...
Hello, Is there a place someone could direct me to learn how to keep an indicator calculate in one timeframe no matter what time frame the chart is under. For example, i want to calculate MACD only for 15 min timeframe even though the chart is at the 1 hour time frame. I hope this makes sense....
Can I graph indicator lines in EA while it is running live or in strategy tester? Can't seem to do it unless I add indicator lines manually. Thanks.
I am trying to write code to obtain the state of a toolbar button of terminal.exe. It appears that because terminal.exe uses the MFC libraries for its controls/toolbars that I need to do something like this: int tbbutton[10]; ArrayInitialize(tbbutton, 0); SendMessageA(hwndToolbar,...
  Known Bugs (2)
Version 4.00, build 220 of the metaquotes platform clearly has a LEAK. If I run backtraces for extended lenghths of time the system will eventually fall over due to lack of memory. Watching terminal.exe in Task Manager reveals a consistent growth in RAM usage even when using an EA that does not...
I have questions regarding 2 specific code, Any help is greatly appreciated. 1: NormalizeDouble ---> is it possible for this command to return the value ZERO? 2. If I specify a external value and then change the value inside the script would the new value remain or would it reset to the external...
Hi all, I'm sitting here in the frosty Germany with a few friends and we're doing a little brainstorming about the most suitable way how to display current ASK and BID Quotes of a certain instrument at custom controls on a userform. We have created two buttons, where the one is intended to receive...
Can some one please help me, I have been battling with the code of my EA for some time now. I can not get it to close a trade if the orderclose criteria are met. I will attach my EA and the custom indicator it uses. Please if you find the problem let me know I would like to fix it myself and learn...