mystiq 650 posts msg #71634 - Ignore mystiq | 
2/21/2009 6:32:49 AM
  how to draw/plot a two variable xover on a single line...or to show crossover values indicating above/below 0....?
 can anybody help code this.....?  --basically to visualize the crossover without the clutter....
 
 mystiq
 
  | 
mystiq 650 posts msg #71732 - Ignore mystiq | 
2/25/2009 2:00:34 AM
  ====>any suggestions or adjustments please post (-.-)
 
 CROSSOVER FOR EMA(3)/MA(5) & RSI(2)/RSI(3)
 set{em3, ema(3)}
 set{ma5, ma(5)}
 set{i2, rsi(2)}
 set{i3, rsi(3)}
 set{xover, count(em3 crossed above ma5,1)} 
 set{rxover, count(i2 crossed above i3,1)} 
 set{fxover, xover + rxover} 
 
 CROSSOVER FOR RSI(2)/RSI(3)
 set{iz, rsi(2) 1 day ago}
 set{iza, rsi(2) - iz}
 set{izb, volume * iza}
 set{izc, cema(rsi(3),3)}
 set{izd, izc / 1000}
 draw izd on plot izb
 do not draw iz
 
 CROSSOVER FOR EMA(3)/MA(5) 
 set{e3, ema(3) 1 day ago}
 set{e3a, ema(3) - e3}
 set{e3b, volume * e3a}
 set{e3c, cema(ma(5),3)}
 set{e3d, e3c / 1000}
 draw e3d on plot e3b
 
 mystiq
 
 
 
 
 
 
 
  | 
chetron 2,817 posts msg #71735 - Ignore chetron modified | 
2/25/2009 6:42:41 AM
  MAYBE...
 
  	    
 
  | 
mystiq 650 posts msg #71767 - Ignore mystiq | 
2/25/2009 6:38:28 PM
  ----->thanks alot CHETRON....u got it as usual :) 
 ..just made a minor adjustment to better view the charts:
 
 /* CROSSOVER FOR EMA(3)/MA(5) & RSI(2)/RSI(3) */
 set{em3, ema(3)} 
 set{ma5, ma(5)} 
 set{i2, rsi(2)} 
 set{i3, rsi(3)} 
 set{xover, count(em3 crossed above ma5,1)} 
 set{rxover, count(i2 crossed above i3,1)} 
 set{fxover, xover + rxover} 
 
 DRAW xOVER ON PLOT rxover
 
 /* CROSSOVER FOR RSI(2)/RSI(3) */
 set{iz, rsi(2) 1 day ago} 
 set{iza, rsi(2) - iz} 
 set{izb, volume * iza} 
 set{izc, cema(rsi(3),3)} 
 set{izd, izc / 1000} 
 
  
 SET{mystiq1,COUNT(IZB CROSSED ABOVE IZD,1)}
 DRAW izb ON PLOT mystiq1
 
 /* CROSSOVER FOR EMA(3)/MA(5) */
 set{e3, ema(3) 1 day ago} 
 set{e3a, ema(3) - e3} 
 set{e3b, volume * e3a} 
 set{e3c, cema(ma(5),3)} 
 set{e3d, e3c / 1000} 
 
 SET{mystiq2,COUNT(E3B CROSSED ABOVE E3D,1)}
 DRAW e3b ON PLOT mystiq2
 
 
  | 
chetron 2,817 posts msg #71769 - Ignore chetron | 
2/25/2009 7:03:20 PM
  CLICKABLE....
 
 
  	    
 
  |