Posted By: Grat
multi advise - 07/24/20 12:30
Hi,
I have a sameone like this:
my question is: is a possible optimize value in the variable vOptL and vOptS in the algo "TOTAL"
I have a sameone like this:
Code
int ii; while (algo(loop("algo1","algo2","algo3","algo4","total"))){ if (Algo == "algo1"){ ii=0; vLong12[ii] = adviseLong(DTREE,0, CO1, CU1, CN1 ); vShort12[ii] = adviseShort(); } else if (Algo == "algo2"){ ii=1; vLong12[ii] = adviseLong(DTREE,0, dAtr1, dAtr2, dAtr3, dAtr4 ); vShort12[ii] = adviseShort(); } else if (Algo == "algo3"){ ii=2; vLong12[ii] = adviseLong(DTREE,0, dALT1, dALT2, dALT3, dALT4 ); vShort12[ii] = adviseShort(); } else if (Algo == "algo4"){ ii=3; vLong12[ii] = adviseLong(DTREE,0, dLTR1, dLTR2, dLTR3, dLTR4 ); vShort12[ii] = adviseShort(); } if (Algo != "total"){ // ------------------------------ only for train each Algo/advise if (Train){ if(vLong12[ii] > 1 ) enterLong(); if( vShort12[ii] > 1 ) enterShort(); } }else{ // ------------------------------------- Total Algo if(vLong12[0] > vOptL[1] ) if(vLong12[1] > vOptL[2] ) if(vLong12[2] > vOptL[3] ) if(vLong12[3] > vOptL[4] ) { enterLong(); } if( vShort12[0] > vOptS[1] ) if( vShort12[1] > vOptS[2] ) if( vShort12[2] > vOptS[3] ) if( vShort12[3] > vOptS[4] ) { enterShort(); } } }
my question is: is a possible optimize value in the variable vOptL and vOptS in the algo "TOTAL"