MQL4 and MetaTrader 4 - page 685

Hi, can somebody tell me why this indicator isn't working? int OnInit()  {//--- indicator buffers mapping   //---   return(INIT_SUCCEEDED);  }//+------------------------------------------------------------------+//| Custom indicator iteration...
[Deleted]
Hello forum, good day. Is it possible to know when the bar ends and place an order right at the last tick? I know that the easy way would be to wait until new bar event and do it on first tick, but I need to place the order right at the last tick/end of a bar. Could this be done? Best regards and
Hi! How can i check if the built-in one click trader is enabled or not from an expert/indicator. Thanks for the answers
Is there any MQL4 function that will allow me to modify an existing alert on the Alerts tab?   I have a named pipe server and I would like to tell my alerts to reset with new values programmatically.  If I can delete and recreate them then that would be fine, but I need to retain the little slider...
[Deleted]
Hello forum, good day. Is it possible to set Take Profit to be 10 pips above OrderOpenPrice()? Your help will be much appreciated. Best regards and thank you, codeMolecules 
[Deleted]
Hi! I am trying to program my first EA and I am wondering if it is possible to import different live data feeds (like time, trades, prices,...) from a different broker. I didn't find a lot about that topic. What kind of commands can do the job? Thanks in advance
I'm working with WR% indicator and I am very well. I wonder where I can buy or find an EA for my system WR%. Thank You
Hello guys, I have been working on a little script for days and I can't make it to work in my strategy tester. This is the concept: 1) If time = 01:00, sendorder() 2) if time = 23:00, closeorders() 3) no trading in weekends   The problem is that I can't find any good working IF statement that...
Hi ,  I would like to know if there is a way to deactivate the "auto Styler" in the Metaeditor .. I just noticed that since the last version(I believe) if I have a source code like this: int start()   {      if(Bars <= drawBegin) return (0);   int countedBars=IndicatorCounted();   if(countedBars <...
[Deleted]
Hi, This is Vikram Here. Looking for some help here.  Does anyone knows about a traling pending order EA. I checked out on net, but didnt find anywhere. Thanks Vikram 
I've programmed a few simple EA's for MT4 using MQL4. Now I want to dabble with Robots for Binary broker platforms. I know you can buy robots that will trade on your Binary platform, but I want to create my own. I can't find any help on the internet. Can anyone direct me where to go to learn how
[Deleted]
Can anyone make sense of this?       double calc1, calc2;      calc1 = 1000*(17.6/100);      calc2 = calc1*(65/100);      Alert("calc2=",DoubleToStr(calc2,2)); Here is what's returned: How is this possible??? Also tried this:       double calc2;      calc2 = 176*(65/100);      Alert("calc2="...
  File write error  (2)
I am getting an error message while attempting to write to a file location. 0 16:13:12.522 HL GBPCHF ,Daily: Alert: hist0935 Events File Error.5004 0 16:13:12.523 HL GBPCHF,Daily: Alert: hist0935 Events File Error.5004 0 16:13:12.525 HL GBPCHF,Daily: Alert: hist0935 Events File Error.5004 0
[Deleted]
I try to send notifications to my phone, but in the journal I see "Notifications: failed send request (HTTP session creation failed [15105])" Is some program missing or a firewall rule? It fails even if I turn the firewall off, so I think it is not a firewall issue, but then what? I'm running MT4 on...
Hi all, is it posible to export optimization results to a csv file when optimization finished automatically from code?. The same way like dumping trades from a backtest into csv.    
Hi everyone, I need a help to write a funcion that give back the BBW value, so I have few question: - to calculate correctly BBW i can use the formula (BBU-BBL)/BBM, upper-lower/medium value. Now the question is: to calculate those values is necessary to use a buffer isn't it? - if I use a buffer...
Hello Masters in the house, Please I don't seem to get how to write lot size for standard and micro account especially the five digits brokers. It keeps giving me not enough money and invalid lot size, what do I do please, help! Any help that solves this problem shall be greatly appreciated. Thank...
[Deleted]
  Little question  (3)
hello, i am making a little ea and i need an advice. i make an alert for rsi crossing up the 70 level and i want another alert for when rsi coss down the 70 level. how can i make this coss down code?   thanks  
[Deleted]
OOnChartEvents()  allows to interfere into functioning of EA in live trading. It does not work in Tester. Could anybody tell me how can I transform my EA in order to be able to use ChartEvents  in Tester to. I know that this is possible: see "MT4 Trading Simulator.ex4". Regards, Slava.
Ok.  So I probably haven't been paying much attention here, but I went to create an EA using a template I created for my EA's.  When I clicked File, New, One of the options I used to get was to use my own template.  Now, that option has gone.  Question is, what's replaced it? -Michael.
[Deleted]
I somehow deleted the MT4 app on my phone along with the data associated with my meta quotes demo account. Is there any way at all to get this account back without the login and password?
Hi guys,   I'm having trouble assigning Bid or Ask price into an array. When I try to assign it to my array nothing happens, when debugging it just simply stops without any Err. ?? float  _Ask[];float  _Bid[];      for(i=0; i>=0;i--)      {  _Ask[i]=Ask;         _Bid[i]=Bid;         }
I am writing a library in mql4 language in which I would like to have multiple inheritance. I use the following format: class A{   // some variables and functions};class B{   // some variables and functions}class C : public A, public B{   // some variable and functions}; But at compile time it...
[Deleted]
Sir can u help me out how to figure out a profit in MT4. Market of USDCHF if my bid price is 0.99006 and ask price 0.98956. after calculating this i m getting a profit of 50 but this MT4 giving a profit of 50.50. how
New article Optimization. A Few Simple Ideas has been published at mql5.com: The optimization process can require significant resources of your computer or even of the MQL5 Cloud Network test agents. This article comprises some simple ideas that I use for work facilitation and improvement of the...
New article Studying the CCanvas Class. How to Draw Transparent Objects has been published at mql5.com: Do you need more than awkward graphics of moving averages? Do you want to draw something more beautiful than a simple filled rectangle in your terminal? Attractive graphics can be drawn in the...
New article Neural Networks Cheap and Cheerful - Link NeuroPro with MetaTrader 5 has been published: If specific neural network programs for trading seem expensive and complex or, on the contrary, too simple, try NeuroPro. It is free and contains the optimal set of functionalities for amateurs. This...
//--- input parametersextern double   Lots=20;double MAX_RISK = 0.005; //The maximum to be risked of the account.int MAX_ORDERS = 3;int StopLoss; //Defining a stop loss.int MagicNumber = 99;int ticket;double Ma1,Ma2;void start(){//Write a program which calculates a StopLoss value at each tick...
I thought I'd try a new broker and wanted to check out spreads using the code below. Running the EA showed figures (screenshot below) which don't seem realistic and they don't change (as on another broker where the spreads are always changing) The broker doesn't appear to even understand the problem
[Deleted]
I know this is "convention", but all conventions need to be questioned, otherwise mankind would never have left the trees. MetaTrader not only does not record ticks in it's history, but it only has the OHLC of the bid prices. However, long trades are opened on the ask and closed on the bid , and