daily pastebin goal
22%
SHARE
TWEET

dma and market analyzer

memer9161998 Jan 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. /* Bull or Bear by Marty Chenard */
  3. /* http://www.stocktiming.net/?p=3711   February 5, 2018 */
  4. /* https://www.stockfetcher.com/forums/Filter-Exchange/Connors-TPS/146101/99999 */
  5. /* bull when all three indices have rsi(30) > 50 */
  6. /* bear when all three indices have rsi(30) < 50 */
  7. /* deterioration when one or more indices have rsi(30) < 50 */
  8. symlist(SPY,QQQ,IWM,bac,ms,msft,aapl,ual,ba)
  9. set{RSI30, RSI(30) - 50} /* davesaint86 */
  10. set{CRSI_Bar, RSI30} /* davesaint86 */
  11. draw CRSI_Bar  /* davesaint86 */
  12. PlotType{CRSI_Bar,zerobar}  /* davesaint86 */
  13.  
  14. -------------------
  15.  
  16.  
  17.  
  18. symlist(spy,qqq,jpm,srne,bac,crc,axas,cop,vlo)
  19. draw cma(DMA(8,-5),8)
  20. draw cma(DMA(8,-5),4)
  21. do not draw dma(8,-5),8)
  22. /* 8x8 is number of consecutive days   cma(DMA(8,-5),8) above (+)/below(-) previous  cma(DMA(8,-5),8)  */
  23. set{88b,days( cma(DMA(8,-5),4) is above    cma(DMA(8,-5),4)one day ago ,250)}
  24. set{88a,days( cma(DMA(8,-5),4)  is below    cma(DMA(8,-5),4) one day ago ,250)}
  25. set{dmax84, 88a - 88b} and add column dmax84 {dma_x_84over84}
  26. do not Draw AxA
  27.  
  28. Set{cntcmadma4abovecmadma4,count( cma(DMA(8,-5),4) >  cma(DMA(8,-5),4) one day ago,1)}
  29. draw cntcmadma4abovecmadma4
  30.  
  31. Set{cntcmadma4abovecmadma4b,count( cma(DMA(8,-5),4)<  cma(DMA(8,-5),4) one day ago,1)}
  32.  
  33. draw cntcmadma4abovecmadma4b
  34. chart-time is 2 years
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top