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

[amibroker] Re: How can you find out how many ticks have completed in a tick chart?



PureBytes Links

Trading Reference Links


% is modulus
 
> 
> CAN someone explain the code :
> 
> TicksToGo = x % 10;
> 
> what does the  X and % and 10 define 
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
> wrote:
> > Hello,
> > 
> > This may or may not work due to QuickAFL and the fact that ticks 
are
> counted from day change.
> > 
> > More reliable way is:
> > 
> > x = BarsSince( Day() != Ref(Day(), -1 ) );
> > TicksToGo = x % 10;
> > 
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> >   ----- Original Message ----- 
> >   From: Herman van den Bergen 
> >   To: amibroker@xxxxxxxxxxxxxxx 
> >   Sent: Saturday, February 19, 2005 6:19 PM
> >   Subject: RE: [amibroker] How can you find out how many ticks 
have
> completed in a tick chart?
> > 
> > 
> >   perhaps 
> > 
> >   TicksToGo = Barcount%10 ?
> > 
> >   best regards,
> >   herman
> > 
> > 
> >     -----Original Message-----
> >     From: sinhavishal [mailto:sinhavishal@x...]
> >     Sent: Saturday, February 19, 2005 12:12 PM
> >     To: amibroker@xxxxxxxxxxxxxxx
> >     Subject: [amibroker] How can you find out how many ticks have
> completed in a tick chart?
> > 
> > 
> > 
> >     I have a tick chart and the current bar comprises of 10 ticks.
> >     How can I find out how many ticks have completed for the 
current bar
> >     so that I know its going to print. I mean the is complete 
before
> >     moving to next bar in the chart?
> > 
> >     Thanks in advance!
> >     Choco
> > 
> > 
> > 
> > 
> > 
> >     Check AmiBroker web page at:
> >     http://www.amibroker.com/
> > 
> >     Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > 
> > 
> > 
> > 
> >     Check AmiBroker web page at:
> >     http://www.amibroker.com/
> > 
> >     Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > 
> > 
> >           Yahoo! Groups Sponsor 
> >            
> >           Get unlimited calls to
> > 
> >           U.S./Canada
> >          
> >          
> > 
> > 
> >
> --------------------------------------------------------------------
--------
> >     Yahoo! Groups Links
> > 
> >       a.. To visit your group on the web, go to:
> >       http://groups.yahoo.com/group/amibroker/
> >         
> >       b.. To unsubscribe from this group, send an email to:
> >       amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >         
> >       c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms
> of Service.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
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:
    http://docs.yahoo.com/info/terms/