MQL4 and MetaTrader 4 - page 366

To post a new topic, please log in or register
I do not know if this is right thread but  I want to suggest two things for both Metatrader 4 and Metatrader 5 1. Volume (CTRL +L)  to show buying and selling volume  and to be colored (MT4 and MT5) and Tick Volume ( MT5) 2. HLC price representation on chart. So far there are only Bars, Candles and...
The order of my charts is not saving once I adjust the order of the tabs. Everytime I adjust the tabs and save; with new profile, running as admin, creating new terminal.ini file... nothing fixes. Is there a trick or file I can edit to change the order of my charts ? 
Hi, The Doc. of mt4 tells me: int  OrdersHistoryTotal();  Returned value:    The number of closed orders in the account history loaded into the terminal.    The history list size depends on the current settings of the "Account history" tab of the terminal. But if there is a new account there won't...
I did see the signals tab on my MT4 terminal and investigated - found many interesting signals! I tried to subscribe but without success. Then I looked for a signal provider that is the same as my broker " TradeFort" - again no success! (I am able to subscribe but no trades are copied as the...
Using MetaEditor v 5.00 build 934 and MetaTrader 4.00 build 670 produces the following: double d1=20/1200*600;double d2=600*20/1200;Print("d1=",d1," d2=",d2); // d1=0.0 d2=10.0  
how can  I calculate a 20 day price channel in mt4? I need it for my calculations, how can I find the current value of the upper line of a price channel for a given bar? I couldnt find any built in functions in mt4. Do you know any?
what is the nearest channel to keltner channels which is built in into mt4 platform? Donchian channel? are there any keltner channels built into this mt4?
Does anyone know how to set an alarm in Metatrader 4 informing me that there was a big fluctuation on the market?  
Hello guys. I am writing from Argentina I hope you will understand my bad English.   My question is :  It is possible select a chart automatically?   This is my case:  I have an "alert line" that make a noise when the price touches it. But usually I use this alert line not only in a single chart but...
Hello Is there a way to label an indicator line (ex. a Moving Average) in the same way that graphical objects placed on a chart can be labelled? What I want to do is detect if an object/indicator with a specific label exists on the chart and read its value programmatically. I can already do this...
Hello guys!   Need some help! When using script Profit = OrderProfit() + OrderCommission(); Comment(Profit);  sometimes getting values like 2.100000000000001 or 2.599999999999999 instead of 2.1 and 2.6. Basically I'm expecting to get max only 2 decimal places after point. Even if I...
Hi everybody, I intend to buy the new SURFACE PRO 3 which runs on WINDOWS 8.1 Pro. Does anyone know or has any experience with MT4 with it ? Thanks for your comments. Sam
When I load my EA to practice account the journal has this line item 2014.08.25 17:26:01.212    Code Base: failed parse codes I can not figure out what this means. Please advise Thanks
Hi, I'm new. I'm looking for someone to code me a robot that will open trades and close trades based on Heikin Ashi Smooth colour changes on renko charts. I'm a university student so I won't have much time to monitor trades. The idea for the robot is basically when heiking ashi candle turns white...
MT sometimes show the chart incompletely, for example as below charts, both are XAUUSD chart for the same time, period: 1h; the left chart is from MT, and the right chart from other place.  just as you see, the right chart have 4 more bars than the left chart, and in the fact, the left chart lack...
Hi there i just wanted to experiment with my "MACD-expert" a bit. Thats my whole source code: double MacdCurrent, MacdPrevious, SignalCurrent;double SignalPrevious, MaCurrent, MaPrevious; int init(){}int start(){Print("Account balance = ",AccountBalance());Print("Account balance = "...
hello everyone,  Is everyone ready for the important news, which are comming out today? I'm looking forward to a very volatile market. But now to my question: I'm working on an Expert advisor and everythink is going well except from one thing. I have here my two functions BUY() and SELL(), with the...
Dear MQL community, I have a little problem to solve with MQL, and hopefully someone can provide the good answer, and maybe it helps others because I really can't find a reason and a solution. So I have developed an expert, and after doing some unit testing the second step has been to test over past...
Tradeing
Hello, if i have 2 order open with idfferent Lotsize, how can i calculate at which price the both orders have zero win loose? I have here a exampel. Order one Sell open at 1.35000 and Order two Buy open at 1.3520 The first Order have 0.1 lot and the second Order have 0.25 Lot. The second order is...
Was trying to bring the value of ZigzagBuffer in my EA by writing the value to a file, in the indicator and then reading it from the file, into my EA.  Was able to write to file, but when trying to read, I get error code 5004.  Below is the code I used.      //...
I need to have EMA for my calculations in mql4, but the mt4 only has MA=moving average and not the exponential moving average!!! I need to be able to calculate the EMA for any given bar in the current chart in mql4 language. Does anyone know of any solution? ( need to calculate based on closed...
Hey there, I only have scripts which change all timeframes or templates but I need the symbol to be changed. It is pretty annoying to change the symbol of the charts manually when using six timeframes.  
ive recently made an EA based on the stochastic indicator and need some assistance to make the EA better. I am a complete dum dum when it comes to coding so I made the EA using an online EA builder. I now need to madify the EA so that it will only place one trade on each upward and downward cycle of...
Tengo el siguiente inconveniente y me gustaría si me pudiera ayudar alguien. Descargue la plataforma Meta Trader 4, tanto en mi ordenador, como en mi portátil y lo que pasa es que los perfiles que creo en mi ordenador no se reflejan en mi portátil.  Quisiera saber si hay alguna forma de copiar mis...
Hi all, i am playing dumping info to a csv file and i am wondering several things: //--- dumping file handlerint handle_file=FileOpen("values.csv",FILE_WRITE|FILE_CSV,","); int init(){       // Writing file headers       if(handle_file>0)       {            FileWrite(handle_file,...
Can anyone tell / show me how to import the value of a buffer into an EA which is normally 0.0, becomes a certain value throughout the code, then returns to 0.0.  I've been using iCustom to bring the value of each buffer into my EA, but only get either 0.0 or empty value ( 2147483647.00000 )  The...
Hi, I'm a newbie in programming MQL4, I'm just trying to create an indicator-oscillator to draw the % difference between moving average and price. Could someone give me the code for that: SMA = Simple moving average Indicator= (SMA / Close)*100   My time frame will be 1w, 1d, 4h or 1h for 89...
When I compile an old  indicator in build +600, Some errors are returned: 'Close' - constant variable cannot be passed as reference    fractal_dimension.mq4    160    52 'Open' - constant variable cannot be passed as reference    fractal_dimension.mq4    161    52 'High' - constant variable cannot...
Hi all, i've created an indicator with three buffers to manage color changing, but i've a problem about refresh of the last candle (candle in realtime)...don't work correctly in that candle (it's not enough a "Windowredraw" instruction). Thanks for suggest.
Hi, I was playing around with Chart Operations because I want create a script which applies a certain template to all open charts... I use this script below as a first test to get info from all open charts but the ChartSymbol() and ChartPeriod() functions only work for the current chart. if I use...