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

Re: [amibroker] IB Plug-in



PureBytes Links

Trading Reference Links




That 
is because allowable fields are OHLCV and OI.... a work around would be to 
create a composite where you use one of the allowable fields as a counter then 
call that ticker....
<FONT face=Arial color=#0000ff 
size=2> 
 
Buy<FONT 
color=#0000ff>=1<FONT 
color=#282828>;<FONT 
color=#0000ff>
AddToComposite<FONT 
size=2>(1<FONT 
color=#282828>,"~test"<FONT 
color=#282828>,"C");<SPAN 
class=703384414-11052004>// <SPAN 
class=703384414-11052004>to create the 
composite in AA
<FONT face=Arial color=#282828 
size=2> 
then 
have a look at this indicator...
<FONT face=Arial color=#282828 
size=2> 
<FONT face=Arial 
color=#0000ff> 
x=<FONT 
color=#0000ff>Foreign(<FONT 
size=2>"~test",<FONT 
size=2>"C"<FONT face=Arial 
color=#0000ff>);
Plot<FONT color=#282828 
size=2>(Cum<FONT color=#282828 
size=2>(x),"Composite"<FONT 
color=#282828 size=2>,4<FONT 
color=#282828 size=2>,1<FONT 
color=#282828 size=2>);<FONT color=#0000ff 
size=2>
Plot<FONT color=#282828 
size=2>(Cum<FONT color=#282828 
size=2>(1<FONT color=#282828 
size=2>),"Stock"<FONT color=#282828 
size=2>,5<FONT color=#282828 
size=2>,1<FONT color=#282828 
size=2>);
 
<FONT face=Arial color=#282828 
size=2>I tested by adding a 10 count to the composite via edit quote and 
changing the last bar value of c to 10. I have 2 different values plotted and 
reported....
 
Regards,Jayson 

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Gary A. Serkhoshian 
  [mailto:serkhoshian777@xxxxxxxxx]Sent: Tuesday, May 11, 2004 10:29 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] 
  Bars in Foreign tickerMichael,Unfortunately, 
  you are right.  You'd think in the codebelow, you could access the 
  BarCount of two differenttickers using SetForiegn.  Doesn't 
  work.  Currentsymbol always rules.Filter = 
  1;SetForeign("QQQ");MyBarCount = 
  BarCount;RestorePriceArrays();CurSymBarCount = 
  BarCount;AddColumn(MyBarCount, "QQQ Bar Count", 
  5.0);AddColumn(CurSymBarCount, "Current Symbol 
  BarCount",5.0);--- "Michael.S.G." <OzFalcon@xxxxxxxxxx> 
  wrote:> Thanks, But it's limmited by the current selected> bar - 
  So can't use.> > It'd be real handy if, when setting foreign - 
  We> could de-sync the array > lengths.> Especialy now we 
  can loop through a watchlist of> tickers.............> 
  >          MSG> 
  > > At 10:48 PM 11/05/2004, you wrote:> 
  >Perhaps:> >> >Of = foreign(Ticker,"O");> 
  >NumBars = Cum(Of>0);> >> >herman.> 
  >-----Original Message-----> >From: Michael.S.G. 
  [mailto:OzFalcon@xxxxxxxxxx]> >Sent: Tuesday, May 11, 2004 8:34 
  AM> >To: amibroker@xxxxxxxxxxxxxxx> >Subject: [amibroker] 
  Bars in Foreign ticker> >> 
  >       Anyone know how to find the total 
  number of> bars in a Foreign ticker?> >> 
  >       KR> 
  >       Michael.> >> 
  >> >> >> >Send BUG REPORTS to 
  bugs@xxxxxxxxxxxxx> >Send SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx> 
  >-----------------------------------------> >Post 
  AmiQuote-related messages ONLY to:> amiquote@xxxxxxxxxxxxxxx> 
  >(Web page: >><<A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)><A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)> 
  >--------------------------------------------> >Check group FAQ 
  at: >><<A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html><A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html> 
  > >> >> >> >> >> 
  >Send BUG REPORTS to bugs@xxxxxxxxxxxxx> >Send SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx> 
  >-----------------------------------------> >Post 
  AmiQuote-related messages ONLY to:> amiquote@xxxxxxxxxxxxxxx> 
  >(Web page: >><<A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)><A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)> 
  >--------------------------------------------> >Check group FAQ 
  at: >><<A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html><A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html> 
  > >> >> >> >Yahoo! Groups 
  Sponsor> >ADVERTISEMENT> >> >> 
  >----------> >Yahoo! Groups Links> >To visit your group 
  on the web, go to:>><<A 
  href="">http://groups.yahoo.com/group/amibroker/><A 
  href="">http://groups.yahoo.com/group/amibroker/> 
  > >> >> >To unsubscribe from this group, send an 
  email 
  to:>><mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>amibroker-unsubscribe@xxxxxxxxxxxxxxx> 
  > >> >> >Your use of Yahoo! Groups is subject to 
  the > ><<A 
  href="">http://docs.yahoo.com/info/terms/>Yahoo! 
  Terms of> Service.> > > 
        
              
  __________________________________Do you Yahoo!?Win a $20,000 
  Career Makeover at Yahoo! HotJobs  <A 
  href="">http://hotjobs.sweepstakes.yahoo.com/careermakeover 
  Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 
  SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.