Posted By: vicknick
crossOver() Pointer Expected Error - 04/28/23 04:47
I have the following code that goes long or short when LeadSine crosses over or under SineWave.
However, zorro returns the following error:
Is it because the rLeadSine and rSine are not series? Not sure how to proceed with this.
Code
function run() { set(LOGFILE); asset("EUR/USD"); vars Prices = series(price()); vars SineWave = series(HTSine(Prices)); if(crossOver(rLeadSine, rSine)){ enterLong(); } else if(crossUnder(rLeadSine, rSine)){ enterShort(); } }
However, zorro returns the following error:
Code
crossOver(): Pointer expected < if(crossOver(rLeadSine, rSine)){ >.
Is it because the rLeadSine and rSine are not series? Not sure how to proceed with this.