Can ESignal do this?
Have a percent change or returns calculation like the code below:
function preMain() {
setPriceStudy(false);
setStudyTitle("PVT");
setCursorLabelName("PVT");
}
var PVT = null;
var PVT_1 = null;
function main() {
if(getBarState()==BARSTATE_NEWBAR){
PVT_1 = PVT;
}
PVT = (((close()-close(-1))/close(-1))*100;
return PVT;
}
Then call a EMA study, which is based on price, and have the an EMA of the PVT above based on n periods?
Help is greatly appreciated, William
Have a percent change or returns calculation like the code below:
function preMain() {
setPriceStudy(false);
setStudyTitle("PVT");
setCursorLabelName("PVT");
}
var PVT = null;
var PVT_1 = null;
function main() {
if(getBarState()==BARSTATE_NEWBAR){
PVT_1 = PVT;
}
PVT = (((close()-close(-1))/close(-1))*100;
return PVT;
}
Then call a EMA study, which is based on price, and have the an EMA of the PVT above based on n periods?
Help is greatly appreciated, William
Comment