StockFetcher Forums · General Discussion · How to draw/plot a two variable crossover on a single line...<< >>Post Follow-up
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...

Fetcher[



/* 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 RXOVER ON PLOT XOVER

/* 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 mystiq1 ON PLOT XOVER

/* 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 mystiq2 ON PLOT XOVER
]



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....


Fetcher[

/* 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

]



StockFetcher Forums · General Discussion · How to draw/plot a two variable crossover on a single line...<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2016 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus