Metastock: Formel für ROC since

Ich möchte die Performamce seit Jahresbeginn im Explorer.

Ich habe Indicator builder folgenden Formel eingegeben:

MyROC:=100 * (CLOSE - ValueWhen(1,DayOfMonth() = 2 AND Month() = 1 AND Year() = 2008, CLOSE))/ ValueWhen(1,DayOfMonth() = 2 AND Month() = 1 AND Year() = 2008,CLOSE);
MyRoc

und im Explorer:

Fml("ROC Since 31.12.")

Im Chart erscheint die Performance, jedoch nicht im Explorer. Wo liegt der Fehler, nach Handbuch müsste es doch mit Fml gehen?

Submitted by Michael8241 on
Gast

Versuch Es Mal Hiermit ...

---999<------------------------

{ User inputs }
StDay:=Input("Day",1,31,1);
StMnth:=Input("Month",1,12,1);
StYear:=Input("Year",1800,2200,2006);
method:=Input("method: [1]%-percent, [2]$-points",1,2,1);
plot:=Input("plot: [1]RoC, [2]Date signal",
1,2,1);

{ Data array }
x:=C;

{ Event date's signal }
date:=Year()>StYear
OR (Year()=StYear AND (Month()>StMnth
OR Month()=StMnth AND DayOfMonth()>=StDay));
event:=date AND Alert(date=0,2);

{ Event's Close value }
start:=Cum(IsDefined(event))=1;
eventVal:=ValueWhen(1,event OR start,x);

{ RoC since chosen event }
RoCper:=(x/eventVal-1)*100;
RoCpts:=x-eventVal;

{ Select % or $ method }
eventRoC:=If(method=1,RoCper,RoCpts);
eventRoC:=If(date,eventRoC,0);

{ Plot in own window }
If(plot=1,eventRoC,event)

---999<------------------------

MfG
MS Leopard

Rückrufservice
Please describe your request so that we can prepare for the callback.
Yes, I have read the Privacy Policy note and I consent that the data provided by me, including the contact data, for the processing of the inquiry and in case of questions are electronically collected and stored. My data will only be used strictly for my request and will not be passed without my consent. This consent can be revoked any time with effect for the future.'
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Register now

Register now and test ZMP Live+ for 14 days free of charge!
  • Permanently free of charge
  • No payment information required
Help?

Do you have questions about ZMP Live? Our team will be happy to help you. Please feel free to send us a message:

Our privacy policy applies

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.