[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 509

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
There's only one thing left to do, invite him to invest our accounts! :))
Hello.
We need the function that calculates the lot in increments. What would be possible to adjust, for example, for every 500 come increase lots
So depo 1000 - lot 0.1
Depo 1500 - lot 0.15
2000 - lot 0.2
Please post the function.
Good morning! What does the gap condition mean? When the price goes 35 pips up, my stoploss moves 10 pips below the order, i.e. its distance from the price is 45 pips.
Or what kind of gap are we talking about?
Hello.
You need the function to calculate the lot incrementally. That would be possible to adjust, for example, for every 500 lot increase
So depo 1000 - lot 0.1
Depo 1500 - lot 0.15
depo 2000 - lot 0.2
Please post the function.
It is possible without functions:
Hello.
We need the function that calculates the lot incrementally. That would be possible to adjust, for example, for every 500 lot increase
So depo 1000 - lot 0.1
Depo 1500 - lot 0.15
Depo 2000 - lot 0.2
Please post the function.
You could do it this way:
just don't forget to normalize the lot.
Good morning! What does a gap condition mean? When the price goes 35 pips up, my stoploss moves 10 pips below the order, i.e. its distance from the price is 45 pips.
Or what kind of gap are we talking about?
Good morning, refreshed head!
While we are sending, receiving and executing a modification order, the price is not standing still, up or down, who knows!
And for Sall it's appropriately the other way round! Good luck figuring it out without commentary, which is redundant in my opinion!
And, please, look in the Russian explanatory dictionary, so that your posts are more readable.
I look it up sometimes, as I've been thinking in a different language for over 10 years now and am not up to date with your "innovations"... :))
Good afternoon! Order modification error 4051. I've been thinking for an hour. Seems to be the right parameter there!!! Briefly, note by note. The parameter price is the opening price of the order, OrderOpenPrice(), it is standard.
Our stop price is 10 points below the open price, and we have memorized the price. We store it in the variable tsena when opening the order.
We have two orders, one with a profit and one without. It seems to be clear. What is the error? What else could it be?
Yes, the condition seems to be clear, although it is not really relevant. I.e., price has moved by 30 points, the condition worked (tsena+30*Point).
We set perenos=true once; These conditions actually seem to work.
I don't know how to think about it.
Actually Wear once perenos=true; These conditions didn't have to be observed, as it didn't wear anywhere.
This line:
and then using (not on this tick) this variable to modify an order with tick = 0 (the variable will be reset), shows that you don't know the basics - start with the concepts of local and global variables.
And opening a copy of just opened order after 2 seconds - THIS IS THE HIGHEST PILOTAGE!!! - i'm crying... :)))