Hi Guys,
I keep getting the following error in my back testing.
Line 28 SyntaxError: Missing ; before statement : var vMACD12_26.getValue (MACDStudy.SIGNAL);
I have included the part of the code to which it is reffering to.
26 function main(nProfitAmt, nStopAmt){
27 ProfitTarget1 = nProfitAmt;
28 var vMACD12_26.getValue (MACDStudy.SIGNAL);
29 var vMACD12_26.getValue (MACDStudy.MACD);
30 var vRSI14.getValue (vRSIStudy.RSI);
31 var vEMA40.getValue (MAStudy.MA);
32 var vEMA12.getValue (MAStudy.MA);
33 var vEMA26.getValue (MAStudy.MA);
34 if (Strategy.isInTrade()==true && (nNewTrade == 1)){
35 nNewTrade = 0;
36 }
Can anyone help?
Thanks
Harry
I keep getting the following error in my back testing.
Line 28 SyntaxError: Missing ; before statement : var vMACD12_26.getValue (MACDStudy.SIGNAL);
I have included the part of the code to which it is reffering to.
26 function main(nProfitAmt, nStopAmt){
27 ProfitTarget1 = nProfitAmt;
28 var vMACD12_26.getValue (MACDStudy.SIGNAL);
29 var vMACD12_26.getValue (MACDStudy.MACD);
30 var vRSI14.getValue (vRSIStudy.RSI);
31 var vEMA40.getValue (MAStudy.MA);
32 var vEMA12.getValue (MAStudy.MA);
33 var vEMA26.getValue (MAStudy.MA);
34 if (Strategy.isInTrade()==true && (nNewTrade == 1)){
35 nNewTrade = 0;
36 }
Can anyone help?
Thanks
Harry
Comment