Update - Build 101
This build contains many updates addressing various issues which surfaced during the ongoing beta test. Most of the changes are contained and featured in the strategy version of this script. The study (this script) mirrors those changes where applicable. Please use strategy version 475 with study version 101 as a matched set. Thank you all for your valuable input.
Pyramids
The precision of the pyramid entry point has been improved in this build. This change results in overall less number of pyramid trades but at better prices. Correspondingly, lower draw-downs are also noted over the course of the backtest period. Although the pyramid count can be increased to any number in the Properties tab, the Trend-V2 script is internally fixed at a maximum value of 5 pyramids. The total number of trades in an open position will not exceed a maximum of six trades regardless of the pyramid value in the TradingView properties tab. That is, the original trade plus five pyramids.
Indirectly, the “Pyramid Bale Out Offset” is also affected by this change in that the overall “weight” of the pyramid has been reduced in most cases. Whether a pyramid trade exits early or not is determined by the size of the trade and the minimum gain specified in the “Pyramid Bale Out Offset” field. Since a backtest now has fewer pyramid levels a backtest position may not exit at the same price as previously tested.
Summary Report
Additional fields are added to the summary report in this build. The strategy version contains a margin call indicator which can used to stress test the simulated account capital. The script summary report is the navy blue label that shows up at the live end of the chart. It contains useful information not produced in the TradingView performance report. The summary report has two sections the upper and lower. Elements of the lower section can be used to compare the study with the strategy version. The upper section contains elements useful in live trading.