see if this gives the right answer - you might want a simple ma, easy to edit.
var vEMA13 = new MAStudy(13, 0, "Close", MAStudy.EXPONENTIAL);
var vEMA13_of_Open = new MAStudy(13, 0, "Open", MAStudy.EXPONENTIAL);
var vEMA13_of_High = new MAStudy(13, 0, "High", MAStudy.EXPONENTIAL);
var vEMA13_of_Low = new MAStudy(13, 0, "Low", MAStudy.EXPONENTIAL);
function preMain() {
setPriceStudy(false);
setStudyTitle("RainyDayWomen");
}
function main() {
vOpen=vEMA13_of_Open.getValue(MAStudy.MA)
vClose=vEMA13.getValue(MAStudy.MA)
vHigh=vEMA13_of_High.getValue(MAStudy.MA)
vLow=vEMA13_of_Low.getValue(MAStudy.MA)
Comment