MQL4 and MetaTrader 4 - page 1019

To post a new topic, please log in or register
Hi i have a function that adds ordersprofits from orders that have been closed, its in a extern file. (#include) the problem is following: OrderProfit comes in a rounded number ie. without decimals. i have checked all variebles that is assigned to orderprofit, to be double. when i:...
  Complete MQL Newbie Manual (42   1 2 3 4 5)
Hey guys/gals, there seems to be a lot of discussion coming out of creating an article/manual for people completely new to mql and to programming as well. Let's use this thread to develop such a document. Everyone's input would be essential, newbies as well as gurus. ... Aim End Product: Complete...
hello, inspired from the idea of CROM in this thread (https://forum.mql4.com/33332) and my following inspection about the up's and down's of bars above and under the 20EMA line a wrote this simply indicator. i use it to mark a zone where no trading is allowed. mostly of time when my TrendyEA wants...
Helloooooooooooo !!!!!!!!!! People with more experience than me, I want to ask you if these ea´s based on price patterns ( without indicators ) could be a good system.. I know that it´s a daily system with a few signals but with a good Money Managment...... ( Tested in 20 years in 5/6 different...
Hi, I have been coding Inverse Fisher transform but it is still lacking some professional touch. It works if it is compiled "after" attaching to a chart. Re-opening the chart will not work either. I'd appreciate any help. thanks Leo #property copyright "Copyright Š 2010, MP" #property link...
Hi @ all, please i need help by my coding experience .... I have a very good script to buy or sell on ECN Brokers .... So far so good. I will improve it with a simple % MM . I have tested all things i known but i have no occur .... Please can somebody help me ? Attached is the script with my...
chart doesn't work. it always displays like below.and updating is never completed. what should I do? i'm using MetaQuotes-demo server. please help me.
Hi all, since trading is closed with my broker for the weekend, I have no way to test this reliably. I want to draw horizontal lines at the highest high and lowest low of the last five completed bars while the 6th bar is in progress. In other words, I want to draw the lines for data from times, say,...
I need to loop through the open orders and add up the pips to get a total. I have discovered 2 problems with my current code below, 1 - I failed to consider that the EA may be on a symbol that is 4 digit or 2 digit and it may be on a broker with the extra digit precision; 2 - it adds the values of...
Is it possible to mark past bars with and arrow, rather than current, to identify highs and lows, at the actual bar where they occured, for a specified number of past bars? example: //-------------------------------------------------------------------- // extremumprice.mq4 // The code should be...
Pls where could I download MT5 setup.exe?
Hi, I am a newbie. Can anyone help me with an alarm, I have two t3ma indicators on my chart. One t3ma with a value of 5 and the other t3ma with a value of 80. I am using a 15min chart. I would like an alarm that alerts me when both are crossing. If there is an alarm indicator already done could...
When I post an message to the Alert window, the top portion of the window is not used and can not be eliminated. Is there a way to resize the top vs. bottom portion of he Alert Window? Please see an example in the attachment. Thanks for any comments.
I have given my website to put a system like in the example that I want to do. Examples: "http://getanaliz.com/GetFxProData/sinyallistesi.php" for it "mq4" codes should. The logic of something like this; "MetaTrader" php code from the GET method with data from the server database and website coming...
Does anybody know where I could find the correlations between EUR/USD and gold,silver,oil....... or EUR/USD and some stocks? Thanks a lot
It's probably too simple for words, but I can't figure out how these code snippets work... SetIndexStyle(0,DRAW_HISTOGRAM, 0, BodyWidth, BlueZone);SetIndexBuffer(0, ExtMapBuffer1);SetIndexStyle(1,DRAW_HISTOGRAM, 0, BodyWidth, RedZone);SetIndexBuffer(1, ExtMapBuffer2);.....
Attached is a script that I am trying to set a variable determining whether the trend is bullish or bearish. It is supposed to set a variable to determine bull or bear. It is not setting the variable. can anyone determine why not by looking at it? I have commented out the rest of the script (still...
At 2010.07.01 GMT 04:15 my system gave me no less than FOURsell signals and one filter confirmation, as follows: OsMA classic bearish divergence, usually very reliable;AC+AO aligned for selling;MA cross down;Heiken Ashi Zone Trade two bear bars after three grays, another usually very...
Hi Everyone, Please help me draw this. This is intended for my EA and not as an indicator. Not sure why it is not drawing.. I just want for there to be a box which starts at hour 1 of the day and ends at hour 5. LineA and LineB will be the high and low of the first 5 hours of the day. Thanks in...
Hi all I need to know the number of pairs my EA is driven. I don't find a way ! How to know the number of open chart for the same EA ? thanks Philippe
Strategy Tester Report TheMasterMind3 (Champion Edition) AlpariUS-Demo (Build 218) SymbolEURUSD (Euro vs US Dollar)Period5 Minutes (M5) 2008.10.01 00:00 - 2008.10.01 13:10 (2008.10.01 - 2008.12.31)ModelEvery tick (the most precise method based on all available least timeframes)ParametersLots=200;...
Hi all How to calculate AccountFreeMargin to put a SELL STOP or BUY STOP ? AccountFreeMargin only accept BUY or SELL and AT CURRENT PRICE ? How to be sure there will have enought money to transform a SELL/BUY STOP in a SELL/BUY ? Broker delete trade STOP if not enought money and you lose your trade...
Hi all, I feel it is a good strategy to enter/open order using Moving Average Crossover (MA20,MA50,MA100,MA200 ). However, i don't think it is a good strategy to exit by Moving Average Crossover Any of you have a better idea for the exit strategy ? using TP and SL ? using MACD crossover ? How...
Hello, Does anyone know how to achieve Percentile Rank value of the current bars close from lets say the last 100 bars? Here is what I am refering to... http://en.wikipedia.org/wiki/Percentile_rank Thanks
Does anyone know how to use an EA to pause/unpause tester? I want whatever tests are running to be paused when the EA is trying to make a trade.. Then when the trade is complete, I need it to unpause and resume testing.
hello, i want to change the pair shown by a script. the script will show all pairs, with 3-5 second shows. is it possible to change symbol of the chart, by code? thanks
Hello, i have see today when i set the Period for a Moving Average bigger then 4000 then the Period automatic change to 14. Have anybody here see the same and know if it is not possible to use bigger Moving Average with MT4 or why does it not work by me?
I'm wanting to administer and trade on numerous ForEx accounts from one client. I found some info here on automatically switching accounts in one terminal, though the 'documentation' is in Russian. Now I'm wondering how and trying to figure out when the terminal is not active and is 'at rest' to...
These pictures are explained by the information in the top left corner of the chart, the moving averages are both 13 periods on a 1 minute chart. What I found suprising is, scrolling back through days weeks and months of my 1 minute chart history the difference between the moving averages of the...