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

Re: Event Date



PureBytes Links

Trading Reference Links

Tomasz,
Can the technique shown in the following example be used to 'exit' a 
trade after N days?

--- In amibroker@xxxx, "Tomasz Janeczko" <tj@xxxx> wrote:
> Hello Barry,
> 
> Use the following formula to find the all-time highest and display 
its value and date:
> 
> alltimehigh = LastValue( Highest( high ) );
> alltimehighbar = ValueWhen( high == alltimehigh, Cum(1) );
> 
> alltimeyear = ValueWhen( high == alltimehigh, Year() );
> alltimemonth = ValueWhen( high == alltimehigh, Month() );
> alltimeday = ValueWhen( high == alltimehigh, Day() );
> 
> "All time highest was " + WriteVal( alltimehigh );
> "on the " + WriteVal( alltimeyear, 1 ) + "." + WriteVal( 
alltimemonth, 1 ) + "." + WriteVal( alltimeday, 1 );
> 
> /* Draw also a vuy arrow on highest day */
> buy = high == alltimehigh ;
> sell = 0;
> 
> 
> Best regards,
> Tomasz Janeczko
> ===============
> AmiBroker - the comprehensive share manager.
> http://www.amibroker.com
> 
> 
> ----- Original Message ----- 
> From: <bholt@xxxx>
> To: <amibroker@xxxx>
> Sent: Sunday, March 11, 2001 5:26 AM
> Subject: [amibroker] Event Date
> 
> 
> > Hi,
> > 
> > Could anybody please advise how to write the date of an event in 
Guru 
> > section - i.e. for the highest ever value of a stock.
> > 
> > I would like the commentary to say "The highest ever value was 
> > $xxx.xx on the dd.mm.yyyy.
> > 
> > Thanks again in advance.
> > 
> > Thanks also to Richard for your explanation of how to combine 
> > tickers - it worked well.
> > 
> > 
> > 
> > 
> > 
> > Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/ 
> > 
> >