MQL4 and MetaTrader 4 - page 386

I can mark the minimum and maximum of the month, week and days, how do I mark the specific day that this event happened ? I need to put in a label
Hello all! I am trying to add an image to the chart using ResourceCreate, but for some reason I am getting error 5002: "Wrong file name". ResourceCreate("ChartImage","\\Images\\image.png") I have also tried this code, with the same error: ResourceCreate("ChartImage","\\Files\\image.png") I've also...
[Deleted]
Hi, I would like to ask if someone has already tried to accurately check if a certain trade is closed by stoploss or takeprofit. I have a function that deals with this but its not that accurate because it checks the orderhistory then checks the comment if it has "tp" or "sl" on it but the problem...
Hi All, My MT4 installation has been working just fine for some time. My "New Chart" drop-down menu showed 6 options: Forex-1 Forex-2 Forex-3 Metals Indices 1 Indices 2 Now "Forex-1" has just disappeared leaving the remaining 5 options.  Does anyone know the MT4 internals well enough to tell me...
Hi all, i made this ea which based on FANN neuro, i had created the network file and trained it with FANN Tool then i tried to create the neuro network by calling function: ann = f2M_create_from_file("Close.net");  and every time i got the same error (FANN_DOUBLE_ERROR) so always the output...
Hi, I am trying to understand the risk/reward ratio over a series of trades. To keep things simple, using my custom indicator, I might get 50 signals/trades and each trade uses a stop loss of 10 pips.  25 of the trades make some kind of pip profit level, say 30 pips each. 25 of the trades hit...
[Deleted]
Hi all, I'm new to MQL and am having trouble coding this. I put: (PRICE_CLOSE-PRICE_LOW)/(PRICE_HIGH-PRICE_LOW)[1]>0.8 in my opening order criteria but it is giving me an array required error. What is an easy way to plug this into an open or close criteria?
Hello, My trade notifications are not going through, any time there is a trade or even if I test the push notification, I get the error below. Any ideas why it might not be working?
void hedger(){   int buy_trades_number = _get_number_of_trades(OP_BUY);   int sell_trades_number = _get_number_of_trades(OP_SELL);   int numberofhedgedbuys = _get_number_of_trades_hedge_buy(OP_BUY);   int numberofhedgedsells = _get_number_of_trades_hedge_sell(OP_SELL);   for(int n=OrdersTotal()-1;...
Dear forum, I'm trying to get the previous two, fixed ZigZag values -- I've tried the method found here, but it doesn't seem to work. What I have now is this:    for(int k = 1; k < Bars; k++){   // Get most recent ZigZag      if(iCustom(NULL, 0, "ZigZag", Depth, 5, 3, k) > 0){         ZigZag =...
Hi,   I've been searching through the articles, and I've written a couple of Expert Advisors.   I would like to incorporate built-in Indicators into a new EA I am writing.  (I hope these questions aren't dumb). How do you force a draw on your current chart of a built-indicator?When you force the...
[Deleted]
Hi guys,  I create objects on different charts (same symbol). Afterwards when iterating through all open charts in order to collect ALL objects mt4 does NOT return all !! Any ideas ?     long chartID = ChartFirst();    while ( chartID > -1 )    {      if ( ChartSymbol(chartID) == Symbol()...
Hello community, something unfortunate happened to me. I lost my phone SIM card and got a new one, but I forgot that my old number is still saved in here. Now I finally got accepted as a seller a week ago and remembered this issue. Is there any way to change my phone number without having access to...
I have just installed Meta trader 4 and copied ex4 files into the "MQL4/Experts" folder as instructed. After restarting the program I still can't see these indicators. Any suggestions?
for( int n=0; n<total; n++ ){      if( !OrderSelect(n,SELECT_BY_POS,MODE_TRADES) )      if(OrderMagicNumber()!=333 && number_of_buys == 7) OrderSend(Symbol(),OP_SELL,50,Bid,3,0,0,"hedged",333,0,clrRed);      if(OrderMagicNumber()!=334 && number_of_sells == 7) OrderSend(Symbol(),OP_BUY,50,Ask,3,0,0...
I'm working with this library (https://github.com/dingmaotu/mql4-lib/blob/master/Collection/HashMap.mqh) And I need to create a dictionary with different types (the value could be a string, double or integer) I found out that there is a variant type for C++ (https://stackoverflow...
Good day,  I want to be notified of any change in account balance so I made a function that is called on every tick and checks if there is any difference in account balance between consecutive ticks.  The function is then suppose to send a push notification on mobile device but no notification is...
People who uses MT4 ou MT5 on Apple System can't download EA or Sygnals from the website. When you click the button to confirm, nothing happen. Is ther any other way?
Hello,  If I want to open a trade after x amount of bars ( say 10 bars )  , then close it after y amount of bars (say 20 bars ) , is that possible  How to achieve that while avoid placing trades during Saturdays / Sundays and a void having the trade open though the weekends 
  Multiple inheritance  (16   1 2)
The Normal syntax doesnt seem to register, does mql cater for multiple inheritance or do i have to work around it? I was attempting a partial MVC, well different adaptation but essentially wanted a controller class between MarketIndicator and Trader, they both inherit statistics class but for
Hy,is it possible to force my EA to reload itself, everytime the Timeframe on the Chart is switched? //+------------------------------------------------------------------+//|                                            RefreshYourselfEA.mq4 |//|...
Hello community, please my "else" statement is not printing on the mt4. Below is the code: void OnStart()   { //---    int x = 10;    int y = 100;        if (x == 10) {       Print(x);       Print("I hate Mondays");       Print("I love Fridays");        if(y == 100) {          Print("I just printed...
Hi there! How can I update my 2018 historical data, after I have downloaded from Tickstory 2016 and 2017 data (for all timeframes). Downloading 2018 from Tickstory overwrites 2016 and 2017 data. Or is there a way to download without overwriting? Thank you in advance!
Guys i need help with the following code... I am trying to open a buy order 2 or 3 bars after fast ma crosses slow ma and when the rsi is greater than 50 as well as when both stochastic lines are greater than 50. A sell order for the opposite. The code below is an attempt at a buy order for the 1...
Is there a script or indicator that converts the current time frame data (can be from M1 do D1) to a higher time frame (H1, H4, D1, W1, MN1) ? I searched and found existing scripts that either require M1 as current time frame, or convert only to a multiple of the current time frame, which is not...
Hello... i would like to know if it is possible to create a Variable from inside the EA...for Example input string Nr1_Name="Hello"; input int PeriodChoosen=12; // above all clear // below is the question..is there a way to do this?? int MA_Period_"Nr1_Name"=PeriodChoosen; (the Variable shall have...
I was wondering if there was a way to click on a particular candle and have 2 horizontal lines come up, above and below the close of the candle, that are 1.5x the 14-period ATR? To be clear this would be for candles in the past. I'm trying to quickly manually backtest some trend indicators and this...
Hi How would I add symbols for the MT4 app for Android which was downloaded from the Play Store created from "metaquotes.net"? The symbols that I want to add are not listed on the "symbols list". I want to add GBPAUD, GBPNZD, NZDCAD, and 2 other symbols. Thanks
On MT4 are all searchable brokers legitimate and go through any kind of authorization and checks ? Or can anyone be a broker? I believe I'm a victim of a broker scam but just want to know if that's possible or if it's just my paranoia. Their brokerage was easily searchable from within the official
if(SellTicket>0){               Selected = OrderSelect(SellTicket,SELECT_BY_TICKET);             double CurrentPrice = Ask;             double SellStopPO = OrderOpenPrice();             double SellStopSL = OrderStopLoss();             double SellStopPips = SellStopSL-SellStopPO;...