[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Formulas for "Automatic Scaling" levels ??



PureBytes Links

Trading Reference Links


I wish to plot one indicator as a white StyleArea plot with a colored 
background (such that the area ABOVE the indicator values is colored).

Because for comparison I want this pane displayed next to a
"normal" 
pane I need to determine the "Automatic Scaling" levels (so I
can first color the complete background and then overlay the white 
StyleArea plot).

In an earlier message

http://finance.groups.yahoo.com/group/amibroker/message/37182

I found TJ's explanation:

"
to get highest and lowest value of all quotes inside visible area use:

array = ROC( Close, 10 );

visible = Status("barvisible");

HH = LastValue( Highest( IIF( visible, array, -999999 ) ) );
LL = LastValue( Lowest( IIF( visible, array, 999999 ) ) );
"

I just don't get it, for sure HH and LL itself are not the scaling 
levels, there must at least be some additional adding/subtracting 
going on. 

Anyone knows the exact formulas for the Auto Scaling levels? (Or... a 
more creative way to create my desired plotstyle? Minor minus of my 
approach is that it removes the gridlines.) Thanks!  

-treliff





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