Hi folks
I have recently upgraded my esignal version from 7,5(build628) to 7,6(build636A) and the following formula which was working just fine before the upgrade, now for some or other reason just will not work. Could you please assist me to get it working again as I find it very helpful.
The formula is as follows:
function preMain(){
setPriceStudy(true);
setStudyTitle("PPoint");
setCursorLabelName("PP");
setDefaultBarThickness(1,0);
setDefaultBarStyle(PS_SOLID);
}
function main(){
var vClose = getValueAbsolute("Close",-1,",1");
var vHigha = getValueAbsolute("High",",30");//30min
var vLowa = getValueAbsolute("Low",",30");
var vOpena = getValueAbsolute("Open",",30");
var vHighb = getValueAbsolute("High",-1,",30");//Prev.30min
var vLowb = getValueAbsolute("Low",-1,",30");
var vCloseb = getValueAbsolute("Close",-1,",30");
var vMida = (vHigha+vLowa+vClose)/3;
var vMidb = (Math.max(vHigha,vHighb)+Math.min(vLowa,vLowb))/2;
//30min Average
drawLineRelative(-1,vMida,1,vMida,PS_SOLID,3,close(0)>vMida?Color.gr een:Color.red,"Line1");
//Prev 30min Average
drawLineRelative(-12,vMidb,-8,vMidb,PS_SOLID,3,close(0)>vMidb?Color.green:Colo r.red,"Line2");
//30min High
drawLineRelative(-4,vHigha,1,vHigha,PS_SOLID,3,close(0)>=vHigha?Colo r.blue:Color.black,"Line3");
//30min Low
drawLineRelative(-4,vLowa,1,vLowa,PS_SOLID,3,close(0)<=vLowa?Color.b lue:Color.black,"Line4");
//30min Open
drawLineRelative(-4,vOpena,-2,vOpena,PS_SOLID,2,Color.blue,"Line5");
//Prev.30min High
drawLineRelative(-10,vHighb,-5,vHighb,PS_SOLID,3,close(0)>=vHighb?Color.blue:Co lor.black,"Line6");
//Prev.30min Low
drawLineRelative(-10,vLowb,-5,vLowb,PS_SOLID,3,close(0)<=vLowb?Color.blue:Colo r.black,"Line7");
//Prev.30min Close
drawLineRelative(-7,vCloseb,-5,vCloseb,PS_SOLID,2,Color.blue,"Line8");
return ;}
//Would sincerely appreciate your help
Regards Kevan
I have recently upgraded my esignal version from 7,5(build628) to 7,6(build636A) and the following formula which was working just fine before the upgrade, now for some or other reason just will not work. Could you please assist me to get it working again as I find it very helpful.
The formula is as follows:
function preMain(){
setPriceStudy(true);
setStudyTitle("PPoint");
setCursorLabelName("PP");
setDefaultBarThickness(1,0);
setDefaultBarStyle(PS_SOLID);
}
function main(){
var vClose = getValueAbsolute("Close",-1,",1");
var vHigha = getValueAbsolute("High",",30");//30min
var vLowa = getValueAbsolute("Low",",30");
var vOpena = getValueAbsolute("Open",",30");
var vHighb = getValueAbsolute("High",-1,",30");//Prev.30min
var vLowb = getValueAbsolute("Low",-1,",30");
var vCloseb = getValueAbsolute("Close",-1,",30");
var vMida = (vHigha+vLowa+vClose)/3;
var vMidb = (Math.max(vHigha,vHighb)+Math.min(vLowa,vLowb))/2;
//30min Average
drawLineRelative(-1,vMida,1,vMida,PS_SOLID,3,close(0)>vMida?Color.gr een:Color.red,"Line1");
//Prev 30min Average
drawLineRelative(-12,vMidb,-8,vMidb,PS_SOLID,3,close(0)>vMidb?Color.green:Colo r.red,"Line2");
//30min High
drawLineRelative(-4,vHigha,1,vHigha,PS_SOLID,3,close(0)>=vHigha?Colo r.blue:Color.black,"Line3");
//30min Low
drawLineRelative(-4,vLowa,1,vLowa,PS_SOLID,3,close(0)<=vLowa?Color.b lue:Color.black,"Line4");
//30min Open
drawLineRelative(-4,vOpena,-2,vOpena,PS_SOLID,2,Color.blue,"Line5");
//Prev.30min High
drawLineRelative(-10,vHighb,-5,vHighb,PS_SOLID,3,close(0)>=vHighb?Color.blue:Co lor.black,"Line6");
//Prev.30min Low
drawLineRelative(-10,vLowb,-5,vLowb,PS_SOLID,3,close(0)<=vLowb?Color.blue:Colo r.black,"Line7");
//Prev.30min Close
drawLineRelative(-7,vCloseb,-5,vCloseb,PS_SOLID,2,Color.blue,"Line8");
return ;}
//Would sincerely appreciate your help
Regards Kevan
Comment