Good Afternoon,
The following code is used to specify the symbol and time frame
when using numerous timeframes within a single EFS.
Symbol1 = "YM H7";
Interval1 = "1";
}
function main() {
if(getBarStateInterval("1")==BARSTATE_NEWBAR){
var vSymbol1 = Symbol1+","+Interval1;
xMA1 = offsetSeries(eval(sma)(3,eval(low)(sym(vSymbol1))) ,0);
When the contract changes, this requires going into each EFS to change the symbol. Is there a way to make the EFS read the chart symbol and assign the symbol to the variable "Symbol1"? If not, is there a way to change the "xMA1" formula to read the chart sysmbol? If not, can I specify the sysmbol as a global variable and read it into the EFS? I have passed numbers before but how would you write out and read in a word?
Best Regards,
Alan
The following code is used to specify the symbol and time frame
when using numerous timeframes within a single EFS.
Symbol1 = "YM H7";
Interval1 = "1";
}
function main() {
if(getBarStateInterval("1")==BARSTATE_NEWBAR){
var vSymbol1 = Symbol1+","+Interval1;
xMA1 = offsetSeries(eval(sma)(3,eval(low)(sym(vSymbol1))) ,0);
When the contract changes, this requires going into each EFS to change the symbol. Is there a way to make the EFS read the chart symbol and assign the symbol to the variable "Symbol1"? If not, is there a way to change the "xMA1" formula to read the chart sysmbol? If not, can I specify the sysmbol as a global variable and read it into the EFS? I have passed numbers before but how would you write out and read in a word?
Best Regards,
Alan
Comment