Download MetaTrader 5

MQL4 and MetaTrader 4 - page 594

To post a new topic, please log in or register
Sometimes I have problems with drawing lines. In some Timeframes the lines are shiftes and I can't understand why. Can anybody see something wrong.? OpenTime0=TimeCurrent() - (TimeCurrent()%(PERIOD_D1 * 60)) +StartHour*60*60+(60*StartMinute);CloseTime0=TimeCurrent() - (TimeCurrent()%(PERIOD_D1 *...
Friends, I am a newbie to mql4. But I know little programming in mql4. I need help in writing a code for the condition below. I want to identify the latest two consecutive bullish bars or bearish bars formation between 00.00 hrs to 08.00 hrs. Such bull/bear bar must be the one which is formed...
Hello, I am actually looking for a complete chart for the US dollar index and the Japanes index / future on mt4, which is realtime and can have loaded other indicators like moving averages, trend lines, possibly other sorts of indicators loaded. It is quiet discomfort to go to the websites who offer...
Hi Guys, I'm trying to learn MT4 programming, and this very moment I'm developing an PinBar detection indicator, which tells me to buy or sell. I developed this indicator especially for the 4 hour chart, because of the special rules for buy or sell. The rule for detection is as follows: Body of...
The performance graph and Balance/Equity. There is something that seems odd. On some EA's they plot quite separately. At other times there is no meaningful divergence. I cannot quite place my finger on what is different and why and when it does not graph in the same way. Just sometimes I am...
I am writing an EA to work with multiple pairs at same time. I attached the EA to EURUSD and the EA would do math on other 5 pairs as well. The problem I found was that: the history data in the other 5 pairs did not refresh, except EURUSD, because the EA was ONLY attached to EURUSD. My solution was...
I have an indicator in ex4 format that displays the following: -As a buy signal Underneath the last bar, it will display a red arrow pointing up. -As a sell signal Above the last bar, it will display a yellow arrow pointing down. I have attached a screenshot so you can see for yourself. What I...
Hi Guys New here, so excuse if been asked before ;( been puzzled for while on how I can save the trade and account window size to the way i want it as everytime I shutdown mt4 it reverts to the default layout every colum evenly spaced from left to right in bottom of mt4 I have reduced the colums so...
int LOWt=0; int HIGHt=0; int y=iBarShift(Symbol(),PERIOD_M15,iTime(Symbol(),PERIOD_D1,1)); LOWt=iLowest(Symbol(),PERIOD_M15,MODE_LOW,(y-1),(y-96)); HIGHt=iHighest(Symbol(),PERIOD_M15,MODE_HIGH,(y-1),(y-96));Comment("\ny: "+(y)+"\nHigh"+High[HIGHt]+"\nLow"+Low[LOWt]); hi everybody this is simple...
Hello, programmers, I wrote a simple EA that needs to work only the 4 hour chart. Would you please know how to determine the timeframe of the actual chart? Thank you very much! Pavel
I created a custom indicator that outputs a binary signal on whether to open a trade (0 for do nothing, 1 for open long, -1 for open short). When I attach it to a chart it works as expected and I see the blips of 1 and -1 in the expected locations. I then coded an EA to simply open a trade if the...
Can anyone explain why the following code does not seem to work in a custom indicator? int start() { int TestArray[]; TestArray[5]=99; Print("T: ",TestArray[5]); return(0); } For some reason it just prints "T: 0" as if the value 99 had never been assigned. What am I doing wrong?
I know that you can measure the difference in price betweenthe current price and moving average. And there are several other objects thatcan be used for this sort of calculation. But is there any form of a straight linethat can be used to measure this difference? In particular I'm working...
Hello everyone. I need some initial guidance on how to make MT4 grab signals (buy/sell/modify, set SL, set TP) from a chat and/or e-mail sent by a trader trading manually (not on MT4). I guess such a system should have a function to grab info from the chat/e-mail, write it to a file and MT4 can then...
I would like to make the move from FXCM's Strategy Trader to MetaTrader. I have tried looking around for a resource to convert the Strategy Trader coding to MetaTrader but have not found what I'm looking for. I would really appreciate it if someone could let me know if there is an online tool that...
Dear friends           i have an ema indicator. its repaint            please help me.thanks.       code:#property copyright "Copyright © 2008, MetaQuotes Software Corp."#property link      "http://www.metaquotes.net"#property indicator_chart_window#property indicator_buffers 2#property...
  Good EURUSD analysis site? (25   1 2 3)
I know, this is not about coding, but does anyone know about a site that explains why certain changes have happend? And i don't mean something like: Today was a very bullish day ... the Euro continued its trend ... This i can see by my self ... but i want to know WHY significant changes are...
Is it possible to have the chart of the brazilian future
YO, [that's Brooklynese for Hi ]Could someone advise me how to turn off "all sound alerts"I listen to the internet radio. And the sound alerts keep popping on.Thanks, Brooklyn Cowboy
https://www.myfxbook.com/portfolio/flashing-trading10/322662 If you like to test my EA on real account, You must share profit with me 50:50. contact me myfx86@hotmail.com
Thank you for using MetaTrader 4 mobile terminals for iPhone and Android. Probably you have appreciated all its exciting features or perhaps noticed some errors. However, we hope that you enjoy all its advantages. And now we appeal to you. We want to know your feedback and encourage you to vote for...
Hi, I just started with the demo for metatrader 4 yesterday. It was smooth sailing until today. I went short / sold usdmxn at 14.0635 at a volume of 8. The market dropped all the way to 14.0539 but my profit stayed in the negative the whole time. Can someone explain what is going on with that...
Heinrich Himmler
Hi, I've been working on some alert indicators and i have come across some problems. For example i want to use the PlaySound() function, in order to play one sound, and at the same time i want an Alert() dialog box to pop up, but without the sound of the Alert() function, ussualy set in the events...
I want to open orders at the bar closed. thank you.
Hi, simple question. If I program an expert adviser, back test it, etc. and it proves profitable, can my broker steal my expert adviser? Reverse engineer it? Is this something they're legally allowed to do through meta-trader license/ownership agreement? I guess it doesn't really matter whether...
Hi, I have an idea for an indicator based on Elliot wave method of analyzing the markets. Basically, the method strives to determine when demand/supply has entered the market by summing up the volume on individual waves. To make things simple and straightforward, I propose using a normal MT4 zigzag...
//+------------------------------------------------------------------+//| |//| In no event will author be liable for any damages whatsoever. |//| Use at your own risk. |//| |//+------------------- DO NOT REMOVE THIS HEADER --------------------+#define SIGNAL_NONE 0#define SIGNAL_BUY 1#define...
hi everyone, I wondering is there has a method to control my monthly loss? for example, I'd like to set maximum 10% loss, if I had loss 10% money of my account balance this month, then stop trading till next month. exclude using write a file to record the account balance. anyone can share how to do...
Hello i am completely new to programming and i m really lost ....Could someone please help me... I would like to make an EA based on BB bands stop indicator . As i am new to this programming thingy I do not want to make a complicating EA. How do i make an EA using iCustom and transform this BB...
In my strategy to Start with .. I can have one buy signal and after some time I can have one more buy signal.. it might continue up to 10 times. Then when I get a sell signal, I need to close all the buy positions and open one sell position. Then the series of sell order may continue.. Basically, at...