MQL4 and MetaTrader 4 - page 1072

To post a new topic, please log in or register
I have been trying to use 2 of the solution on this forum but it's not working could someone please have a look at it and let me know where I have gone wrong. Regards Kiwi    //+------------------------------------------------------------------+   //| Variable...
Hello, I have a serious problem with my MetaEditor. I had 2 MT4 installed on my computer (Fxpro, FxOpen). After I installed a third one from InstaForex, the MetaEditor started to give me message like "could not launch the compiler". I first posted a thread here, and someone advice me to uninstalled...
I have programmed in few OOP languages, so I have general knowledge on programming, but I just need some expert to clarify few things for me + some concepts. 1. I like the way ZigZag marks the points and let’s say I want to use it as base for two of my custom indicators (want to get...
Hi all, I am a newby creating a width indicator based on Bolinger Band. What happens is that when I tried to run this indicator, BB_Max values of ArrayMaximum always blow up to 214783647 and therefore the values of BB_Percent will go to zero. How could this happen? Any comments is appreciated....
I am growing very tired of going to each currency pair chart and setting the magic number each time I compile my code on the test (not talking about tester) I am running. Is there a code snippet out there where I can count all the currency pair charts open with an EA called "bob" (for example) and...
  Your opinion please (12   1 2)
I have this EA program that I purchased. Have been running a test on it since about 5/26/09, so far it looks good, My Stats report, do you think there is enough testing on this to accept it as usable in live trading or should I run it longer before I got live?
I'm trying to find any datetime functions for calulating time differences. I want to run a script to check on the elapsed time that an open trade has been active. -Jerry
I have an EA that waits for a MACD to cross over, then it see's if the price action is above the top bollinger for a sell or below the bottom bollinger to buy, in the hope that as it reaches that level and bounces back. From here i check whether the next bar, within a user defined range has broken...
When I do Alert("Hello!"); I get nothing. Do I have to enable alerts somewhere? -Jerry
I would like to partner with a programmer to develop an ea based on my strategy.
The problem is that it's sending too many Alerts because the conditions are true for a long time. How can I get it to only send me one alert when it finds the conditions are true? Below is my code: total = OrdersTotal(); if(total < 1) { if(cnt_buy ==2) {...
Can someone please explain how i can pull live trade results into my website from mt4.
No Hedge....No Stoploss, No Limit Orders., FIFO...at this rate it'll be no MARKET ORDERS.... Thanks OBAMA..... SEND COMPLANTS TO THE NFA at jsunu@nfa.futures.org spendleton@nfa.futures.org squallo@nfa.futures.org edasso@nfa.futures.org lbrinati@nfa.futures.org forex@nfa.futures.org information@nfa...
Hi, I downloaded these two scripts on a forum, they were supposed to open 3 positions at a time, but when I drag and drop them on my chart they open only one position. Can someone correct that for me please. Also can someone modify those scripts for me so that they can not only open the 3 positions,...
Please, watch! The system works in EURGBP with high spread. 175152274,6% of profit in EURGBP from 2000 to 2009 (5 june) https://www.youtube.com/watch?v=I3F3MP4EcZk Best regards, BearNaked
Position opening question for programming.. ALL I want is code for opening a single position ONE Time whenconditions are true for entering. And NOT open any more positions inthat direction. Example 1. MA's cross 2. a BUY order is sent 3. CONFIRM Buy is opened (with magic number) 4. Don't open...
  if else (2)
Is this code correct? It will do 1 OR the other? I had a problem with if else statements the other day so just checking:       if (R1-OvernightHigh<0.0048 && R1>OvernightHigh)      {         OvernightHigh=R1;      }      else if (R2-OvernightHigh<0.0048 && R2>OvernightHigh)      {...
Hello everyone, I need help to understand symbol and it's full name from market watch window.....trying to search document that gives detail about each symbol. Thanks Komal.
Hi, I instALLED MT4 v224 AND IT crashes when i try to add a standard indicator such as Heiken Ashi. When I restart it, MT4 immediately crashes again. Is there a way to break this error loop? I tried changing the lastprofile .ini to bring up a virgin profile but I couldnt save it - no authority even...
My EA waits for the MACD to cross and sets a variable to 1, it then looks to see if a bar has opened below the bottom bollinger to take a buy trade or opened above the top bollinger to take a sell trade. I've printed this variable at the start of each bar to check. The reason for this is that if a...
Hello to any help out there Just as the Subject suggests. I am attaching an EA to a chart. The EA is listed on my Navigator. It was copied from the Code Base--Expert Advisors.. The Author says to change the variable makeTrades to True..check..And the init () to what ever currency I wish to use....
Hi Everyone. I am usiing a manual system that gives me alerts when the conditions are met. The alert box pops up but what I would like is to have it email me too in case I am away from my computer. Can this be put into an indicator that I could attach to the chart? I have searched these boards but...
Spread If you look at the market watch the spread for EURUSD is 2 pip ( 1.3932-1.3934) but if you look at the chart is only 1 pip ( 1.3933-1.3933), this happens all the time. Does any one knows why ?
I am new to MQL4 programming, and am trying to take lots of little steps to get acquainted with the syntax and different types of programs. I tried to program a simple moving average crossover indicator, but the lines drawn by the indicator do not have the same values for identical MA's created with...
Newbies and Advance that would like to meet at a Starbucks or some halfway point for exchangeing ideas and experience with MQL and strategies. Regards Huckleberry
Hi-- I've been working on an EA to manage my trades. The idea is to have 3 minis, micros or full contracts on and then, as different TPs are hit, close out one of 3 Lots declared in the inputs and then manage the BE and SL positions along the way. According to what I have found, I should simply be...
Is it possible script get variable(s) from an Indicator variable? Any code example? Many Thanks :)
I'm new to MetaTrader and looking to experiment with my own EA. I've done plenty of C and Javascript before so it should not be too difficult. I have a demo account with a broker and tried out the two example EAs provided (MACD and Moving Average) on EURUSD. When I ran a strategy test on them their...
I'm trying to write a DEMA indicator using RSI in MT4, can someone assist? I'd like to chart (in a separate window) "DEMA(RSI(5),3)". Thanks.
Is it possible to have an EA that requests specific input parameters on a daily basis at a certain time in code?