Plot on the chart value from CBT portfolio

Hi, I tried to plot a value from portfolio custom backtest to the chart. Could not do it (.

if (Status("action") == actionPortfolio)
{
bo = GetBacktesterObject();
bo.PreProcess();

for (bar = 0; bar < BarCount; ++bar)           
{	   
	for	(Openpos = bo.getfirstopenpos(); Openpos; Openpos = bo.getnextopenpos())   
	{
			ATRLvl = StaticVarGet(openPos.Symbol + "TargetATR");       
			AverageEntryPrice = openPos.EntryPrice;  
			ProfitP = AverageEntryPrice + (ATRLvl[bar]);

Can I plot ProfitP somehow on the chart? This strategy is for portfolio, not individual symbol.

Your account is 1year + old.

Your user account isn't marked with License verified badge. Did you purchase AmiBroker license?

Only users with License verified badge are allowed to post on this forum.

So before posting, make sure you verify your license as explained here.