PureBytes Links
Trading Reference Links
|
Brian, finally i have made it , it works great, but take care that the
stock symbol is case sensitive , also you must but your stocks in one
group and filter it during scanning.
hope this help
cheers
/* AddToComposite statements are for Automatic Analysis -> Scan */
/* add Close price to our index OHLC fields */
SetBarsRequired(10000,10000);
weight =
IIf( Name() == "ELSH", 5,
IIf( Name() == "UNIT", 4,
IIf( Name() == "ELKA", 6,
IIf( Name() == "OCDI", 7,
IIf( Name() == "AREI", 3,
IIf( Name() == "MNHD", 3,
IIf( Name() == "HELI", 2,
0 ) ) ) ))));
AddToComposite( weight * O , "~housing", "O" );
AddToComposite( weight * H , "~housing", "H" );
AddToComposite( weight * L , "~housing", "L" );
AddToComposite( weight * C , "~housing", "C" );
AddToComposite( V , "~housing", "V" );
/* add one to open intest field (we use this field as a counter) */
AddToComposite( 1, "~housing", "I" );
Buy = 0; // required by scan mode
/* this part is for Drawing */
PlotForeign("~housing","Housing Index",colorRed);
brian_z321 wrote:
>
> --- In amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com>,
> "carlacash26" <carlacash26@xxx> wrote:
> carlacash26,
>
> I have my white cane out again.
> Until an expert comes along try it without the n as shown in my example
> below and see what happens.
>
> > AddToComposite( weight * O, "~test", "nO" );
> > AddToComposite( weight * H, "~test", "nH" );
> > AddToComposite( weight * L, "~test", "nL" );
> > AddToComposite( weight * C, "~test", "nC" );
>
> > AddToComposite( weight * O, "~test", "O" );
> > AddToComposite( weight * H, "~test", "H" );
> > AddToComposite( weight * L, "~test", "L" );
> > AddToComposite( weight * C, "~test", "C" );
>
> then plotforeign(~test, "test", colorBlack, styleBar);
>
> That is my best guess until someone more knowing helps out or I can get
> to the manual.
>
> goodluck.
>
> Brian_z
>
>
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/
|