Thanks JCL

1) From what I can gather from the manual, TradeBarOpen for pending trades is reset to the bar the trade was oped once it reaches TradeEntryLimit. Does this mean plotGraph() should be called immediately after (and before) TradeEntryLimit is hit. Or is there a better way?

2) I saw reference to the order of plot calls in the manual. But I was unable to make much sense of it. Taking the above question into consideration, would the best way to maintain the plot order call, would this be appropriate program structure.

Code:
run
{
while(asset(loop("AUD/USD","EUR/USD")))
while(algo(loop("M5","M15")))
if(algo == "M5")
{
Indicator/signal operations
...
ThisTrade = enterLong();
Generate plot compatible date with calls to year(),month() etc -> pendingDate
plot(signal, "signal", 0, RED);
plotGraph(pendingPrice, pendingDate, TradeEntryLimit, DOT, GREEN);
}
if(algo == "M15")
{
...
} 
}//end run()



Cheers,
BobbyT