Mansor 78 posts msg #143778 - Ignore Mansor |
6/12/2018 1:36:18 PM
After some advise I added pthomas215 scan with 13th & rfr. I cannot figure out how to make the "buy" call to "price crossed above ema(13) within the past 1 day" , I'm not a coder at all. So I added 1st line.
-------------------------------------------------------------------------------------------
price crossed above ema(13) from below within the past 1 day
close is between 1 and 10
average volume(90) above 100000
average volume(10) above 500000
Average Volume(30) above 250000
offset is 0
draw IFT(5,9) and draw IFT(5,9) line at 0
and draw IFT(5,9) line at -.90
add column IFT(5,9)
IFT(5,9) < 0.80
add column separator
set{slope_incr, days(slope IFT(5,9) < slope of IFT(5,9) 1 day ago, 30)}
draw slope_incr
set{slope_pos, days(slope of IFT(5,9) < 0, 30)}
draw slope_pos
set{sort, slope_pos + slope_incr}
set{volcnt, count(volume above 100000, 100) }
set{volzero, count(volume equal 0, 100) }
set{x1, high - open}
set{Long_Profit, x1/open }
set{C1A, count(Long_Profit > .04 , 100)}
set{C2A, count(Long_Profit > .09, 100)}
set{C0010, C1A - C2A}
set{D1A, count(Long_Profit > .09 , 100)}
set{D2A, count(Long_Profit > .19, 100)}
set{D1020, D1A - D2A}
set{E1A, count(Long_Profit > .19 , 100)}
set{E2A, count(Long_Profit > .29, 100)}
set{E2030, E1A - E2A}
set{F1A, count(Long_Profit > .29 , 100)}
set{F2A, count(Long_Profit > .39, 100)}
set{F3040, F1A - F2A}
set{G1A, count(Long_Profit > .39 , 100)}
and add column daychg2
and add column C0010 {4_9}
and add column D1020 {10_19}
and add column E2030 {20_29}
and add column F3040 {30_39}
and add column G1A {40+}
and add column C1A {ttl}
and add column average day range(10) {adr10}
and add column average day range(30) {adr30}
sort column 6 descending
add column industry
add column sector
set{answer, count(ROC(5,1) above 5, 100)}
and add column answer
add column open-to-close gap
add column separator
draw WAIT
draw SELL
draw BUY
draw ema(13)
draw dma(25,-5)
draw ema(50)
add column BUY
add column SELL
add column WAIT
add column both{D2/T3}
add column both2{TSI6}
ADD COLUMN XOVER
ADD COLUMN CROSS
set{OVER, count(TSI(6,3,3) crossed above 0,1) *1}
set{UNDER, count(TSI(6,3,3) crossed below 0,1) * -1}
set{both2, OVER + UNDER}
set{CROSS, 1 - count(both2 equals 0,1)}
CROSS above 0
set{var1, 2 * EMA(9)}
set{var2, cema(ema(9),9)}
set{DEMA, var1 - var2}
set{TEMA, T3(7,1)}
set{xUP, count(DEMA crossed above TEMA,1) *1}
set{xDOWN, count(DEMA crossed below TEMA,1) * -1}
set{both, xUP + xDOWN}
set{xOVER, 1 - count(both equals 0,1)}
add column separator
set{pp_3, CeMA(pp,3) 1 day ago}
set{r_3, CeMA(r1,3) 1 day ago}
set{s_3, CeMA(s1,3) 1 day ago}
set{VAR3, count(close above pp_3,1)}
set{VAR4, count(close below r_3,1)}
set{WAIT, VAR3 * VAR4}
set{BUY, var3 - wait}
set{SELL, var4 - wait}
draw T3(5,0.7)
draw TEMA on plot price
draw DEMA on plot price
draw TSI(6,3,3)
and draw MACD(12,26,9)
and draw ADX(14)
and draw CCI(14) with horizontal line 0
and draw Williams %R(14) with center line -50
and draw full Stochastic(14,3,3) with horizontal line 50
and draw OBV
and draw RSI(15)
and draw LRS(20)
and draw Bollinger(20,2)
and draw Aroon Down(25) and aroon up(25)
and draw ROC(10) with center line 0
and draw Average Volume(10)
and draw Absolute Volume Oscillator(15,60)
and draw VROC(20)
and draw CMF(20)
and draw VWMACD Histogram(12,26,9)
and draw PVO(12,26,9) with center line 0
add column separator
/*close position within a 1-month price range*/
set{hi1mo,high 1 month high}
set{lo1mo,low 1 month low}
set{cllo1mo,close - lo1mo}
set{hilo1mo,hi1mo - lo1mo}
set{diff1,cllo1mo / hilo1mo}
set{%gain1mo,diff1 * 100}
/*close position within a 2-month price range*/
set{hi2mo,high 1 month high 1 month ago}
set{lo2mo,low 1 month low 1 month ago}
set{cllo2mo,close 1 month ago - lo2mo}
set{hilo2mo,hi2mo - lo2mo}
set{diff2,cllo2mo / hilo2mo}
set{%gain2mo,diff2 * 100}
/*close position within a 3-month price range*/
set{hi3mo,high 1 month high 2 month ago}
set{lo3mo,low 1 month low 2 month ago}
set{cllo3mo,close 2 months ago - lo3mo}
set{hilo3mo,hi3mo - lo3mo}
set{diff3,cllo3mo / hilo3mo}
set{%gain3mo,diff3 * 100}
/*EMA calc.*/
set{return1,%gain2mo + %gain3mo}
set{return2,return1 / 2}
set{return3,%gain1mo - return2}
set{return4,return3 * 0.6667}
set{return,return4 + return2}
|