
Max drawdown tradingview code#
If you are very new to tradingview platform then follow this tradingview tutorial // This source code is subject to the terms of the Mozilla Public License 2. If you are a regular tradingview used and find it useful do let know in the comment section. Here is a simple Tradingview Pinescript code which plot both Equity Drawdown and MaxDD. In the above State Bank of India Daily Charts current drawdown shows the value of 23%(Red Area) from the most recent peak value and the Max Drawdown (MaxDD) is 61%(blue line) which occurred during the 2008-2009 economic crisis period. Recent value which is plotted in blue lines reflect the maxmium drawdown in the entire data set. Max Drawdown is the Maximum incurred drawdown among the entire data series. Recent value always informs how much the trading instrument is off from its recent peak value in percentage terms. Red Area Charts represents the Drawdown of that particular trading instrument/index. A drawdown is usually quoted as the percentage between the peak and the subsequent trough. This drawdown graph is very interesting and this is the axis on which we measure the drawdown. Author of Marketcalls.in and Co-Creator of Algomojo (Algorithmic Trading Platform for DIY Traders) Equity Drawdown and MaxDD – Tradingview Pinescript CodeĮquity Drawdown is a measure from the peak-to-trough decline during a specific recorded period of a stock/index/commodity/currency. Let us take a look at the drawdown graph here. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Strongly believe that market understanding and robust trading frameworks are the key to the trading success.

Designed and published 100+ open source trading systems on various trading tools. Using Market Profile and Orderflow for more than a decade.

Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Rajandran R Follow Telecom Engineer turned Full-time Derivative Trader.
