svlukinova: Please help. Since yesterday, to be exact from 22:59, stopped charts and still no updates and the rate and hangs since yesterday without change. I already reset everything. I don't know where to click to get the exchange rate back to real time.
The market is resting - so should you.
The market opens on Monday in Tokyo. Closes on Friday in Chicago. Opens around 2 a.m., closes around 10 or 11 p.m. (Moscow or Kievtime zone ). Saturday/Sunday is a weekend.
Good afternoon! Can you please tell me why the indicator line is not displayed, the code seems to be elementary and nothing complicated. I checked it with Print (T_V) - it gives the value, but the line is not displayed for some reason?
I would like to add a question. I have deleted the indicator and put it on a chart again and the line is displayed. Why is the indicator not recalculated during compilation?
#property indicator_separate_window#property indicator_minimum -3#property indicator_maximum 3#property indicator_buffers 1#property indicator_color1 Red#property indicator_level1 0.0//горизонтальный уровень N в отдельном окне индикатора, где N от 1 до 8 #property indicator_levelcolor Black // цвет горизонтальных уровней индикатора е #property indicator_levelwidth 1//толщина горизонтальных уровней индикатораdouble T_Vol[];
int init()
{ SetIndexBuffer (0, T_Vol);
SetIndexStyle (0, DRAW_HISTOGRAM, STYLE_SOLID, 1);
IndicatorDigits(Digits);
return(0); }
int start(){
int limit;
int сounted_bars=IndicatorCounted();
if (сounted_bars==0) limit=Bars-1;
if (сounted_bars>0) limit=Bars-сounted_bars-1;
for(int i=limit;i>=0;i--){
int T_V=0;
if (Volume[i]>Volume[i+1])T_V=1;
if (Volume[i]<Volume[i+1])T_V=-1;
T_Vol[i]=T_V;
}
return(0);
}
I've been studying programming as an amateur, I haven't programmed for a long time, so I have a question:
Why do I need breakpoints in MQL4, if after setting them nothing happens at compilation? I used to program a lot in C#, where there was a pause in program execution and you could see the values of variables, which functions were called and errors listed. But here I press Compile and nothing happens. Or you may enable Debug somehow, I just don't know how?
there is a function "double MathRound( double value)", but I need the rounding to a larger decimal fraction, and if the number is integer or already decimal, then leave it alone.
For example: 1) 0.744 round to 0.8; 1.233 round to 1.3
You can translate a number into a string and write a function to process the characters of this string. It's not complicated here - we only round up if the number has more than one digit after the decimal point.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Please help. Since yesterday, to be exact from 22:59, stopped charts and still no updates and the rate and hangs since yesterday without change. I already reset everything. I don't know where to click to get the exchange rate back to real time.
The market is resting - so should you.
The market opens on Monday in Tokyo. Closes on Friday in Chicago. Opens around 2 a.m., closes around 10 or 11 p.m. (Moscow or Kievtime zone ). Saturday/Sunday is a weekend.
The market rests - so rest you.
The market opens on Monday in Tokyo. Closes on Friday in Chicago. Opens around 2 a.m., closes around 10 or 11 p.m. (Moscow or Kiev time zone)
There is no function, but it can be made in MQL4 + WinAPI.
Good afternoon! Can you please tell me why the indicator line is not displayed, the code seems to be elementary and nothing complicated. I checked it with Print (T_V) - it gives the value, but the line is not displayed for some reason?
I would like to add a question. I have deleted the indicator and put it on a chart again and the line is displayed. Why is the indicator not recalculated during compilation?
1.
What is the value of the variable "SignalBar" and is the indicator calculated on this bar?
Perhaps SignalBar=0 and the indicator does not calculate the 0th bar.
2.
Yes, during visual testing the indicator buffers are not displayed until the testing is completed or interrupted. But the indicators do count.
Thanks for pointing it out! But nothing helps so far :(
So now I`m studying the indicator migration in Expert Advisor. If you have any wise advice, I won't refuse it ! :)
Hi all!
I've been studying programming as an amateur, I haven't programmed for a long time, so I have a question:
Why do I need breakpoints in MQL4, if after setting them nothing happens at compilation? I used to program a lot in C#, where there was a pause in program execution and you could see the values of variables, which functions were called and errors listed. But here I press Compile and nothing happens. Or you may enable Debug somehow, I just don't know how?
there is a function "double MathRound( double value)", but I need the rounding to a larger decimal fraction, and if the number is integer or already decimal, then leave it alone.
For example: 1) 0.744 round to 0.8; 1.233 round to 1.3
2) 0.9 or 3 or 1.5 do not touch.
I wonder if you even know that there is a complete and detailed Documentation of the language?
NormalizeDouble
I wonder if you even know that there is a complete and detailed Documentation of the language?
NormalizeDouble
upwards, it's a bit simple, isn't it...?
You can translate a number into a string and write a function to process the characters of this string. It's not complicated here - we only round up if the number has more than one digit after the decimal point.