Solved! The above works as intended laugh

EDIT: quick question though if I may. For intraday timeframes, is it best to set TimeFrame = 1 or TimeFrame = frameSync(1) after building the indicator/signal series?
Also, I am now getting multiple trades on a single bar on the higher timeframe. Say a signal arrives on M15 @ 8:00, we celebrate and open a trade from TimeFrame = 1 (ie BarPeriod). However, as BarPeriod = 5, at both 8:05 and 8:10 more trades are opened as we are still inside the 8:00 M15 candle.
I see that TradesPerBar is a thing but do we have a TradesPerCandle equivalent? I can't find one so I'm guessing no. How then can we limit trades by candle instead of bar.

Last edited by BobbyT; 07/17/17 23:04.