Good Afternoon,
The following script is a stripped down version of an indicator I use in EFS. It operates on a 1 minute based chart and calculates either a +1 or -1 indicator. (Not just the simple moving average shown here.) This indicator is then passed to a tick based chart using the globalVariable and then ploted. When the two charts are viewed side by side, it appears the tick based chart periodically has more changes from +1 to -1 than the minute based chart. When I load the minute based EFS onto the tick based chart it computes the same extra changes from +1 to -1 as does the globalVariable plot.
How can I get the indicator passed from the minute based chart to the tick chart or the minute based EFS loaded onto the tick chart to compute exactly the same as the minute based chart without any of these extra changes.
In other words, I want the exact plot changing from +1 to -1 presented in the minute chart plotted on the tick chart with no modifictions.
Thank you in advance for your support.
Best regards,
Alan
function main() {
var vSymbol1 = Symbol1+","+Interval1;
x1MA1 = offsetSeries(eval(sma)(3,eval(low)(sym(vSymbol1))) ,0);
var M1A1 = (x1MA1.getValue(-2));
setGlobalValue("tvul",M1A1);
return (M1A1);
}
The following script is a stripped down version of an indicator I use in EFS. It operates on a 1 minute based chart and calculates either a +1 or -1 indicator. (Not just the simple moving average shown here.) This indicator is then passed to a tick based chart using the globalVariable and then ploted. When the two charts are viewed side by side, it appears the tick based chart periodically has more changes from +1 to -1 than the minute based chart. When I load the minute based EFS onto the tick based chart it computes the same extra changes from +1 to -1 as does the globalVariable plot.
How can I get the indicator passed from the minute based chart to the tick chart or the minute based EFS loaded onto the tick chart to compute exactly the same as the minute based chart without any of these extra changes.
In other words, I want the exact plot changing from +1 to -1 presented in the minute chart plotted on the tick chart with no modifictions.
Thank you in advance for your support.
Best regards,
Alan
function main() {
var vSymbol1 = Symbol1+","+Interval1;
x1MA1 = offsetSeries(eval(sma)(3,eval(low)(sym(vSymbol1))) ,0);
var M1A1 = (x1MA1.getValue(-2));
setGlobalValue("tvul",M1A1);
return (M1A1);
}
Comment