Hi!
I need some help to write an EFS that plots EMA10 of Bollinger Bandwidth.
Any?
RSy
I need some help to write an EFS that plots EMA10 of Bollinger Bandwidth.
Any?
RSy
/* Copyright © eSignal, a division of Interactive Data Corporation. 2003. All rights reserved.
This sample eSignal Formula Script (EFS) may be modified and saved under a new
filename; however, eSignal is no longer responsible for the functionality once modified.
eSignal reserves the right to modify and overwrite this EFS file with each new release. */
////////////////////////////////////////////////////
// BandWidth Study
/////////////////////////////////////////////////////
var bb = new BollingerStudy(20, "Close", 2.0);
function main() {
var vUpper = bb.getValue(BollingerStudy.UPPER);
var vLower = bb.getValue(BollingerStudy.LOWER);
var vMiddle = bb.getValue(BollingerStudy.BASIS);
if(vUpper == null || vLower == null || vMiddle == null)
return;
return (vUpper - vLower) / vMiddle * 100;
}
Comment