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

[amibroker] why this simple code doesn't work as I expect?



PureBytes Links

Trading Reference Links

hello everyone,

this simple code depends on selected day visibility. if the day of the 
selected bar "fits" in visible area everything is OK (see 1.png). if it 
doesn't the formula doesn't work either (see 2.png, use plus/minus 
magnifying glass icons for time scaling)

how can I fix that code so that it doesn't depend on visibility?

SelectedDay = SelectedValue(DateNum());
arr = DateNum() == SelectedDay;
Plot(arr,"",colorRed,styleHistogram);

thanks in advance for clarification,
BM


[Non-text portions of this message have been removed]



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