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

Re: [amibroker] Re: Forex



PureBytes Links

Trading Reference Links




Never mind. I found it. It was missing "1" just before "~count". 
 
AV
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Al 
  Venosa 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, February 07, 2004 8:00 
  AM
  Subject: [amibroker] Re: The last 
  [dangerous but profitable] days of a trend
  
  DT:
   
  I tried your code but got a "bad arguments" error message after the last 
  AddToComposite statement involving ~count. I think there is an array missing, 
  isn't there? Please advise. Thanks for the idea.
   
  Al Venosa
   
  
  ----- Original Message ----- 
  From: <A 
  title=TSOKAKIS@xxxxxxxxx href="">Dimitris 
  Tsokakis 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Thursday, February 05, 2004 5:58 AM
  Subject: [amibroker] The last [dangerous but profitable] days of a 
  trend
  
  We often see in the N100 group trendy periods. The market is 
  easily going higher and higher. 
  More and more buyers "understand" that something is going on 
  and gradually decide what they were afraid yesterday : 
  To step in, not to loose the party.
  The last days are the most profitable, if your entry is old 
  and the most dangerous if your entry is young.
  The green candles indicate the mature phase of the uptrend, 
  we should be ready to pull the Sell trigger immediately.
  The red candles work for the Short side.
  I think it is another way to avoid the usual but crucial 
  mistake of the delayed entry.
  For the whole N100 market scan all stocks, all quotations 
  with
   
  <FONT 
  size=2>n1=19;n2=39;p1=OscP(n1,n2);p2=OscP(n1+1,n2+1);OscDiff=100*(p1-p2);AddToComposite(Oscdiff>0,"~Positive","v");AddToComposite(Oscdiff<=0,"~Negative","v");AddToComposite("~count","v");Buy=0;
   
  to see how many stocks have positive OscDiff [a 
  characteristic bullish property]. The rest are negative and express the 
  bearish mood.
   
  After the composites creation plot in IB the 
   
  <FONT 
  size=2> pos=100*Foreign("~positive","v")/Foreign("~count","v");neg=100*Foreign("~negative","v")/Foreign("~count","v");Plot(pos,"pos",5,1);Plot(neg,"neg",4,1);Color=(pos>=neg 
  AND pos>Ref(pos,-1))*42+(neg>=pos AND neg>Ref(neg,-1))*31+1;// 
  Plot(C,"",Color,64);
   
  to see the indicators and the 
   
  SetForeign("^NDX"); 
   pos=100*Foreign("~positive","v")/Foreign("~count","v");neg=100*Foreign("~negative","v")/Foreign("~count","v");// 
  Plot(pos,"pos",5,1);Plot(neg,"neg",4,1);Color=(pos>=neg AND 
  pos>Ref(pos,-1))*42+(neg>=pos AND 
  neg>Ref(neg,-1))*31+1;Plot(C,"",Color,64);
   
  to have an easy reference for the last bullish/bearish 
  days.
  The advice of the att. gif is simple : do not buy  
  after day2, the last 8 green candles are over.If you are on the short 
  side, avoid increasing your position after day1, the series of red candles is 
  interrupted.Dimitris Tsokakis
  Al Venosa<A 
  href="">advenosa@xxxxxxxxxxxx<FONT 
  color=#0000ff>
   
  ---Outgoing mail is certified Virus 
  Free.Checked by AVG anti-virus system (<A 
  href="">http://www.grisoft.com).Version: 6.0.576 
  / Virus Database: 365 - Release Date: 
  1/30/2004Send 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.