Hi Ziko,
From your explanation:
- 8 inputs NN: open(1),close(1),high(1),low(1),volume(1),rsi(14,price_open,1))and(open(0),rsi(period:14,pr ice_open,0), i.e. previous O,H,L,C,V,RSI, current O and RSI.
- 1 output NN: rsi(14,price_open,-1), i.e next bar RSI as prediction objective.
Unfortunately your script code is not reflecting your NN data, then you need to modify the csv file with other editor (such as notepad or excel) to shift data (previous bar) and predicted RSI. If you do not careful it may generate a wrong NN data.
Refer to your EA code(RSI_NN.mq4), prior code
ret=FireNet(netnumber, inarray, outarray);
You should define the inarray, such as:
for (int i=size-1;i>=0;i--)
{
inarray[0]= iOpen(SymbolName,PeriodMinutes,i+1);
inarray[1]=iLow(SymbolName,PeriodMinutes,i+1);
inarray[2]=iLow(SymbolName,PeriodMinutes,i+1);
inarrya[3]=iHigh(SymbolName,PeriodMinutes,i+1)
inarray[4]=iClose(SymbolName,PeriodMinutes,i+1);
inarray[5]=iVolume(SymbolName,PeriodMinutes,i+1);
inarray[6]=iOpen(SymbolName,PeriodMinutes,i);
inarray[7]=iRSI(SymbolName,PeriodMinutes,14,PRICE_OPEN,i)
}
I am not expert in MT4 coding, I hope someone can modify your code precisely. Please use my first attachment (thread 1) as your reference.
Arryex