When writing my code I have found this script to be invalid.
//MA Momentum
V6 = MA(BARS=12, STYLE=Exponential, CALC=Close); v2 = ATR(); MOMENTUM(v1)/v2 > 0.0;
Can you suggest what I have done wrong? When I remove this criteria the script is valid.
Thanks Peter
Bearski79
(Matthew Humphreys)
2
Hi Peter,
Is this the full script? I am wondering if there is a typo at the start and whether V6 = should be V1= ?
When i make this adjustment the script works on my system.
V1 = MA(BARS=12, STYLE=Exponential, CALC=Close);
v2 = ATR();
MOMENTUM(v1)/v2 > 0.0;
I have just realised that variables v1/v2 are use twice. I have included a screen shot.
Bearski79
(Matthew Humphreys)
4
Hi Peter,
You need to adjust the variable labels so there are no duplicates.
V7 = MA(BARS=12, STYLE=Exponential, CALC=Close);
V8 = ATR();
V9 = MOMENTUM(v7)/v8 > 0.0;
V1+V2+V3+V4+V5+V6+V9