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
The first one on x is SL and the one on y is TP.
I think the left is the positive zone and the right is a random hit... Well SL on euro quid can't be 190 or more for M5 period...
and accordingly.
Watch out, don't get carried away with martingale. The EAs were bespoke, I just warned them that I would put them out there. I don't like this technology. It's very risky. You may use it when the probability of a good outcome is quite high. The only thing left to do is to create such a mechanism.
But a little testing is possible .... The result, by the way, is close to my algorithm. So I won't tear my hair out... But I want to get acquainted.
And how well it all started...
But if the drawdown is > 50% ... I don't know who would risk investing. Looks like we should have used it as it is. Yet another example of the new being the enemy of the best...
After banging your head (stubbornly) against the table, the lot size calculation function takes the following form
where MaximumRisk - part of capital (calculated as 1/MaximumRisk) that can be used when opening a position.
The necessity to divide and multiply by step is gone, because this function doesn't discard fractional parts, but rounds them off according to mathematics rules. Now the lot is calculated with the margin value, which decreases the risk. The "lot=MathMax(MathMin(lot,maxlot),minlot);" line will try to open a position of the minimum lot size (usually 0.1) anyway, which will increase the risk of the operation. You may want to disable it altogether. Again, it will only appear with insufficient deposition.
Once again I want to thank Viktor for the provided source code...
After banging your head (stubbornly) against the table, the lot size calculation function takes the following form
Where MaximumRisk - part of equity (calculated as 1/MaximumRisk) that can be used to open a position.
There is no need to divide or multiply by step, because this function does not cut off fractional parts, but rounds them off according to mathematical rules.
Remember, not all brokerage companies have a lot increment of 0.1, there are other variants.
Then it must be like this... (not sure about the '0' in the rounding function)
I don't understand why the opening of the position was put in a separate function. One command can be executed locally... Or it's a scrap of something bigger... ТР and SL are transmitted not in that sequence in which they are in OrderSend... Thank goodness they are received as they are transmitted. Certainly not a big deal, but ....