# Useful and Exotic Techniques for Automated Trading

This technique can be used not only for martingale, but also for any other strategies that have a sufficiently high trading frequency. In this example, I will use the metric based on the balance drawdown. Because everything related to balance is considered easier. Let us divide the balance chart into rising and falling segments. Two adjacent segments form a half-wave. The number of half-waves tends to infinity as the number of transactions tends to infinity. A finite sample will be enough for us to make the martingale a little more profitable. The following diagram explains the idea:

The figure shows a formed half-wave and the one that has just begun. Any balance graph consists of such half-waves. The size of these half-waves constantly fluctuates, and we can always distinguish groups of such half-waves on the chart. The size of these half-waves is smaller in one wave and is larger in the other. So, by gradually lowering the lots, we can wait until a half-wave with a critical drawdown appears in the current group. Since the lots of this critical drawdown will be minimal in the series, this will increase the overall average metrics of all groups of waves and, as a result, the same performance variables of the original test should also increase.

For implementation, we need two additional input parameters for the martingale:

{ DealsMinusToBreak } - the number of losing trades for the previous cycle, reaching which the starting lot of the cycle should be reset to the starting value
{ LotDecrease } - step for decreasing the starting lot of the cycle when a new cycle appears in the history of trades
These two parameters will allow us to provide increased lots for safe half-wave groups and reduced lots for dangerous half-wave groups, which should, in theory, increase the above mentioned performance metrics.

Would be interesting to see this in action!

Definitely it willâ€¦ would you like to get my complementary learnings?

Oooh. I was actually hoping to see how you use it for your trades. Donâ€™t you have plans of creating something like a journal here, just to show how it works?

I do have that as well

Niceee. Iâ€™d look forward to that too. Haha.

1 Like

Hi,

Do you mean complementary as in â€śthat go along with this conceptâ€ť or do you mean â€ścomplimentaryâ€ť as in â€świth no obligations to payâ€ť?

I mean the Free of Cost thing.

Thanks for the quick reply. I am interested to see more. In my opinion, Martingale is a dead duck - it may just live to a ripe old age before it dies. But any â€śstatistical analytical lipstickâ€ť that could push it towards a positive edge should be of interest to everyone.

We look forward to learning more.

1 Like

I am afraid I do not understand the idea behind the first post.
Could you please present the algorithm or code or demo example?

Sure mateâ€¦ Just follow me I will share my input time to time basis