PureBytes Links
Trading Reference Links
|
Does anyone know how to make a "quasi ticker "from a spread chart
that can be stored in a watchlist to be brought back up again later
so indicators can be applied to it.
At present i am using the following AFL ,but would like to store it
as a ticker with ohlc
ie the spreado,spreadh,spreadl,spreadc become the ohlc for the "quasi
ticker"
cheers ken
////spread afl////////////////////
Ticker= ParamStr("Short ticker", "type in ticker");//short stock
tickersc=Foreign( ticker, "C");//Short stock
tickerso=Foreign( ticker, "O");//Short stock
tickersh=Foreign( ticker, "H");//Short stock
tickersl=Foreign( ticker, "L");//Short stock
/////////////////////////////////////////////
Longt=Param("Long Stock",1,1,5000,0.5);
Shortt=Param("Short Stock",1,1,5000,0.5);
/////////////////////////////////////////////
spreadc=((Longt)*(C))-((Shortt)*(tickersc));
spreado=((Longt)*(O))-((Shortt)*(tickerso));
spreadh=((Longt)*(H))-((Shortt)*(tickersh));
spreadl=((Longt)*(L))-((Shortt)*(tickersl));
/////////////////////////////////////////////
Plot( spreadc,""+Ticker,colorGold,styleDashed);
/////////////////////////////////////////////
x1=MA(spreadc,13);
x2=Ref(x1,-3);
Plot(x2,"3 displaced 13 MA ",0,5);
//////////////////////////////////////////////
bb=1.7*(StDev( Cc1, 11 )) ;
Plot(spreadc+bb,"",54,styleDashed);
Plot(spreadc-bb,"",54,styleDashed);
//finished////////////////////////////////////
------------------------------------
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|