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
wasn't... wrote...
The ClosePosBySortLots() function.
This function closes positions in order of sorting by lot size. That is, using this function, you can close positions in ascending or descending order of lots sizes. Function ClosePosBySortLots() accepts the following optional parameters:
SZY. Attached is a script to test ClosePosBySortLots() function.
Thank you very much Igor. I will pray for you:-)
Privat
rsi
Thanks for the examples!
Decipher this if you don't mind:
What does it do?er... stop it here... I'm sorry... delete... Creativity is always welcome!
and take the link to the functions from the attachment file...
Please decode this if it's not difficult :
var=Close[0]
What do you want to eat it with?Variable named var is assigned the value of price level of the current bar close (zero number). But since the current bar isn't finished yet, Close[0] is the same as Bid, i.e. the current price.
KimIV
And I kept trying to somehow use marketinfo it turns out to be even simpler ....
Good afternoon.
Igor, do you have a function to implement locking tactics?
On page 45 you gave an example that could be used for this.
But such an approach limits the number of open orders to 1.
If we look at the example, it would look like this
LockStep=20 from open position
LockStopLoss=10
1500 - open Buy\1480 - open sellstop
1470 - open buy\1450 - open sellstop
1460 - close sellstop 1450\open sellstop 1450
1490 - close sellstop 1480\opensellstop 1450
the given function will open two orders sellstop 1450
P.S. Many thanks for your work. There is actually a lot of information and it is very helpful, I have taken most of it on board.
Igor, do you have a function to implement locking tactics?
No, there is no separate function. So you have to combine the existing ones and maybe add some of your own. I advise you to organize the following connection: one pair Buy/SellStop - one magician. Next pair - next magician and so on.
The StringLower() function.
This function converts a string to lower case. All SIGNIFICANT (large) characters become lowercase (small). The StringLower() function accepts only one obligatory parameter - the input string.
SZY. Attached is a script to test StringLower() function.
The StringUpper() function.
This function converts the string to Uppercase. All lowercase (small) characters become Uppercase (large). The StringUpper() function accepts only one mandatory parameter - the input string.
ZS. Attached is a script to test StringUpper().
The StringToArrayDouble() function.
This function splits the string into real numbers, and each number is added to the array as a separate element. As many real numbers appear in the string, the same number of elements will be added to the array. A semicolon is recognized as a separator. The StringToArrayDouble() function returns the number of array elements, and takes the following mandatory parameters:
ZS. Attached is a script to test the StringToArrayDouble() function.