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

Fw: [amibroker] AB vers 5.29 - An update



PureBytes Links

Trading Reference Links



Tomasz,
 
I found the source of my problem... it seems related to groupID(0).
 
I use groupID(0) to distinguish between Mutual funds and all other types. I want a line plot for mutual funds and candles for others.
 
 
My code is:
IssueSelect = Param( "1=SPX 2=NAS 3=NY 4=DJ30", 0, 0, 4, 1 );
 
Switch (IssueSelect)                                    // Select symbol in symbol box or one of the indeces via parameter box
{
case 0: Issue = Name();     Break;
case 1: Issue = "!SPX";      Break;
 
etc
}
   
      
SetForeign(Issue);         // Set symbol as selected above
 
If (GroupID(0) ==6)         // Use line plot for mutual funds
{
Plot( ....)
}
else                                  // Use candle plot for all that are not mutual funds
{
PlotOHLC(....)
}
 
In vers 5.26 it works fine
 
Vers 5.29 the groupID(0) seems to work the same as in 5.26, but something internal is not the same.
 
When I select an index from the parameter box, the properties of the last symbol (in symbol box) remain in  effect.
 
If the last symbol had OHLC values everything is fine.  If last symbol was a mutual fund, then the selected index has only closing values
 
 
Ara
 
----- Original Message -----
Sent: Saturday, October 03, 2009 7:20 PM
Subject: Re: [amibroker] AB vers 5.29

Sorry, I miss-quoted my own code...
 
What I have is
 
Issue = "!COMP";      // or "!NYA"  or  "!DJ30"       (Using "!SPX" works OK)
 
Not this
Issue = Foreign("!COMP");      // or "!NYA"  or  "!DJ30"       (Using "!SPX" works OK)
 
 
SetForeign(Issue);
PlotOHLC(....)
----- Original Message -----
 
Sent: Saturday, October 03, 2009 3:24 PM
Subject: Re: [amibroker] AB vers 5.29

Hello,
 
Is that:
 
Issue = Foreign("!COMP");      // or "!NYA"  or  "!DJ30"       (Using "!SPX" works OK)
SetForeign(Issue);
PlotOHLC(....)
 
actual code that you are using ???
 
If so, it is incorrect (syntax error).
 
SetForeign takes SYMBOL, not array of prices !
 
Correct code is included in AmiBroker, called "Price (foreign).afl")
 
Ticker = ParamStr("Symbol", Name() );
PlotForeign( Ticker, Ticker, ParamColor("Color", colorCycle ), ParamStyle("Style") | GetPriceStyle() );
 
 
And it DOES plot candles JUST FINE.
 
 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
To: AB-Main
Sent: Saturday, October 03, 2009 11:16 PM
Subject: [amibroker] AB vers 5.29

I switched from vers 5.26 to 5.29 had some unique issues not previously mentioned on board
 
Two issues:
 
1. using  QP data:
Issue = Foreign("!COMP");      // or "!NYA"  or  "!DJ30"       (Using "!SPX" works OK)
SetForeign(Issue);
PlotOHLC(....)
 
The plot had the correct values but only closing prices (no candles)
 
 
2. Inwatchlist(num)  seemed like could not find the issues from CommonStocks list
 
Re-installing backups to vers 5.26 brough back normal operation
 
Ara


__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___