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

[amibroker] TimeFrameGetPrice question



PureBytes Links

Trading Reference Links


Hello,
can anyone explain please why this code doesn't work?

SetForeign("SPH5");
bull=TimeFrameGetPrice( "O", inDaily, 0)<TimeFrameGetPrice( "C", 
inDaily, 0);
RestorePriceArrays();

(I tried to find out if today's day is up or down)
seems variable bull doesn't look at "SPH5" prices at all! Maybe 
setforeign and timeframegetprice functions are incompatible?

thanks in advance, Dmitri





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/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/