[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 157
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
Friends, can you tell me what I need to do to output a 5-digit price? For example, I'm writing a case like this:
int Quant_Bars=15;
int Ind_max =ArrayMaximum(High,Quant_Bars,1);
double Maximum=High[Ind_max];
Alert("Максимум = ",Maximum);
And it prints out the price with four decimal places.
Thank you in advance))
And you put this function in which place of the code?
I'm in the early stages of writing my code... So there's nowhere to put it in....
Can you explain me childishly how to calculate the number of orders with magic number?))
Friends, can you tell me what I need to do to output a 5-digit price? For example, I'm writing a case like this:
int Quant_Bars=15;
int Ind_max =ArrayMaximum(High,Quant_Bars,1);
double Maximum=High[Ind_max];
Alert("Максимум = ",Maximum);
And it prints out the price with four decimal places.
Thank you in advance))
Have you tried DoubleToStr()?
I'm in the early stages of writing my code... So there's nowhere to put it in....
Can you explain me childishly how to calculate the number of orders with magic number?))
The easiest way is to look here https://book.mql4.com/ru/
Please help me. I don't understand a damn thing.
If during the visual testing of the EA 1.mq4 (attached) I put a 3-cci indicator (attached) on the chart, then, as it seems, with exactly the same parameters of calculated cci signals of the indicator and the actual cci (object text in the upper right corner) do not coincide.
WHY?
And for some reason the alerts in this indicator don't work.
I'm in the early stages of writing my code... So there's nowhere to put it in....
Can you explain me childishly how to calculate the number of orders with magic number?)
An Expert Advisor (in its simplest form) consists of several parts.
First, the external parameters and global variables are set.
After that, the initialize and deinitialize functions usually come.
After that, the START function is executed, in which the main working algorithm of the Expert Advisor is set.
Second, the auxiliary, user-defined functions come next.
These user-defined functions are used (called) in the START function as required.
Here is something like this:
I hope you don't have any questions like this now!
One more question: is it possible to place a pending order from an open position, not from the current price?
Thanks in advance)
Of course you can. We only need to make sure that this pending order is placed at such a distance from the current price so as to meet the Stop Levels set by brokerage companies.
For example, if a pending order is placed 100 pips away from the last order opening price, but it gets too close to the current price, the log will return an error 130 to open the order.
You can do it of course. We only need to make sure that this pending order is placed at such a distance from the current price so as to meet the Stop Levels set by brokerage companies.
For example, if the order is set at the distance of 100 points from the last position opening price, but it gets too close to the current price, the log will return an error 130 to open the order.
How, if it's not a secret?