PureBytes Links
Trading Reference Links
|
Tomasz, Would it make sense to
set and display the state of the "logarithmic" check box on the
parent window a la the d w m periodicity
settings?
<FONT
size=3>Bob-----Original Message-----From: Tomasz Janeczko [<A
href="">mailto:amibroker@xxxxxx]Sent: Monday,
March 10, 2003 9:02 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re:
[amibroker] Indicator Code not working after
upgradeHello,There is no styleLog anymore.Use
"logarithmic" check box in the Indicator Builder instead.Plot
(RelRocOfPrice, "RelRoc of Price", barcolor, styleOwnScale |
styleHistogram); // don't use styleLogBest regards,Tomasz
Janeczkoamibroker.com----- Original Message -----From: "Tim Gadd"
<timgadd@xxxxxxxxx>To: <amibroker@xxxxxxxxxxxxxxx>Sent:
Monday, March 10, 2003 5:56 PMSubject: [amibroker] Indicator Code not
working after upgrade> Prior to upgrading to version 4.3, the
following code worked. Now I'm> getting the error message
...>> Unknown identifier at line 29, column 10:> Plot
(RelRocOfPrice, "RelRoc of Price", barcolor, styleLog |>
-----------------------------------------------------------^>>
BTW, this indicator code is placed in the builtin price indicator>
formula.>> //Start of indicator code>> Period =
107;>> UpDay = C > Ref(C,-1);//define an up day> UpDays
= Sum(UpDay, Period);//# of up days in the period> AvgUpRoc = MA(ROC(C,1)
* UpDay,UpDays);//Average of the 1-day ROCs> for up days over the
lookback period> RelUpRoc = ROC(C,1) / Ref(AvgUpRoc,-1);//Today's 1-Day
ROC compared> to yesterday's AvgUpRoc> DnDay = C <
Ref(C,-1);//define a down day> DnDays = Sum(DnDay, Period);//# of down
days in the period> AvgDnRoc = MA(ROC(C,1) * DnDay,DnDays);//Average of
the 1-day ROCs> for down days over the lookback period> RelDnRoc =
-(ROC(C,1) / Ref(AvgDnRoc,-1));//Today's 1-Day ROC> compared to
yesterday's AvgDnRoc>> RelRocOfPrice =
IIf(UpDay,RelUpRoc-1,RelDnRoc+1);>> BarColor = IIf(UpDay,
colorDarkGreen, IIf(DnDay,> colorRed,colorBlack) );>> Plot
(RelRocOfPrice, "RelRoc of Price", barcolor, styleLog |> styleOwnScale |
styleHistogram); // THIS IS THE PROBLEM LINE>>
Plot(MA(RelRocOfPrice,3),"",colorLightBlue,styleHistogram |>
styleThick | styleOwnScale);>> //--Indicator-End-->>
If I remove the styleLog parameter from the problem line, the error>
message goes away, but the indicator no longer plots as a histogram.> It
plots all lines starting from the bottom of the pane. I have> Logarithmic
checked at the bottom of the indicator builder, as I want> to price
plotted using a logarithmic scale.>> Can someone spot the problem?
Help appreciated.>> Tim
Gadd>>>>> Send BUG REPORTS to
bugs@xxxxxxxxxxxxx> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx>
-----------------------------------------> Post AmiQuote-related messages
ONLY to: amiquote@xxxxxxxxxxxxxxx> (Web page: <A
href=""
target=_blank>http://groups.yahoo.com/group/amiquote/messages/)>
--------------------------------------------> Check group FAQ at: <A
href=""
target=_blank>http://groups.yahoo.com/group/amibroker/files/groupfaq.html>>
Your use of Yahoo! Groups is subject to <A
href=""
target=_blank>http://docs.yahoo.com/info/terms/>>>------------------------
Yahoo! Groups Sponsor ---------------------~-->DVD Rentals with No Late
Fees - Try Netflix for FREE!<A
href=""
target=_blank>http://us.click.yahoo.com/abvVKB/pEZFAA/46VHAA/GHeqlB/TM---------------------------------------------------------------------~->Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx(Web page: <A
href=""
target=_blank>http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href=""
target=_blank>http://groups.yahoo.com/group/amibroker/files/groupfaq.htmlYour
use of Yahoo! Groups is subject to <A href=""
target=_blank>http://docs.yahoo.com/info/terms/
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.
|