Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1698
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
I haven't written code in a while, who can help me figure it out, I need a count with zeroing
We have a variable
tickCount = the number of trades written to it in the course of a trading session, something like a count of trades with a constant increase, at the beginning of a new session a new count starts.
We need a working variable
It would also contain duplicated trades, but every 100 trades it would be reset and calculation would start again.
I actually can't figure out how to implement it in code.
Variable tickCount >=100
KillCount is now zero and counting starts over from zero
tickCount >=200
KillCount became zero and counting started again from zero
We need a working variable
It would also duplicate trades, but every 100 trades it would get zeroed, and new counting would start again.
I actually can't figure out how to implement it in code.
Variable tickCount >=100
KillCount is now zero and counting starts over from zero
tickCount >=200
KillCount turned to zero and counting started over from zero
If I understand the problem correctly, then:
If I understand the problem correctly, then:
The right thing to do is probably
The person needs to reset and start again.
Although I think it would be better to make a variable
Then you can freely change the value.
A person needs to reset and start over.
Man needs to reset KillCount when tickCount has become a multiple of 100.
The right thing to do is probably
The person needs to reset and start again.
Although I think it's better to make a variable
Then you can freely change the value.
So tried to do, it comes to 100, zeroed and is zero, and need when the main variable went to 101 102 103 on the working rescounting went 1 2 3
I am racking my brains ))))
I tried it, it reaches 100, it returns to zero and remains at zero, and I need it to re-count 1 2 3 in the main variable 101 102 103 in the working one.
I am trying to figure out how to do it ))))
Good day, here is a set of standard functions to display text labels on a price chart Can you tell me how to display a variable or a value of a function, say OrdersTotal() on the chart????
I tried it, it reaches 100, it returns to zero and remains at zero, and I need it to re-count 1 2 3 in the main variable 101 102 103 in the working one.
I am trying to figure out how to do it ))))
If you don't go into the tickCount calculation, it should look like this
I tried it, it reaches 100, it returns to zero and remains at zero, and I need it to re-count 1 2 3 in the main variable 101 102 103 in the working one.
I am trying to figure out how to do it ))))