Greetings -
I have spent untold hours trying to get the efsExternal call to work.
Scoured the Forums, cut and paste code out of the EFS KnowledgeBase -- I simply cannot get this code to work - arghhh - lol...!
Any help would be much appreciated.
I am trying call the status of another script - "14C_27L_Arrow" from a 3.0R NQ M9 chart.
If that script isLong - go long on 1.5R chart, here is what is NOT working:
-----------------------------------------------
LSMA_Array[0] = LinearRegValue;
var LSMA = LinearRegValue
var xCCI = cci(27)
if (bInit == false) {
xStudy1 = wma(30);
xStudy2 = wma(17, sym("NQ H9,4R"));
bInit = true;
}
var v = xStudy1.getValue(0);
if(v == null)
return;
var x = xStudy2.getValue(0);
if(x == null)
return;
if(close(0) >= LSMA && xCCI > 0) {
if(!Strategy.isLong()) && efsExternal("14C_27L_Arrow") Strategy.isLong()) {
Strategy.doLong("Crossing Up",Strategy.CLOSE,Strategy.THISBAR) && (drawShapeRelative(0, open(-1), Shape.UPARROW , 4, Color.blue, Shape.BOTTOM));
}
} else if(close(0) <= LSMA && xCCI < 0) {
if(!Strategy.isShort()) {
Strategy.doShort("Crossing Down",Strategy.CLOSE,Strategy.THISBAR) && (drawShapeRelative(0, open(-1), Shape.DOWNARROW , 4, Color.red, Shape.BOTTOM));
}
}
if(Strategy.isLong()) {
setBarBgColor(Color.teal);
} else if(Strategy.isShort()) {
setBarBgColor(Color.brown);
}
return LSMA_Array[nOffset];
return v;
}
-------------------------------------------------
Thank you again for any help you can offer...!
cb
I have spent untold hours trying to get the efsExternal call to work.
Scoured the Forums, cut and paste code out of the EFS KnowledgeBase -- I simply cannot get this code to work - arghhh - lol...!
Any help would be much appreciated.
I am trying call the status of another script - "14C_27L_Arrow" from a 3.0R NQ M9 chart.
If that script isLong - go long on 1.5R chart, here is what is NOT working:
-----------------------------------------------
LSMA_Array[0] = LinearRegValue;
var LSMA = LinearRegValue
var xCCI = cci(27)
if (bInit == false) {
xStudy1 = wma(30);
xStudy2 = wma(17, sym("NQ H9,4R"));
bInit = true;
}
var v = xStudy1.getValue(0);
if(v == null)
return;
var x = xStudy2.getValue(0);
if(x == null)
return;
if(close(0) >= LSMA && xCCI > 0) {
if(!Strategy.isLong()) && efsExternal("14C_27L_Arrow") Strategy.isLong()) {
Strategy.doLong("Crossing Up",Strategy.CLOSE,Strategy.THISBAR) && (drawShapeRelative(0, open(-1), Shape.UPARROW , 4, Color.blue, Shape.BOTTOM));
}
} else if(close(0) <= LSMA && xCCI < 0) {
if(!Strategy.isShort()) {
Strategy.doShort("Crossing Down",Strategy.CLOSE,Strategy.THISBAR) && (drawShapeRelative(0, open(-1), Shape.DOWNARROW , 4, Color.red, Shape.BOTTOM));
}
}
if(Strategy.isLong()) {
setBarBgColor(Color.teal);
} else if(Strategy.isShort()) {
setBarBgColor(Color.brown);
}
return LSMA_Array[nOffset];
return v;
}
-------------------------------------------------
Thank you again for any help you can offer...!
cb
Comment