Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 724
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
If I understand the problem correctly.It's not clear where n should be taken from...
Thank you for your feedback! The number of open orders is equal to n. When the signal to open is repeated, the requirement to have a profit in already open positions increases. Thus, I avoid unreasonable drawdowns. It is solved simply in the loop but it is not convenient to insert it into the opening conditions. I need sort of a "factorial" but it should be summing, not multiplying!
I see. Well, I would do it that way if the number of orders is limited to 5. The scroll in this case is the fastest way.
Ouch ;) ?
I see. Well, I would do that if the number of orders is limited to 5. A sweep is the fastest way in this case.
Ouch ;) ?
Just don't want to be restrictive, so I'm looking for some kind of formula. Maybe it will come to me in time, but without a sweep and a loop!
Ouch ;) ?
О! Thank you very much! That's closer and easier! I'll experiment with this, as I understand the array. But it won't be possible to do indefinitely with the number. Or you could if n==2, then take the 2nd member, and if n==6 or more, then put more members in the array. I hope I got it right!
Yes, the array can be made deliberately bigger, for example, measuring 100 or more - the number of orders you are unlikely to get, but it will still be limited.
If you want to get it without limits, you will only need a loop. Make it a separate function, it will be normal to call it in any place. There will be a speed loss: unfortunately, there are no inline Functions in MKL.
It's got me))