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

[amibroker] Problem with SetForeign and TimeFrameGetPrice on Intraday-Chart



PureBytes Links

Trading Reference Links

I'm trying to plot the percentual gain of multiple symbols from 
Watchlist Nr. 0 plotted on the same intraday chart. 

But I've been sticked in a problem, that I don't understand:

I have "ASTIZ" and "LTRE" on my watchlist 0
and this is my code:

list = GetCategorySymbols( categoryWatchlist, 0 );

symbol = StrExtract( list, 0 );
if ( symbol != "" )
{
  SetForeign( symbol, True, True ); 
  dayOpen = TimeFrameGetPrice( "O", inDaily, 0 ); 
  Plot( dayOpen,symbol,colorRed,styleLine|styleDots);
  RestorePriceArrays( True );
}

The Open value for "ASTIZ" on 14. december .2007 was 10.06.
This will be corretly plotted when symbol "ASTIZ" is seleced.
But when I select "LTRE" the value 10.5 has been plotted.

Any idea, what's going on?

Thank you in advance!








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/