Hey Nevo Raz,
I played around a little bit and wasnt able to Plot a chart with the consolidated 45 second bars. Tbh I'm not sure if w're even allowed to print so much data into a chart because we have the 4000 limit cap.
Either way, if you try to plot buy and sell signal into candle chart this is one way to do it:
#Initialize
self.candles = Series('Second', SeriesType.Candle)
self.chart = Chart('Candles')
self.chart.AddSeries(self.candles)
self.chart.AddSeries(Series('Longs', SeriesType.Scatter, "", Color.Green, ScatterMarkerSymbol.Triangle))
self.chart.AddSeries(Series('Shorts', SeriesType.Scatter, "", Color.Red, ScatterMarkerSymbol.TriangleDown))
self.AddChart(self.chart)
#After buy order
self.Plot( 'Candles', 'Longs', self.Securities["SPY"].Price - 10)
#After sell order
self.Plot( 'Candles', 'Shorts', self.Securities["SPY"].Price - 10)
You can adjust the position of the triangle by changing the value that you substract by the price.
You will see the buy signals when you clone the algo.
Hope it helps ;)