MQL4 and MetaTrader 4 - page 383

Hello, can anyone tell me why my ordersend function wont execute?  #property strict double vbid= MarketInfo (Symbol(),MODE_BID); double vask= MarketInfo (Symbol(),MODE_ASK); double StopLoss= OrderStopLoss(); double openprice= OrderOpenPrice(); extern double LotSize = 0.1; //---------trailing stop...
If I would like to copy a signal where the master account sends something like EURUSDx and my broker use the regular name EURUSD for that currency pair. Is there a way to have an EA on my account that can convert the incoming signal to trade the correct pair by removing the x from the signal...
I need to be able to manually manipulate the stop loss of an EA during testing, as well as some of its parameters.
Hi guys, I have a problem, i want to select the last open order and know the OrderOpenPrice, so i can do: OrderSelect(0,SELECT_BY_POS); double last_price = OrderOpenPrice It works fine but when i have 2 operations this function always returns the first operation OrderOpenPrice, I want to know the...
  SetTradingOff  (5)
IT is possible tu turn off automated trading programatically
Hi. I am building the automatic strategy and I need the code to count the number of bars from Forex Trend indicator. And hint would be appreciate. thank you
  Multiple MQ4 files in an EA  (12   1 2)
I am brand new to MT4, and am required to use MT4 instead of MT5 because OANDA my broker only supports MT4. I am a C/C++/C# expert. Questions: Using the MetaEditor I do not see a way to organize a set of files into a project. It looks like EA's must be 1 file and only 1 file? Is there a way to
  Excess Printing  (29   1 2 3)
I only want this to print the Spread to the Experts Journal when it places an order when the spread is low enough. Now it prints one every time (their is a Tick?) and more annoyingly, makes a sound. I want to fix it, not just eliminate the sound (< 8) Thanks for any and all assistance....
[Deleted]
Hi everyone,   I have one trading system which I'd like to have as EA. This system is based on renko charts and mindhero indicator.  Why am I using renko charts? The reason is simple. Renko simply filters choppy market. Also it is very useful during news (I'll show you what I mean in example below)....
Have this code: Print ( "Profit target: " , NormalizeDouble (AccountBalance()*((CloseProfit/ 100 )* OrdersTotal ()), 2 )); But in the experts tab it prints: "2019.04.24 11:35:41.370 CloseAgent XAUUSD ,H1: Profit target: 641.80 99999999999 ". Please help
Hi all, I am not sure if I am posting this in the correct page. I faced a problem when come to code the risk management module . My deposit currency is in SGD and the instrument that I traded is in HKD. I like to allocate 2% risk for every trade that I take using MT4. For example, Hang Seng index is
Hi all, can someone kindly tell me how to make a EA what measures price movement from starting price what can be first bar open price. to point that price has risen or decreased lets say 10pip. and from that price it will repeat the process again and so on. Many thanks.
  Turn ON/OFF Grid  (7)
Hello all, I would like to understand why this code doesn't work. Some expert help please.  Code:     bool ShowGrid=ChartGetInteger(chart_id,CHART_SHOW_GRID,1,value);//         Grid not removed    int OffOnGrid=ChartGetInteger(Chart_ID,CHART_SHOW_GRID,window,value);//  Grid not removed 1) What does...
Hi Everybody!!   I Cannot Edit My User Name On The Custom Indicator Panel For MT4!!   I've Tried Double Clicking On The Period And Every Other Parameter!!   I've Just Bought New Software - Binary Today 5 And I Can't Activate It Without Editing My User Name!!   Can Somebody Please Help!!   My e-Mail...
Hi, I need to code for my system: - atr periods 7 - exponential ma of atr at 35 periods I think that it would be a good indicator for scalping strategy. Thx for your attention.
It seems that OnTick() and OnTimer() event handler used to work before, but recently I found they stop working when I minimize MT4 terminal, and they will come back to work when I un-minimize MT4 terminal. Does anyone found this issue? Test of OnTick() 0       14:48:33.850    EA GBPJPY,H1:...
[Deleted]
I cannot delete a demo account on mt4 mobile (ipad). Any help? thanks.
//+------------------------------------------------------------------+//|                                                      ProjectName |//|                                      Copyright 2012, CompanyName |//|                                       http://www.companyname.net...
Hi  I have my two Count Function to Winner trade and to Losses Trade  But I want to know if is possible modify the Count Function to do this if I have two Losses or Winner consecutive trade  and if is DayOfTheWeek ()==1 , and  Next Session trade is  DayOfTheWeek ()==2 The Count, ComeBack to 0 and...
Hello friends, I rarely use Strategy tester on my programs. It was suggested to me by a friend that strategy tester is a fabulous tool to carry out long term and short term testing for expert adviser's and indicators. Currently, I am still not convinced of it. Myself it seems to be a backward...
The market seems to be broken within my MT4.  I can not view products at all. I can search for them, but when I attempt to click on one to view it, it does nothing.  Also, when I go to my Purchased" page and click on the blue "Install" button, nothing happens.  I've attempted to logout and log back...
  RefreshRates...  (10)
Hello I read in doc Mql4 that RefreshRates() updates the data of the current symbol. I understand: the data of the symbol of the card to which is attached the EA. (?) In this case, for a multi-pair EA, how to refresh the data of other pairs? Or I'm wrong? Thank you for your answers
  FileReadArray issue  (17   1 2)
Hi friends, I'm trying to write some info from an array into a .bin file using FileWriteArray function and then read from that file and copy the file contents into another array using FileReadArray. As I checked the MQL4 documentation, I found out that it is not necessary to define the array size...
aiuto, ho smarrito la password per entrare nella piattaforma meta commercio 4 e non sono in grado di recuperarla (il consulente chemi ha seguito è scomparso e ha cambiato la password). cosa posso fare? thank you.
I devised an EA which I'm planning to run on my computer from 8:00 to 20:00 every trade day. I will shut down my computer every night and reload the EA every next morning. How can I simulate this case in strategy tester? Is there a function that reloads the EA (from the first line, including all the...
[Deleted]
If you want to code an EA, or trade well, for using daily charts, you need the real GMT times for start & end of a forex day. Just asked oanda, and got the following answer: "Itis either 5pm new york time that the candle starts plotting or 12 midnight newyork time that the candle starts plotting....
[Deleted]
Hello my code is not decompiling correctly for mt4 build 1090 now after I try to run some back test Please help me clean up my code thank you. My code is included in attachments and I will paste it below: #include <WinUser32.mqh> #include <stderror.mqh> #include <stdlib.mqh> extern int
  dll esterna  (3)
Buongiorno a tutti. Volevo utilizzare una dll personalizzata mql4, che normalmente è collocata nella cartella MQL4 \ librerie. E 'possibile collocarla in una cartella su chiave usb e richiamarla su un expert (#import .........). Grazie per eventuale risposta Paolo Goodmorning everyone.I wanted to...
hi guys  i have a little script for open trade 2 or more with one button , i want  write a  numbertrade in temporary file i write this  code    for(ctrlshort=1;ctrlshort<=QttOpenTrade;ctrlshort++)        {         SellShort=OrderSend(Symbol(),OP_SELL,LotSizeTrade,Bid,3,0,0,"Open CloseHide"...
The platform I use is the: MetaTrader 4 - Version:4.00 Build 1170 (20 Dec 2018). Just today I noticed that bug, on 17:00 platform time. My local (Summer) time is GMT-4. (And the NY NYSE local (Summer) time is GMT-4 too).  So what happen: On Friday April 5, 2019  I added a Vertical line on the last...