PureBytes Links
Trading Reference Links
|
Here is the code, found it already loaded in my IB
<span
lang=EN-AU >//INDICATOR
<span
lang=EN-AU >//Allows
to add in tomorrows prices to see the effect on the indicator
<span
lang=EN-AU >//<font
size=2 color=green face="Courier New">Graham<font size=2
color=green face="Courier New"> Kavanagh March 2003
<span
lang=EN-AU >x = <font
size=2 color=fuchsia face="Courier New">0.1<font size=2
color=black face="Courier New">;<font size=2 color=green
face="Courier New">//range of prices in the param function
<span
lang=EN-AU >y = <font
size=2 color=fuchsia face="Courier New">0.01<font size=2
color=black face="Courier New">;<font size=2 color=green
face="Courier New">//step of price within the param function
<span
lang=EN-AU >xo = <font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">Ref<span
lang=EN-AU >(<font
size=2 color=red face="Courier New">O<font size=2 color=black
face="Courier New">,-<span
lang=EN-AU >1<font
size=2 color=black face="Courier New">));
<span lang=EN-AU
>O<font
size=2 color=black face="Courier New"> = <font size=2
color=blue face="Courier New">IIf<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()==<font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()),<font
size=2 color=blue face="Courier New">Param<font size=2
color=black face="Courier New">(<font size=2
color=darkred face="Courier New">"O"<font
size=2 color=black face="Courier New">,xo,xo-x,xo+x,y),<font
size=2 color=red face="Courier New">O<font size=2 color=black
face="Courier New">);
<span
lang=EN-AU >xh = <font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">Ref<span
lang=EN-AU >(<font
size=2 color=red face="Courier New">H<font size=2 color=black
face="Courier New">,-<span
lang=EN-AU >1<font
size=2 color=black face="Courier New">));
<span lang=EN-AU
>H<font
size=2 color=black face="Courier New"> = <font size=2
color=blue face="Courier New">IIf<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()==<font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()),<font
size=2 color=blue face="Courier New">Param<font size=2
color=black face="Courier New">(<font size=2
color=darkred face="Courier New">"H"<font
size=2 color=black face="Courier New">,xh,xh-x,xh+x,y),<font
size=2 color=red face="Courier New">H<font size=2 color=black
face="Courier New">);
<span
lang=EN-AU >xl= <font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">Ref<span
lang=EN-AU >(<font
size=2 color=red face="Courier New">L<font size=2 color=black
face="Courier New">,-<span
lang=EN-AU >1<font
size=2 color=black face="Courier New">));
<span lang=EN-AU
>L<font
size=2 color=black face="Courier New"> = <font size=2
color=blue face="Courier New">IIf<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()==<font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()),<font
size=2 color=blue face="Courier New">Param<font size=2
color=black face="Courier New">(<font size=2
color=darkred face="Courier New">"L"<font
size=2 color=black face="Courier New">,xl,xl-x,xl+x,y),<font
size=2 color=red face="Courier New">L<font size=2 color=black
face="Courier New">);
<span
lang=EN-AU >xc = <font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">Ref<span
lang=EN-AU >(<font
size=2 color=red face="Courier New">C<font size=2 color=black
face="Courier New">,-<span
lang=EN-AU >1<font
size=2 color=black face="Courier New">));
<span lang=EN-AU
>C<font
size=2 color=black face="Courier New"> = <font size=2
color=blue face="Courier New">IIf<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()==<font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()),<font
size=2 color=blue face="Courier New">Param<font size=2
color=black face="Courier New">(<font size=2
color=darkred face="Courier New">"C"<font
size=2 color=black face="Courier New">,xc,xc-x,xc+x,y),<font
size=2 color=red face="Courier New">C<font size=2 color=black
face="Courier New">);
<span
lang=EN-AU >
<span lang=EN-AU
>Plot<font
size=2 color=black face="Courier New">(<font size=2 color=red
face="Courier New">C<span
lang=EN-AU >,<font
size=2 color=darkred face="Courier New">"Param input for tomorrows prices"<font
size=2 color=black face="Courier New">,<font size=2 color=red
face="Courier New">colorBlack<span
lang=EN-AU >,<font
size=2 color=red face="Courier New">styleCandle<font size=2
color=black face="Courier New">);
<span
lang=EN-AU >
<span
lang=EN-AU >//Add
in your indicator here
<span lang=EN-AU
>Plot<font
size=2 color=black face="Courier New">(<font size=2 color=blue
face="Courier New">StochD<span
lang=EN-AU >(<font
size=2 color=fuchsia face="Courier New">14<font size=2
color=black face="Courier New">),<font size=2
color=darkred face="Courier New">"stochD"<font
size=2 color=black face="Courier New">,<font size=2 color=red
face="Courier New">colorGreen<span
lang=EN-AU >,<font
size=2 color=red face="Courier New">styleLine<font size=2
color=black face="Courier New">+<font size=2 color=red
face="Courier New">styleOwnScale<font size=2 color=black
face="Courier New">);
<span lang=EN-AU
>Plot<font
size=2 color=black face="Courier New">(<font size=2 color=blue
face="Courier New">StochK<span
lang=EN-AU >(<font
size=2 color=fuchsia face="Courier New">14<font size=2
color=black face="Courier New">),<font size=2
color=darkred face="Courier New">"stochK"<font
size=2 color=black face="Courier New">,<font size=2 color=red
face="Courier New">colorRed<span
lang=EN-AU >,<font
size=2 color=red face="Courier New">styleLine<font size=2
color=black face="Courier New">+<font size=2 color=red
face="Courier New">styleOwnScale<font size=2 color=black
face="Courier New">);
<span
lang=EN-AU >//Plot(
EMA (C,10),"EMA",colorBlue,styleLine);
<span lang=EN-AU
>
<span lang=EN-AU
>
<span lang=EN-AU
>Cheers,
<span lang=EN-AU
>Graham
<span lang=EN-AU
>http://groups.msn.com/ASXShareTrading
<span lang=EN-AU
>http://groups.msn.com/FMSAustralia
<span lang=EN-AU
>
-----Original
Message-----
From: nkis22 [mailto:nkishor@xxxxxxxxxx]
Sent: Sunday, 25 May 2003 10:34 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: extending chart length
<span lang=EN-AU
>
<span lang=EN-AU
>
<span lang=EN-AU
>Walt, if u are trying to plot in the blank
<span lang=EN-AU
>space, I don't think there is a way as yet. I tried
<span lang=EN-AU
>that once but didn't succeed, and I think it is
<span lang=EN-AU
>on the "things to do" list.
<span lang=EN-AU
>
<span lang=EN-AU
>nand
<span lang=EN-AU
>
<span lang=EN-AU
>--- In amibroker@xxxxxxxxxxxxxxx, walt
<WSCHWARZ@xxxx> wrote:
<span lang=EN-AU
>> That technique, c=ref(c,5) , did not seem to make
any difference.
<span lang=EN-AU
>>
<span lang=EN-AU
>> If you can rember a key word for your up-load,
I'll search for it...
<span lang=EN-AU
>>
<span lang=EN-AU
>> -----Original Message-----
<span lang=EN-AU
>> From: Graham [mailto:gkavanagh@xxxx]
<span lang=EN-AU
>> Sent: <span
lang=EN-AU>Saturday, May 24, 2003 9:40 PM
<span lang=EN-AU
>> To: amibroker@xxxxxxxxxxxxxxx
<span lang=EN-AU
>> Subject: RE: [amibroker] extending chart length
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>> You can shift the charts to the left by having
it read into the
<span lang=EN-AU
>future ie
<span lang=EN-AU
>> c=ref(c,5)
<span lang=EN-AU
>>
<span lang=EN-AU
>> I did do a code for moving the chart one bar to
left and having a
<span lang=EN-AU
>param to
<span lang=EN-AU
>> allow entering the next bar to see what effect it
has on the
<span lang=EN-AU
>indicator.
<span lang=EN-AU
>>
<span lang=EN-AU
>> It was posted to this group, and not certain if
I loaded the file
<span lang=EN-AU
>to the
<span lang=EN-AU
>> site or not. I cannot find it in my computer
drive after a quick
<span lang=EN-AU
>look
<span lang=EN-AU
>> unfortunately
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>> Cheers,
<span lang=EN-AU
>> Graham
<span lang=EN-AU
>>
<span lang=EN-AU
>> http://groups.msn.com/ASXShareTrading
<span lang=EN-AU
>>
<span lang=EN-AU
>> http://groups.msn.com/FMSAustralia
<span lang=EN-AU
>>
<span lang=EN-AU
>> -----Original Message-----
<span lang=EN-AU
>> From: walt [mailto:WSCHWARZ@xxxx]
<span lang=EN-AU
>> Sent: <span
lang=EN-AU>Sunday, 25 May 2003 9:26 AM
<span lang=EN-AU
>> To: amibroker@xxxxxxxxxxxxxxx
<span lang=EN-AU
>> Subject: RE: [amibroker] extending chart length
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>> Thank you Graham, but that is not what I
need...
<span lang=EN-AU
>>
<span lang=EN-AU
>> I probably did not explain myself correctly; I
need to shift the
<span lang=EN-AU
>close
<span lang=EN-AU
>> plot a few days ahead of the cycle plot.
<span lang=EN-AU
>>
<span lang=EN-AU
>> Walt
<span lang=EN-AU
>>
<span lang=EN-AU
>> -----Original Message-----
<span lang=EN-AU
>> From: Graham [mailto:gkavanagh@xxxx]
<span lang=EN-AU
>> Sent: <span
lang=EN-AU>Saturday, May 24, 2003 7:38 PM
<span lang=EN-AU
>> To: amibroker@xxxxxxxxxxxxxxx
<span lang=EN-AU
>> Subject: RE: [amibroker] extending chart
length
<span lang=EN-AU
>>
<span lang=EN-AU
>> Try Preferences - Charting - about middle is
"Blank bars in
<span lang=EN-AU
>right
<span lang=EN-AU
>> margin"
<span lang=EN-AU
>> You can set the number of bars to the right
of the chart
<span lang=EN-AU
>>
<span lang=EN-AU
>> Cheers,
<span lang=EN-AU
>> Graham
<span lang=EN-AU
>> http://groups.msn.com/ASXShareTrading
<span lang=EN-AU
>> http://groups.msn.com/FMSAustralia
<span lang=EN-AU
>>
<span lang=EN-AU
>> -----Original Message-----
<span lang=EN-AU
>> From: hairy_mug [mailto:WSCHWARZ@xxxx]
<span lang=EN-AU
>> Sent: <span
lang=EN-AU>Sunday, 25 May 2003 4:26 AM
<span lang=EN-AU
>> To: amibroker@xxxxxxxxxxxxxxx
<span lang=EN-AU
>> Subject: [amibroker] extending chart length
<span lang=EN-AU
>>
<span lang=EN-AU
>> Hello All!
<span lang=EN-AU
>> I have an indicator which "Fits" a
cycle to the price.
<span lang=EN-AU
>> The problem comes at the end of the colse
data; There is no more
<span lang=EN-AU
>> prices so, of course the graph stops...
<span lang=EN-AU
>> How can I extend the graph, i.e. add some
price points to the
<span lang=EN-AU
>end?
<span lang=EN-AU
>> This must be done in the indicator, so
appending entries in the
<span lang=EN-AU
>quote
<span lang=EN-AU
>> editor will not work...
<span lang=EN-AU
>>
<span lang=EN-AU
>> THANKS!
<span lang=EN-AU
>>
<span lang=EN-AU
>> Walt, AKA Hairy Mug
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>> Send BUG REPORTS to bugs@xxxx
<span lang=EN-AU
>> Send SUGGESTIONS to suggest@xxxx
<span lang=EN-AU
>> -----------------------------------------
<span lang=EN-AU
>> Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
<span lang=EN-AU
>> (Web page:
http://groups.yahoo.com/group/amiquote/messages/)
<span lang=EN-AU
>> --------------------------------------------
<span lang=EN-AU
>> Check group FAQ at:
<span lang=EN-AU
>>
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
<span lang=EN-AU
>>
<span lang=EN-AU
>> Your use of Yahoo! Groups is subject to
<span lang=EN-AU
>> http://docs.yahoo.com/info/terms/
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>> Send BUG REPORTS to bugs@xxxx
<span lang=EN-AU
>> Send SUGGESTIONS to suggest@xxxx
<span lang=EN-AU
>> -----------------------------------------
<span lang=EN-AU
>> Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
<span lang=EN-AU
>> (Web page:
http://groups.yahoo.com/group/amiquote/messages/)
<span lang=EN-AU
>> --------------------------------------------
<span lang=EN-AU
>> Check group FAQ at:
<span lang=EN-AU
>>
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
<span lang=EN-AU
>>
<span lang=EN-AU
>> Your use of Yahoo! Groups is subject to the
Yahoo! Terms of
<span lang=EN-AU
>Service.
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>> Send BUG REPORTS to bugs@xxxx
<span lang=EN-AU
>> Send SUGGESTIONS to suggest@xxxx
<span lang=EN-AU
>> -----------------------------------------
<span lang=EN-AU
>> Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
<span lang=EN-AU
>> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
<span lang=EN-AU
>> --------------------------------------------
<span lang=EN-AU
>> Check group FAQ at:
<span lang=EN-AU
>>
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
<span lang=EN-AU
>>
<span lang=EN-AU
>> Your use of Yahoo! Groups is subject to the
Yahoo! Terms of
<span lang=EN-AU
>Service.
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>> Yahoo! Groups Sponsor
<span lang=EN-AU
>> ADVERTISEMENT
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>>
<span lang=EN-AU
>> Send BUG REPORTS to bugs@xxxx
<span lang=EN-AU
>> Send SUGGESTIONS to suggest@xxxx
<span lang=EN-AU
>> -----------------------------------------
<span lang=EN-AU
>> Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
<span lang=EN-AU
>> (Web page:
http://groups.yahoo.com/group/amiquote/messages/)
<span lang=EN-AU
>> --------------------------------------------
<span lang=EN-AU
>> Check group FAQ at:
<span lang=EN-AU
>>
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
<span lang=EN-AU
>>
<span lang=EN-AU
>> Your use of Yahoo! Groups is subject to the
Yahoo! Terms of
<span lang=EN-AU
>Service.
<span lang=EN-AU
>
<span lang=EN-AU
>
<span lang=EN-AU
>------------------------ Yahoo! Groups Sponsor
---------------------~-->
<span lang=EN-AU
>Get A Free Psychic Reading<span
lang=EN-AU>! Your Online Answer To Life's Important Questions.
<span lang=EN-AU
>http://us.click.yahoo.com/Lj3uPC/Me7FAA/CNxFAA/GHeqlB/TM
<span lang=EN-AU
>---------------------------------------------------------------------~->
<span lang=EN-AU
>
<span lang=EN-AU
>Send BUG REPORTS to bugs@xxxxxxxxxxxxx
<span lang=EN-AU
>Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
<span lang=EN-AU
>-----------------------------------------
<span lang=EN-AU
>Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
<span lang=EN-AU
>(Web page:
http://groups.yahoo.com/group/amiquote/messages/)
<span lang=EN-AU
>--------------------------------------------
<span lang=EN-AU
>Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
<span lang=EN-AU
>
<span lang=EN-AU
>Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Yahoo! Groups Sponsor
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.
|