[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 751

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
The bug is obvious; it opens positions on every tick, since the losing order in the history is not going anywhere, so it finds it on every tick and fills the values of the control variables with the same values, and then the block of opening deals triggers.
How to make it so that it would not look for it again, or rather would not look for something that has already been worked out
How do I make it so that it does not look for it again, or rather does not look for something that has already been worked on?
Take out this block:
And replace it with this one:
It differs in that, among other things, it remembers the ticket number of the last losing trade, respectively, checks it, and does not allow opening by the same signal.
Throw this unit away:
Thank you so much for the test. It seems to be working.
Something like that, I guess.
SZY The code insertion button "SRC" is awkward to use, it's not easy to read.
Thank you very much ! I wrote int for UseHourTrade2 instead of boole ))
Good afternoon, friends.
I would like to consult with you on this issue:
I am currently working on an indicator, which transfers to the window of the first currency pair readings (ZigZag), formed on the second currency pair.
But, I have encountered a problem:
for example, if there is a big "gap" in quotes: one pair is quoted as 1.4237, and the other as 0.8345, then these indicators appear "scattered" across the screen, which is not very convenient visually ...
How would you perform conversion of indicator "coordinates" from the second pair, taking into account quotes of the first pair (how to make the price "relative")?
Thank you very much in advance for the advice, recommendation.
Good afternoon, friends.
I would like to consult with you on this issue:
I am currently working on an indicator, which transfers to the window of the first currency pair readings (ZigZag), formed on the second currency pair.
But, I have encountered a problem:
for example, if there is a big "gap" in quotes: one pair is quoted as 1.4237, and the other as 0.8345, then these indicators appear "scattered" across the screen, which is not very convenient visually ...
How would you perform conversion of indicator "coordinates" from the second pair, taking into account quotes of the first pair (how to make the price "relative")?
Thank you very much in advance for the advice, recommendation.
Look at the link. The scaling itself is done there in an original way.
https://www.mql5.com/ru/code/7933
Hello!
Can you tell me how to simplify this?
if (Balance > 600)
{
Lot_mod = 0.1;
}
if (Balance > 700)
{
Lot_mod = 0.11;
}
if (Balance > 800)
{
Lot_mod = 0.12;
}
if (Balance > 900)
{
Lot_mod = 0.13;
}
And so on.... Because it's too sprawling in this form.
Thank you!
Hello!
Can you please tell me how this can be simplified -
And so on.... It's too sprawling in this form.
Thank you!
An equation of the form y=a*x+b will help
Hello!
Could you please tell me how to simplify this -
Lim1, try it like this: