Dale, Couldn't find even MS code last time I looked, but [though I haven't really analyzed it] Jeff's code should be able to issue buy/sell on the cross, just have it print only when the close crosses the SAR -- changing the ending --------------------- if buysell = 0 then println symbol, " , Buy @",SAR:6:2; endif; if buysell = 1 then println symbol, " , Sell @",SAR:6:2; endif; ---------------------- to [sort of, no firm guarantee ;)] -------------------- if SARp > close(j-1) and SAR < close(j) then println symbol, " , Buy @",SAR:6:2; endif; if SARp < close(j-1) and SAR > close(j) then println symbol, " , Sell @",SAR:6:2; endif; --------------------
Should further compare the output to MSWIN to be sure that the 1st two matches were more than fortuitous. Think I found more re the initialization conditions on the Aspen site, but it's been a while.
Bob |