Ok, Ive had a chance to look at your code and it does nice plots 
showing the buy and sell arrows. However, and I don't know why, I can't 
get it to produce buy sell results in a backtest. Possibly I am 
not "calling" the function pfsig(box) correctly. Can you help me 
understand how to produce actual buy and sells in automatic analysis?

using the following code ( or several other variations ) converts your 
impulse buy and sell signal to a state function, buy it will not 
produce actual buy & sells!??

Onbuy = Buy;                                    
Onsell = Sell;
Onbuy = Flip(Buy,Sell);                                 
Onsell = Flip(Sell,Buy);

buy = onbuy;
sell = onsell;          

Thanks again
Larry

Reply via email to