Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1945
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
Not really, I told you how to get around this logical limitation.
Ok, then maybe you can use define to substitute a value into an intu? I tried that too, but it didn't work.
OK, then maybe you can use a define to substitute a value into the intu? I tried that too, but it didn't work.
How can you not understand? Here is an indicator from MT delivery
There are two variables highlighted. We just need to add a useless input variable
Now we have three input variables. This is the one that should be changed when starting the second and the next indicator copies. But it is not used anywhere in the code.
How can you not understand? Here is the indicator from the MT delivery
There are two input variables highlighted. We just need to add a worthless input variable
Now we have three input variables. This is the one that should be changed when starting the second and the next indicator copies. But it is not used anywhere in the code.
That's how I understood it. I was asking about how to do it without hands, automatically. I understand that in documentation it's written that only user can change the incut. But it is not necessary to do something with an intuition. The question is how to apply 2 indicators with the same input parameters. It's also written in the documentation that when removed from a chart, the indicator is identified by its SHORTNAME plus the input parameters (I think, it may be the same during initialization). If the input parameters are the same, I tried to change the SHORTNAME (adding to it each time the number of indicators in the chart). It does not help. But it works somehow in mt4? And I don't change parameters and short-name. So I'm asking who knows how it works?
Can you then explain why this is necessary? After all, the reason for banning such hand-me-downs is obvious, but your desire is unclear. Just for the sake of interest and I wasted my time explaining all this to you, or is there some justified need?
Can you then explain why this is necessary? After all, the reason for banning such hand-me-downs is obvious, but your desire is unclear. Just for the sake of interest and have I wasted my time explaining all this to you, or is there some justified need?
Can you explain the reason for this ban? Inexperience, I do not understand what is so terrible about it. And I need it to write an indicator for sale.
All indicators work in the same thread. Accordingly, each indicator consumes some CPU resources. Put 100500 indicators with the same parameters and what will happen to the terminal? If 300 grams of potatoes are enough to make you happy in the next 20 minutes, but you will have a sack full of them on your shoulders. How do you like it?
All indicators work in the same thread. Accordingly, each indicator consumes some CPU resources. Put 100500 indicators with the same parameters and what will happen to the terminal? If 300 grams of potatoes are enough to make you happy in the next 20 minutes, but you will have a sack full of them on your shoulders. How do you like it?
Can you tell me if I've seen an indicator subwindow drawn in this style somewhere in kodobase?
Can't find it
Good afternoon. I've read about vail. I can't add or subtract.
I can't say anything about money management, I haven't tried it.
I have attached the latest version. But I have already messed everything up for myself)
Order1(2) the selected order's profit
Order1(3) the selected order's lot
I could not understand the code.
I will try to explain. I hope you know the tickets of needed orders, it makes things very easy. The conditions. There is a profit order with a profit greater than zero, there is a loss order with a profit less than zero and greater than the profit profit, and there is a condition for partial closing of a loss order.
In general, if orders are differently directed, you can close through OrderCloseBy without thinking twice. The smaller loss order will be closed equal to the smaller profit order. We only need 2 tickets.
We can make it more complicated, get OrderProfit() (this is money) and OrderLots() (this is the volume in lots) of both orders. Calculate the ratio of profit to loss and close the profitable order and this part in lots of the losing order. Before obtaining the profits and lots of the order, you must first select the OrderSelect.
Can you tell me if I've seen an indicator subwindow drawn in this style somewhere in kodobase?
Can't find it.
See indicators by Scriptor