Trying to write a EFS for CCI audio alert and bar alert for +200 and -200 getting an error at line 39. How do I tell it to look for +200 MK
Announcement
Collapse
No announcement yet.
Having trouble with a formula I wrote
Collapse
X
-
Alex
You helped me before, so I'll ask another question(g)
Investor's Business Daily says once a stock falls -35% from it's
high, that stock is DEAD.
Question?
What is the coding to find the high of the last 52 bars ?
If there a
for I=1 to 52
......
next I
type of statement?
......or......
Is there a ready made statement like "addBand" ????
Thanks again for your past help.
Comment
-
Larry
In case you want to plot the line at 35% from the 52 period high instead of at 35% of the 52 period high (which is what David's formula returns) here is the same script with a small modification
Alex
PHP Code:var vDonchian = new DonchianStudy(52, 0);
function preMain(){
setPriceStudy(true);
}
function main(){
return vDonchian.getValue(DonchianStudy.UPPER)-(vDonchian.getValue(DonchianStudy.UPPER)*0.35);
}
Comment
Comment