PureBytes Links
Trading Reference Links
|
Hello,
Calling functions defined in script via GetScriptObject is not
functional in 4.31.1
This will be fixed in 4.32.0
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
ERKAN BISEVAC
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, April 16, 2003 9:36
PM
Subject: [amibroker] TJ BUG
<BLOCKQUOTE
>
TJ
This was working on previous AB 4.30 but it's not working now.
per=8;Buy = Trough(L,PER,1)==L;Sell = Peak(H,PER,1)==H;
EnableScript("jscript");<%function GetDays( y, m, d
){return Date.UTC(y, m - 1, d)/(1000*60*60*24);}%>
d1 = LastValue( ValueWhen( Buy, Day() ) );m1 = LastValue( ValueWhen(
Buy, Month() ) );y1 = LastValue( ValueWhen( Buy, Year() ) );
d2 = LastValue( ValueWhen( Sell, Day() ) );m2 = LastValue( ValueWhen(
Sell, Month() ) );y2 = LastValue( ValueWhen( Sell, Year() ) );
scr = GetScriptObject();eki=( scr.GetDays( y2, m2, d2 ) -
scr.GetDays( y1, m1,d1 ) );Graph0=eki;
And also how I can make loop to assign scr.GetDays( y, m, d )
to every bar?
Thanks
Erkan
Do you Yahoo!?<A
href="">The New
Yahoo! Search - Faster. Easier. Bingo. Send
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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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.
|