Download MetaTrader 5

MQL4 and MetaTrader 4 - page 341

To post a new topic, please log in or register
Hi, why code below output zero which is wrong? double b=0; b=30/100; printf(b); //output zero wrong and code below output is correct. double b=0; b=30.0/100.0; printf(b); //output 0.3 correctly Thanks.
Hello There Here I amagain trying another strategy and facingnew issues. I am importingin an array market prices and Momentum prices using 7 different mom periods 10,55,89,144,233,377,610in 3 different positions. The issue isthat I don’t take mom prices for 233,377 and 610 for the last 2 position...
Hello Boys I am trying to extract the latest high and latest low painted on the chart by the ZigZag indicator at any moment. Unlike other indicators, the problem with this fellow is that... the number of bars to be counted back is not fixed, it can also skip to Bar0 and start moving again within...
hello, I would like to create a script wich CLOSE in 3 step one manual open position. EXAMPLE : If I have open a long position of 1 lot, I would like that my script close 0.33 lot 30 pips more higher than my open price (take profit), 0.33 lot 60 pips higher than open price order and finally 0.33 lot...
Hi, I have programmed an indicator and wrote a few labels on the right. Can I program a definite chart shift for my indicator?
Hi, I have been trying to fix this several times but I just can't find where it's dividing by zero. Can someone be kind enough to look into this??   //+------------------------------------------------------------------+//|                          spiders101.Pro_Bot_EURUSD_m15.EA.V1.mq4...
Hello, Is it not possible that a function return a object ? 'return' - structure have objects and cannot be copied OOP_FunctionReturnObject.mq4 27 4 //+------------------------------------------------------------------+//|                                     OOP_FunctionReturnObject.mq4...
Hi I ran the start-tester with. the tester was stopped and then I wanted to delete the fxt-file but is was blocked by terminal.exe (acc. to LockHunter). After unlocking it could be deleted and re-created by CSF2FXT.mq4. Alternatively I would have to kill terminal.exe and restart. :( could be...
Hello, I am trying to build an indicator that is drawn as candles, but the following line of code: #property indicator_type1 DRAW_CANDLES gets the following error when I try to compile it: 'indicator_type1' - unknown property MultiTFCandles.mq4 15 11 Does anyone know if "DRAW_CANDLES" is...
Dear Friends Could you please have a look at the below and advise me why its not working in new version of MQL4? //===================================   GrabWeb Functions...
Hello all, I'm trying to get my head around indicator plots and buffers. I've done quite a bit of reading, but there are a few things I'm still trying to figure out. Let's say I'm using 6 buffers... 2 of which I want to plot as lines. All the examples I see have the plots first, then the rest:...
I would like to create the alarm that sound repeatedly until off when RSI is value is in the user-specified range. Can you help me out, I'm expecting the website to take a look at. I am not asking to solve. I am asking for help to point out ~ Thanks in advance ~
Hi, I am debugging a script. Before that I defined my default.tpl but as soon as press F5 (start debugging) a new chart is opened which is something else than what I defined as default :( Gooly
Hi, I just realized that my b509-EA with int start(){ ..} is not able to be run in the debugger X( So I tried to use all that new void OnWhateEver(). 1) From what I see in the reference I do not know whether all these functions do have/need a body or not like AccountName(). I assume not because it...
Hi, Could someone point me in the direction of where I can access trader sentiment (xxxxx) and store historical data for backtesting? From what I can see xxxx only provides about 2 hours of history. I'm ideally looking for 2 years+ of minute level data. Thanks!
To make an indicator that put a vertical line on the chart every close of New York at wednesday back in time.
  MT4 in server (2)
I want to use MT4 all day, but I do not want to keep the computer on for 24/5. Maybe use any servers that have a continuous Internet connection, and they can be entered in MT4?
When I use strict mode I get an array out of range error and my indicator is not drawn correctly, when I do not use strict mode no error is received and my indicator is fine. Is strict mode needed in most cases? Why would I receive an error in strict mode and not in non strict mode? Answers would...
Hi, I recently installed the new build (610) of MetaTrader. When using the MetaEditor that comes with, it I'm no longer able to obtain the help when I press the F1 key on any function. I get the message "failed connect to www.mql5.com:80" in the journal, see image below. I'm behind a proxy, is it...
input double TakeProfit    =50;input double Lots          =0.1;//+------------------------------------------------------------------+//|                                                                  |//+------------------------------------------------------------------+void OnTick(void)  {...
Greetings! I need help on this indicator. Been trying different method to count number of Bars in M1 Period that came across the level of Open price in the D1 Period. I attached my attempt to code it but unable to run it successfully. Been trying hard on this but I hit the wall so now I ask the help...
Hi MT4 I have tested OnChartEvent() function with simple code found on help first operation I have set this: bool idCreate = ChartSetInteger( 0, CHART_EVENT_OBJECT_CREATE, 1 );bool idDelete = ChartSetInteger( 0, CHART_EVENT_OBJECT_DELETE, 1 ); then...
I have click "show all track record "!why still show 2 yrs track record on my Oanda Mt4,How to show all track record
Hi, everyone! New member posting for the first time and I am in need of a little help from those who are already using the EA in mention. I have been tweaking the Batman EA to get it to work just right, but I am still unfamiliar with it's coding. I have been playing around with it for a couple of...
Hi I need a programmer to write EA that can write spread in 5min time interval. The aim of this is to plot a graph to show how the spread varying with the time. Also, to evaluate and differentiate between brokers. Regards,
Since the changeover to 600+ I have noticed odd logging behaviour, namely, that Print statements in my running EAs do not seem to output to the experts tab anymore. Is this another thing that changed? Where are my log statements going? I'm using /portable mode, but that should not matter(?)
Hi, to calc the NY-Session I use: 11    #define ClsSess           57600 // = 16*3600 = 16h      ...55    datetime secLeftInNY(){       ...58     datetime tNY = getNYTime(TimeGMT());59     if ( TimeDayOfWeek(tL)>0 && TimeDayOfWeek(tL)<6 && TimeHour(tL) >=8 && TimeHour(tL) < 16 ) 60...
This code should give me the Open and Close of the 50th candle in a chart, but actually gives the Open and Close of the 51st candle. Is there a way to get these two points in line with each other. The count of the candle with it's Open and Close? Thanks!    string textE;   double YOp = iOpen(NULL...
First of all, thank you for providing the MT4 platform and the Signal Following option, I love it. Unfortunately I ran into 2 issues that are conflicting with the information (Video & Help file) that is supplied. Please note: my MT4 system is running 24/7 uninterrupted. Next to that I have a second...
Hi, it is a bit confusing, it is doomed to fail and it would be very nice if this would not happen! I compile an EA which has some includes. There are already opened in the same editor. Now I see the errors and warnings. If I (double-?) click on one of them the cursor is placed right where the error...
1...334335336337338339340341342343344345346347348...1244