PureBytes Links
Trading Reference Links
|
any help with this....I get Subscript out of range error....
Thanks
Anthony
----- Original Message -----
From: "vvvvv132003" <milicin@xxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, September 15, 2004 4:55 PM
Subject: [amibroker] Re: Value Area
> //Market Profile
>
> //GraphXSpace = 1;
> //SetBarsRequired(100000,100000);
>
> //===============
> BV = LastValue(ValueWhen(Status("barvisible") < Ref(Status("barvisible"),
> -1), BarIndex()-2), 1);
> bb = IIf(Bv == 0 , LastValue(BarIndex()), bv);
>
> Plot(C, "Close", 47, 128);
>
> //===========================
> qq = Param("st", 100, 50, 300, 50);
>
>
> //=========================
> NewDay = IIf(Day() != Ref(Day(), -1) OR BarIndex() == LastValue(BarIndex()
> ), 1, 0);
> //Plot(NewDay, "", 0, 2 + 32768 + 4096, Minvalue = 0, Maxvalue = 1);
>
> //========================
> Bot = TimeFrameGetPrice("L", inDaily, 0);
> Top = TimeFrameGetPrice("H", inDaily, 0);
>
> Range = Highest(Top-Bot);
>
> Plot(Bot, "", 0, 512);
> Plot(Top, "", 0, 512);
>
>
> //===========================
> Box = Range/qq;
>
>
> //Color = 2;
> k = 0;
> j = 1;
> i = 1;
>
>
> do
> {
> Color = 2;
> Line = Bot + k*Box;
>
> for(i = BB -300; i < BB - 1 ; i++)
>
> {
> if(NewDay[i] == 1)
> {
> j = i;
> }
>
> if(Line[i] > L[i] & Line[i] < H[i])
> {
> Color[j] = 6;
> j = j + 1;
> }
> }
> Plot(IIf(Line > Top, Null, Line), "", Color, 8 + 16 + 4096);
> k = k + 1;
> } while ( k < qq );
>
> Title = "Market Profile";
> GraphXSpace = 0.05;
>
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> 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/
|