Download MetaTrader 5

MQL4 and MetaTrader 4 - page 412

To post a new topic, please log in or register
I'm hoping to get some help! I'm very new to this site and the use of EA's. I've got the Molanis EA builder software - but struggling to understand the Manual. There's very little on Youtube that helps me too. I'm trying to create a very simple Hedging programme. It's probably been tried many...
what functions would i use to count the last 10 bars from price and measure each bars volume from bar open to bar close?
  LG G2 (5)
I don't know whether here is a right place to post. I used MT4 on my Samsung Note 2 to trade for while. It was greater. However, when I buy a new LG G2, MT4 does not work on it. It always show "Unfortunately your device is not supported." However, when I go back to Play Store, it said all my device...
Hello, When I put the following, "=MT4|BID!AUDUSD" into an excel cell, the AUDUSD BID is not being exported successfully to excel. how could it happened? is there any other way to export MT4 Price to Excel? Any help is greatly appreciated. Thanks, Phil
If you are a dedicated and committed forex trader but you are always or most often losing, please contact xx.
  Forex-Brokers (1)
I am a new trader and I would like to knowabout forex brokers . Do you have any recommendations? What about forexresearch?
Critical Bug! FileReadString couldn't return correct result in Build 613. I lost many profit!!!!!
Pre build 600 (which I have on one trading station), the switch statement allowed expression types of doubles. However, now as of build 600, it appears doubles are no longer allowed to be expression types? Is this a bug, or is this the new and improved MQL code feature that breaks old code? Seems...
Hi All, Have a full day today to try and get this now unworkable script re-written in MQL5. Grrrrr. A simple FileOpen() procedure that has worked for years now returns a value of -1 The SourceFile and Executable are way down there in the hole AppData/.../Scripts and the .csv's are in AppData/.....
Well it took a little while but I'm glad that last script modification didn't take all day. One more thing to solve. How to remove that new and non-checkbox-removable, symbol and timeframe label in the upper left hand corner of my charts. That label is clutter in useful space for me. YL
Please tell me how to move the text label. Please see the following code and attached file. ...can you help? Thanks advanced. int init() { // Attach indicator arrays to buffers SetIndexBuffer( 0, Res3); SetIndexBuffer( 1, Res2); SetIndexBuffer( 2, Res1); SetIndexBuffer( 3, Pivot);...
Somebody know how can I refer in mql4 to past data of my account (not past orders, but past data from my account), or know of any materials which explain how to do it? Thanks a lot trader201
Hi Is there any way I can hide external inputs and set them to false as default? It will be much easier than modding code. I dont want the customer to see these in the inputs.. but i still want them set to false. extern bool PA8=false; extern bool PA50=false; extern bool PA200=false;
MACD_H1 which is an MACD with a period=60 does'nt have any action in this EA .I need your help please Here is my EA code : #define MAGICMA 1970//--- Inputsinput double Lots =0.01;input double TakeProfit =5000;input double StopLoss=1000;input int TrailingStop=1000;input string Choose_Lot="0.Manual/1...
  Write file (1)
i have this code : my file write in directory :C:\Users\asd\AppData\Roaming\MetaQuotes\Terminal\18D0C7f585FFD316854F27B2A71B7F37\MQL4\Files why i change to write directory C:\trade\ //+------------------------------------------------------------------+//|...
I ALSO NOTICED THAT THE CONNECTION SIGN IS NOT ALL GREEN AS IT USED TO BE, RIGHT NOW ITS CHANGED ALSO AND ITS HALF GREEN AND HALF YELLOW AND IT WASNT LIKE THAT BEFORE.
int start(){   New_Bar=false;                                  if(New_Time!=Time[0])                             {      New_Time=Time[0];                               New_Bar=true;              if (New_Bar==1)  {   double value1;   double value2;      int    ticket,total;if(// condition //)...
My metatrader D1 timeframe shows the opening at 00:00 (midnight) I want to change it to show the day opening at 5:00 pm eastern time (us canada) how do i do this?
Hi Background: I developed a custom indicator to calculate the lot size to trade based on my entry price and stop loss price. This indicator worked fine before the major upgrade to the MQL4 language. Current situation: I can attach the indicator to my chart and it works. When I close MT4 and restart...
Hi, Im trying to change the iExposure indicator view from sub window to main chart window. I've already tried modifying the code from #property indicator_separate_window to #property indicator_chart_window, but still can't see the indicator in the main "chart" window. Any suggestion?  Here is the...
Hi all, I ask for your help with the following I need to create a rectangle that sticking to one side of the window operations, so I thought of "OBJ_RECTANGLE_LABEL" but this does not leave me the option to put prices that define the height of the rectangle, since the documentation says Note...
Hi: I am trying to code a very simple EA just by reading the documentation and trying to follow the explanations but its not working for me. The EA is not opening any trade. I just want to open a trade at specific time of the day. This is how I did it: extern double LOT=0.01;extern int...
In my EA, I always need to have multiple orders sent at the same time when some conditions fulfilled. Then, I use the time at transaction as the magic number for that set of orders. For example, At 2013/02/26 15:00:00, I make orders for EURUSD, USDJPY, and USDCAD. And I assign the same magic number...
HI, everyone I'm kind of new here and I need help with adding a SOUND WAV to an indicator (3 MA Cross w Alert v2 mq4 for MetaTrader 4) I have tried without any success to add sound wav to it. Thanks
I don't know if anyone has posted this yet (the search is down), but here it is in any case. I run Windows 8.1 and when I tried to uninstall build 6xx via uninstall.exe, I got an error message saying something about a missing link. I tried removing it via configuration/remove programs and then I got...
Is there a way to access news dates and times in the MT4? For instance, I want to NOT trade around EUR/USD news releases... maybe an hour before and an hour after... or so. Or do I just need to created my EA so I can manually enter the news release dates and times... I could do that at the start of...
Hi, All 3 function with TimeDay..() seems not to be supported by the editor: no auto-completion and now colouring like:         if (TimeDayOfYear()){ ..}        if (TimeDayOfWeek()){ ..}        if (TimeDay()){ ..}same with TimeYear(), TimeMonth
hello, this time I would like to create a script which Open a first LONG#0 position between 7am to 5pm. The goal is : if the LONG #0 loose 10 pips, i would like the script OPEN à new LONG #1 position for making a downward average. I have begin a script but this one just open the LONG#0 :/...
Hi All, I would like to know if designing and EA this way it's wrong. My EA it's design to open and close a position on the open of the candle (market orders, no limit and stop orders). But sometimes the close and the open are at the same time, my question is, shoud the ea avoid entry signals when...