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
I'm not OTK:) Test on orders in the tester or on a demo account.
What is QA ?
It turns out that to avoid redundancy in 99% of cases you must still write all code manually...
Well, I'm talking about adequate balance, and you can't avoid redundancy in TRANSFORM code at all. I stopped on such a matryoshka of 3 structures
It is filled in during one pass, it is updated when the bot makes a transaction or the number of orders changes. The redundancy is on the edge here, I think. It is enough for me in 90% of cases but it doesn't solve your problem; you need a separate function
Suppose the second highest price order goes first, it is stored in price_max, then the first order is overwritten by price_max and the second order is lost,
no, we do not lose the second order; the maximum order is written first
If the second order is higher, it is overwritten if it is lower, then the second condition works
the ticket is checked, if it is not the maximum but the top one, then it is the top one before the maximum one.
Well, I'm talking about adequate balance, and you can't avoid redundancy in TRANSFORMAL code altogether. I settled on such a matrix of 3 structures
It is filled in during one pass, updated when the bot makes a deal or the number of orders changes. The redundancy here is too much for me in 90% of cases but it doesn't solve your problem; you need a separate function
So, you put two structures in a third ...
Your method of filling all structures is interesting ...
There is no quicker way. If you want faster, you need to think about the whole EA algorithm, maybe you can get rid of the need to look for two low, two high on every tick.
I must admit that your method of finding orders is more stable than mine in some cases, now I'm doing tests and depending on the order opening position your method works without errors... My method does not work correctly in some cases...
I wrote about this yesterday. Depends on which order was opened.
I wrote about this yesterday. Depends on the order in which you opened it.