I combined them but got no 'Hanger' hits. Another typo?
Bob --------- //exchange = nyse, amex, nasdaq; input = "50k.lst"; string CndlType; float maxPr, minPr, top, upper; integer tbar; tbar := 0; output = "hammer.lst"; minPr := 5; maxPr := 20; top := .33; upper := .05*range(tbar); DaysToLoad = 100 -tbar; Daysrequired = 100 - tbar; set Stochastic = 15,3,3; printhdrln " Symbol,CType,Stoch%D,MACD,tbar,date"; if close(tbar) <= maxPr and close(tbar) >= minPr then if open(tbar) >= high(tbar) - top*range(tbar) and close(tbar) >= high(tbar) - top*range(tbar) and range(tbar)> 0 and open(tbar) != close(tbar) then if StochasticPctD(tbar) < 20 and low(tbar) < min(tbar-1,tbar-3,lo) then println symbol,",","Hammer",",",StochasticPctD(tbar):4:3,",", MACD(tbar),",",tbar,",",date(tbar); endif; if StochasticPctD(tbar) > 80 and high(tbar) > max(tbar-1,tbar-3,hi) then println symbol,",","Hanger",",",StochasticPctD(tbar):4:3,",", MACD(tbar),",",tbar,",",date(tbar); endif; endif; endif; |