Download MetaTrader 5

MQL4 and MetaTrader 4 - page 536

To post a new topic, please log in or register
Hey guys, is it possible to show the build in alarm via a horizontal line? The alarms are all invisible.. regards naik3d
  Help needed (10)
Hi all,  I try to synchronize the bars of different pairs into a three dimensional array so each shift (bar) of this array has the same time stamp. If the bar for a certain time and pair doesn't exist, it still should get a time stamp but the other values should be -1. I have come up with the below...
Hi i m creating a custom indicator as a separate window. I d like to know if it is possible to display/draw an object at a specific Buffer[i] position instead of a continuous line. I m always talking on a separate window below the chart and not on the chart.
Hello: This is my first posting on this forum, so please excuse any formatting/procedural errors.  I am having difficulty with the Order Modify function.  I use an ECN, so I must send the order with 0's in the SL and TP fields and then use the Order Modify function.  The stop loss and take profit...
  no trade in real time (12   1 2)
baseed on the "moving average EA" the system provided,I developed an EA myself. It runs OK on the tester.but when I put it in the realtime,it never generate a single trade. As I checked the tester,there is a trade,but the real time running EA did not generate that trade. As I make sure I "alow live...
When I run this EA on one Chart with 1 Currency it works fine. When I open 2 charts each with the same EA attached but different currencies on each chart. eg: chart1 :EURUSD , Chart2: AUDUSD. As soon as the 2nd chart runs 1 of the trades Trailing stop ,Order Modify begins changing the Stop even...
Hey everyone....  I have an indicator that draws specially calculated lines 1000pips up and 1000 pips down from the current price. It calculates from a base 1.1000 on the EUR/USD.  The absolute fibonacci framework its called. (google it)   Id like to know if theres an array search function of sorts...
New to the language,    Can someone help get the difference between two MAs, current MA-previous MA.   Any help would really be appreciated.   TONY 
this its normal rsi code..its close price values...how change code?--> highest price,highest or lowest rsi valus?   //+------------------------------------------------------------------+//|                                                          RSI.mq4 |//|                      Copyright ?2004,...
  SSD Indicator (5)
Hi Everyone,  I hope you are all well, I am in need of a SSD indicator for MT4 but I am unable to locate one, can any of you experts out there help me? Regard Roman  
#include <IncludeExample.mqh>/* External variables*/extern int Slippage= 1;extern int MagicNumber;extern bool CheckOncePerBar = true;/*Global*/ int BuyTicket;int SellTicket;int UseSlippage;datetime CurrentTimeStamp;double SUM;double LotSize = 1;double StopLoss;double TakeProfit;int deinit()  {...
in some mql file we found variable name as follows double g_price_212; double gd_220; double gd_unused_228; double gd_unused_236; double g_price_244; double g_bid_252; double g_ask_260; double gd_268; What does mean here g, gd and the numbers like 212, 228.  
  Probleme with an EA (13   1 2)
Good morning, at the beginning, scuse for my language, but I'm not english. I have a probleme and I don't understand where did it come from. The entry condition of my EA is: cci=iCustom(NULL,60,"CCI_Mtf_custom",0,CCIPeriod,0,1);    if(Low[1]<BandMoins1 && iOpen(NULL,60,1)+0.001>=BandMoins1 &&...
Hi guys, in an EA i want to declare a extern string variable. If starting the EA i want to get the choice in the parameters of several strings. For Example extern string Letter = "A" or "B" or "C" or "D"..... I can't find the right syntax for this.
Does anyone know how metatrader interfaces with an EA? I do not have a strong background in windows API but I do have concept of how it works. Im particularly interested in what happens when you click 'Expert Properties' in the tester... MT4 obviously reads the extern variables and opens up the...
Hello, I am trying to find free api solution for metatrader, i want to create charts with indicators on the website. Whats the solution? Any ideas? Has anyone done it? Thank you
Deleted
Anyone please help me to fix this indicator. When MASmooth is more than 1, the indicator will show in the left picture. It has  a false signal at the nearly NosBar value. If MASmooth =1 it's normal as in the right picture. I have a limit programing. Anyone help me to fix it. extern int period =...
Hello everyone, Can someone please help me modify the attached file to display the average of a Bid and Ask on the chart, instead of both values? Thank you.
Hi, could you tell me how strategy tester calculates profit?.   Regards, Vince. 
hello coders    I'm new to mql4 programming , currently I'm creating a EA with Gann HiLo - Indicator , i need get a value using icustom , i tried Ga_status = (iCustom(NULL,0,"gannforspot",0,3,0));, but i getting wrong values can you help me with that , i need what is current color in the indicator...
Hello guys, I would like to know why I'm missing data from 13/01/2012 to 04/09/2012 in mt4. Is there a way to fix this? I have downloaded more times the historical data without positive results. thanks GC
//+------------------------------------------------------------------+//|                                                    MyFirstEA.mq4 |//|                                  //|                                      //+------------------------------------------------------------------+#property...
Hi guys, i was wondering because in Alert functions all numbers are rounded to 4 digits even if the pair has 5 digits. How can i receive the whole number unrounded? Thx
Hello, i tried to build an indicator in a separate windows that shows two lines. First the ADX indicator and second a moving average of this indicator. As a result i get a correct ADX line but the Moving Average line is always zero. Where is the failure/error in the code? // Indicator// Berechnung...
where were my problems ?  #include <stdlib.mqh> /* External variables*/extern double EquityPercent;extern double StopLoss;extern double TakeProfit;extern int Slippage;extern int MagicNumber;extern bool CheckOncePerBar = true;/*Global*/ int BuyTicket;int SellTicket;double UsePoint;int...
  Can Metatrader capture mouse clicks and pass those values into an indicator - similar to the Andrew's Pitchfork.    Someone suggested that WindowPriceOnDropped &  WindowTimeOnDropped may be an answer.   Thank you for your help.   
Hello Everybody! Been using mql4.com for a while now and have finally signed up! Everything about this site has been great and I could not have gotten this far with making EAs without it. So I can't seem to find a concrete answer anywhere for a particular problem and apologies if its been asked...
I need a single moving average ea that trades micro lots, thanks...
Hi, I cannotfigure out how the profit is calculated in MT4. I know thatusually you look at the profit in terms of Pips, but at the end of the day Ineed to know how many Euros I’ve got in the real world. Is thereanyone who can help me understand how the Profit in terms of Deposit Currencyis...