Hello, How do I add a new parameter to AdviseLong function
Below code, I wanted to add the Close[0] as a parameter to the adviseLong Funtion, however didn't work. I normalize it also.
.........................
vars Open = series(priceOpen()); vars High = series(priceHigh()); vars Low = series(priceLow()); vars Close= series(priceClose()); vars Price = series(price()); ColorUp = BLUE; ColorDn = MAGENTA;
#ifdef DO_SIGNALS SelectWFO = -1; // use the last WFO cycle for calibrating the neural net if((vLong = adviseLong(SIGNALS+BALANCED,0, #else set(LOGFILE|PLOTNOW); if((vLong = adviseLong(NEURAL+BALANCED,0, #endif change(1),change(2),change(3),change(4), range(1),range(2),range(3),range(4),Close[0]/100))> Threshold) enterLong(); #ifndef DO_SIGNALS if((vShort = adviseShort()) > Threshold) enterShort(); #endif plot("Long",vLong,NEW|LINE,BLACK); plot("Short",vShort,LINE,GREY); }