Code that Displays 'Pips' Won/lost on the chart from a Backtest
Forums › ProRealTime English forum › ProOrder support › Code that Displays 'Pips' Won/lost on the chart from a Backtest
- This topic has 4 replies, 3 voices, and was last updated 5 years ago by VPT PRT.
-
-
11/21/2018 at 11:30 PM #85446
Hi Everyone,
First post here so hello!
I’ve been using PRT since about 08 but have never some across a code that might do the following (If its possible at all within the PRT architecture).
Is there a way of coding PRT to plot on the price chart the P/L (in Pips or Points) won or lost for every trade that is included in any one backtest?
I greatly appreciate your replies.
Ross
11/22/2018 at 9:11 AM #85453Welcome to the forums.
I have moved your topic to the correct forum as you posted in a forum dedicated to PRT platform support whereas your question is regarding strategy backtesting which is more of a ProOrder question.
Please try to post in the most relevant forum with any future topics. 🙂
11/22/2018 at 9:23 AM #85454A simple way to see the change in equity after each position closure is to simply add this to the bottom of any strategy:
12winloss = strategyprofit - strategyprofit[1]graph winlossYou will then get a separate window that shows one bar later the change in equity as a graph. Hover over any peak or trough to see the value of the last closed trade.
11/22/2018 at 2:21 PM #85490This blog post could also be of interest: Display profit and loss on price chart with a custom indicator
11/23/2018 at 11:29 AM #85565 -
AuthorPosts
Find exclusive trading pro-tools on