Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 526
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello all!!! Who can help with a problem? There is a simple arrow drawer for buying and selling
What code should be added to it to make these arrows count for a given period of time
And the figures were printed near the price for a couple of bars to the right and 10-15 points up and down, zeroing of figures occurs when
When a new period arrives. Please help very much needed.!!!! Thanks in advance to all who will respond!!!!!!!!!!
Hello all!!! Who can help with a problem? There is a simple arrow drawer for buying and selling
What code should be added to it to make these arrows count for a given period of time
And the figures were printed near the price for a couple of bars to the right and 10-15 points up and down, zeroing of figures occurs when
When a new period arrives. Please help very much needed.!!!! Thanks in advance to everyone who responds!!!!!!!!!!
Show me the code! This will make it clearer.
In the meantime, on the level of logic, try the following variant: enter 2 additional variables with value 0, and display their values on the screen. And with each successful signal to "draw" the arrow, add +1 to the corresponding variable.
The code, please! This will make it clearer.
In the meantime, at the level of logic, try the following option: enter 2 additional variables with value 0, and display their values on the screen. And with each successful "drawing" of the arrow you should add +1 to the corresponding variable.
The code is like this:
To be honest, I'm not good at programming :( I can create variables, but how to display them on a chart, and even near the level of price.... this is hard for me :)
The code is like this...
To be honest, I'm not good at programming :( I'll create variables, but how to display them on a chart, and even near the level of price.... that's a tough one for me :)
Fix your post! Enter the code text using the SCR button. That's what the Moderators are swearing about!
The code is like this:
To be honest, I'm not good at programming :( I can create variables, but how to display them on a chart, and even near the level of price.... this is hard for me :)
Read in the help about the Comment() function
Correct your post! Enter the code text using the SCR button. That's what the Moderators are swearing about!
all corrected:)
all fixed:)
I've read about the function, but how do I relate it to a time period? Suppose I make a variable time period input int time_period=30; and what do I do next?
Maybe count the number of candles? After all, for M1 it would be 30!
Hello! Please explain to me a fool why in MQL, a case sensitive language, the following program code is executed
int start() // Special function start()
{
int A=3; // First cathetus
int B=4; // Second cathetus
int C=Gipo(A,B); // Calculation of hypotenuse
Alert("Hypotenuse = ", C); // Message to screen
return; // Function exit operator start
}
//--------------------------------------------------------------------
int Gipo(int a, int b) // User's function
{
int c2=a*a+ b*b; // Sum of squares of cathetuses
int c=MathSqrt(c2); // Hypotenuse
return(c); // Function exit operator
}
Hello! Please explain to a fool why in MQL, in a language where case-sensitive variables are used, the following program code is executed
int start() // Special function start()
{
int A=3; // First cathetus
int B=4; // Second cathetus
int C=Gipo(A,B); // Calculation of the hypotenuse
Alert("Hypotenuse = ", C); // Message to the screen
return; // Exit operator of the start function
}
//--------------------------------------------------------------------
int Gipo(int a, int b) // User's function
{
int c2=a*a+ b*b; // Sum of squares of cathetuses
int c=MathSqrt(c2); // Hypotenuse
return(c); // Function exit operator
}
because you are passing data into the function, not variables.
You can at least write it like this