Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 669

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
Maybe someone has done this: there are several open orders (let's say 4) of which let's say 2 with a positive profit and 2 with a negative profit. We should draw a matrix of combinations of sums of profits (for example, 1 positive and 1 negative, 1 positive and 2 negative, 2 positive and 1 negative, etc.). Then identify those combinations that add up to a given profit (positive of course) and close those orders.
tara:
I have not tried the transport task
Please clarify what the "transport task" is.
Может кто делал такое: есть несколько открытых ордеров (пусть 4) из них пусть 2 с положительным профитом и 2 с отрицательным профитом. Необходимо составить матрицу сочетаний сумм профитов (наприменр, 1 положительный и 1 отрицательный, 1 положительный и 2 отрицательных, 2 положительных и 1 отрицательный и т.д.). Затем выявить те сочетания, которые в сумме дают заданный профит (конечно же положительный) и закрыть эти ордера.
borilunad:
Make a loop for all necessary calculations for any number of orders and output the results in Comment!
Clearly for any number. But we have to run through ALL possible combinations! HOW?
ikatsko:
I suspect that the loop will take a long time to execute. I can't even imagine how many possible combinations, e.g. with 6 orders open, although I'm sure there's a mathematical formula for the number of combinations/options 9whatever you want to call it). But if we make a matrix of sums of these combinations and mark them with some sign when a particular sum satisfies the conditions, and bind order tickets to this sum (multidimensional matrix, IMHO), it would seem to be faster.
I only make calculations based on the "number" of orders that are actually open. But there is always a price at which there will be zero profit, another price at which we reach the desired profit to close all positions, and the price that will lead to the maximum allowable loss!
The cycle works instantly, on every tick all values change, and does not slow anything down!
ikatsko:
I suspect the cycle will take a long time to complete. I have no idea how many variants are possible, for example, with 6 orders open, although I'm sure there's a mathematical formula for the number of combinations/variants (whatever you want to call them). But if we make a matrix of sums of these combinations and mark them with some sign, when a particular sum satisfies the conditions, and bind order tickets to this sum (multidimensional matrix, IMHO), then it would seem faster to do so.
The combinations of 2 options (plus and minus) out of 6 positions would be 15. Calculator
Can you please tell me how to get and update _tst offline chart? I only have GBP and EUR, they are outdated,I also need AUDUSD, USDCAD, USDCHF, NZDUSD. I need the charts for the Simple Forex Tester. Thank you in advance.
I apologise for writing the same thing for the third time. But this is important to me and my question is quite a nubile one. I ask you, gentlemen connoisseurs, to explain or send me to a place where they will explain. Google search and tried the documentation has not found.
Can you please tell me how to get and update _tst offline chart? I only have GBP and EUR, they are outdated,I also need AUDUSD, USDCAD, USDCHF, NZDUSD. I need the charts for the Simple Forex Tester. Thank you in advance.
I don't think anyone would buy it if they do not have any support.
I don't think anyone would buy their product just to help you understand how it works.
Well, I have a standard MT4 and there are no _tst files.
And you can open any chart from the "market overview" list as a stand-alone chart and even generate a non-standard TF using the PeriodConverter script to open it as a stand-alone one. What exactly is the problem with these charts?