Thanks @backtrader for your reply.
Today I am working on this part but I am confused and I am not sure doing the right thing.
I try to explain the goal, maybe you can give me your opinion and put me on right road.
I have a simple channel breakout strategy made by 2 indicators (entry channel breakout, exit channel breakout). The strategy backtested uses the entry channel breakout to enter the market long or short and then uses the "exit channel breakout" to close the position.
Now I will run the strategy (the original strategy or the SignalStrategy) every day on latest XX bar and I want to send an email when the entry signal is fired and another when it is time to exit.
Actually I was thinking to use original strategy and use order generated as "signals", what do you think?
And if it looks like acceptable how can I access the current order situation and type (long/short)?
On the other side, formula you are using will not give you a picture shown, it will be only a channel moving together with the close price. It will never cross the price. Hope you understand it and this formula is only first step.
Some time ago in order to develop similar picture I developed stop loss/take profit observer. Here is the link, hope it might help