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

[amibroker] Re: Variable scoping problem, I think



PureBytes Links

Trading Reference Links

Thanks Jayson,

(I think, by this solution are missed number of saturdays and sundays)

The main thing is:
How many percent is the future price?
Or how could I calculate the percent, if I know the FutureValue, 
FutureDate, and PresentValue?
For it should I calculate NumberOfDays.

br Zoli.

--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> Br,
> 
> you could use valuewhen to find the barindex() at the beginning and 
end of
> range then simply calculate the difference....
> 
> x=valuewhen(your start date,barindex(),1);
> y=valuewhen(your end date,barindex(),1);
> 
> days=y-x;
> 
> Regards,
> Jayson
> -----Original Message-----
> From: zoli_j [mailto:novizoli@x...]
> Sent: Tuesday, February 03, 2004 10:20 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Number of days between two Dates
> 
> 
> Hi Group,
> 
> I would like to get the number of days between two Dates.
> How many days are til this year til midle of december?
> 
> NumberOfDays = StrToDate('2004.12.16') - Now();
> 
> How should I do in AFL?
> 
> br Zoli.
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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 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.


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 ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/