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

RE: [amibroker] Re: Alerts



PureBytes Links

Trading Reference Links




I have 
just got the following from TJ: it seems to work fine.
<FONT face=Arial color=#0000ff 
size=2> <FONT face=Arial 
color=#0000ff size=2>
 
 

  Add "barcomplete" 
  condition:
   
  
  barcomplete = BarIndex() < 
  LastValue(BarIndex());
   
  PriceOsc = OscP( 3 , 10 ) ;Plot( PriceOsc , 
  "Price Oscillator", IIf( PriceOsc > 0 , colorGreen ,colorRed ) , 
  styleNoLabel ) ;AlertIf( barcomplete AND 
  PriceOsc > Ref( PriceOsc , -1 ) AND Ref( PriceOsc , -1 ) <=Ref( 
  PriceOsc , -2 ) , "sound C:\\windows\media\tada.wav", "Simpletext alert", 
  1 );AlertIf( barcomplete AND PriceOsc < 
  Ref( PriceOsc , -1 ) AND Ref( PriceOsc , -1 ) >=Ref( PriceOsc , -2 ) , 
  "sound C:\\windows\media\tada.wav", "Simpletext alert", 1 
);
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 
<SPAN 
class=810201310-23072003><SPAN 
class=810201310-23072003><SPAN 
class=810201310-23072003><SPAN 
class=810201310-23072003><SPAN 
class=810201310-23072003><SPAN 
class=810201310-23072003><SPAN 
class=810201310-23072003><SPAN 
class=810201310-23072003><SPAN 
class=810201310-23072003><FONT face=Arial color=#0000ff 
size=2> 
<BLOCKQUOTE 
>
  <FONT face=Tahoma 
  size=2>-----Original Message-----From: at_trading 
  [mailto:at_trading@xxxxxxxx]Sent: marted́ 22 luglio 2003 
  10:05To: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  Re: Alertsjehmac,> For what it's worth, I 
  ran into a similar problem when > I was playing around with alert and 
  tick charts a little while> back. Alerts were getting triggered 
  prematurely.Did you find any 
workaround?alberto






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.