Strategy Multiple Orders + Statistics Template - Educational by Daveatt
By fikira
Performance Metrics
- Author: fikira
Description
Hello tradersIt's been a whileWe're back in a bear market so I have a bit more time to publish new Pine scripts for the TradingView communitySpecial thanks to fikira for his Multiple Orders script (tradingview.com/script/f8ztxAzF-multiple-orders-strategy-educational) and to carnagecain for allowing me to publish this script we worked together onI got widely inspired by fikira's script for that oneThis script is for educational purposes only - I wanted to show how we can add multiple TPs/SL + a table with custom statisticsIn this Strategy template, users can define multiple take-profit and multiple stop-loss levels.Basically, we have 4 trades per trend and each trade has its own SL/TPStatisticsStats are split per trade direction (Long, Short) and then consolidatedI put custom stats in that table such as:- Probability of Win- Probability of Loss- Avg Profit/Loss per Trade- APPT: (Probability of Win * Average Gross Profit) - (Probability of Loss * Average Loss)- Number of times each TP/SL has been hitI'm catching up with all recent pinescript features as we speak - more educational scripts template to come soonBest RegardsDave