I have discovered Quantconnect last week and I'm quite pleased and amazed with the amount of information available and the stuff you can do with it. Also the democratization of such technology I can only applaud. I'm a newbie both to investing and python (I only started learning python two weeks ago).

I tried to apply the trailing stop loss of the tutorial in both going long and short.

For long it seems to work but I can't make out if it is triggered for the short as well. Can any of you give me a shot in the right direction?

In addition is it possible that Candlestick Patterns do not work with quotebars and only tradebars? Is there a specific reason for this?

It seems to work however for single candle patterns (like doji)... Is there any way to use a consolidator to make multiple candle patterns work for quotebars?