Hello All, I have found the following EFS prepared by Alexis and am wondering if it is possible to make the following changes;
-1- How do I get the MA lines to output on a separate window as opposed to the price bar window ?
-2- Is it possible to modify the color of the moving average for both lines, eg. if the MA is going up paint the line green and if the MA is going down, paint the line red, and apply to both lines ?
I have tried to set the line color by using the following type command, but only end up with an entirely lime green line representing the 10 period MA line
if((vMA1.getValue(MAStudy.MA)) > (vMA1.getValue(MAStudy.MA), -1)){
setBarFgColor(Color.lime,1);
}
if((vMA1.getValue(MAStudy.MA)) < (vMA1.getValue(MAStudy.MA), -1))
setBarFgColor(Color.red,1);
I have attached the original EFS, thanks in advance for any assistance.
Sincerely,
Royce Hamaguchi
-1- How do I get the MA lines to output on a separate window as opposed to the price bar window ?
-2- Is it possible to modify the color of the moving average for both lines, eg. if the MA is going up paint the line green and if the MA is going down, paint the line red, and apply to both lines ?
I have tried to set the line color by using the following type command, but only end up with an entirely lime green line representing the 10 period MA line
if((vMA1.getValue(MAStudy.MA)) > (vMA1.getValue(MAStudy.MA), -1)){
setBarFgColor(Color.lime,1);
}
if((vMA1.getValue(MAStudy.MA)) < (vMA1.getValue(MAStudy.MA), -1))
setBarFgColor(Color.red,1);
I have attached the original EFS, thanks in advance for any assistance.
Sincerely,
Royce Hamaguchi
Comment