I needed to see what the max Drawdown was for a specific security, and so I wrote this script. Maybe others might also find it useful. Here I apply it to the Russel 2000 index. The Russel 2000 index has been gone down quite consistently recently. So someone might wonder how weird is that, and from this index you can see that we are still a long way before the bottom.
This indicator was described by Peter G. Martin and Byron B. McCann in their book "The Investor's Guide to Fidelity Funds" (1989).
EXPERIMENTAL: WARNING: Martingale is subject to HUGE drawdown spikes, use at your own risk! updated function to also double(aply multiplier) on even trades, example with a MA's crossover.
EXPERIMENTAL: WARNING:Martingale is susceptible to huge drawdown spikes, use at your own risk. simple functions for martingale wins and losses, multiplier can be adjusted manually to increase/decrease performance/drawdown.