Hi guys,

I am trying to backtest KeltnerChannel, after reading book “The Art and Science of Technical Analysis”. According to statistics from the book free bars for large-cap stocks is only 3.4% of the time. Free bar is a bar which is completely outside of the bands.

I wrote strategy using just OnData/OnOrderEvent where we enter in position when we get a free bar. However, I am setting limit order at the top/bottom of the last bar, and setting another LimitOrder to the bottom/top of the channel in the direction when order get's filled. It seems to be working fine and I even got positive results. Don't have much experience but I've decided to re-write code using AlgorithmFramework. Couldn't find any LimitOrderExecutionModel, so I wrote mine. Unfortunately, I do see some strange fillings, like -2 or +5 shares. Was wondering if anyone tried to write it's own execution model, especially with LimitOrders?