Hi all,

I was playing around with PlotStart. The instruction says: "..Can be used to start the chart at a certain bar, f.i. 10 bars before the opening a trade.." . And also that I need to put it to : "... the trade trigger code"

The code below does it. But the problem is that it shows only the 1st trade. Do you have advise how do it for all trades?

BTW: it is probably typo in the manual: "..(for this set PlotBar = Bar-10; in the trade trigger code).." Probably was meant PlotStart

Thx!

Code
function run()
{
	BarPeriod = 60;
	LookBack = 250;
	StartDate = 2010;
	EndDate = 2016;

	set(PLOTNOW);
	ColorDD = ColorEquity = 0; // don't plot Equty and drawdowns
	// PlotBars = 1000; // number of bars to plot in the chart

	Stop = ATR(100);
	TakeProfit = ATR(200);

	if (hour() == 13) {
			PlotStart = Bar-10;
			enterLong();
			}

	if (hour() == 21) {
			PlotStart = Bar-10;
			enterShort();
			}
	plot("Stp",TradeStopLimit,DOT,RED);
	plot("Prft",TradeProfitLimit,DOT,BLUE);

}