i want to use it in places where i need to pass arrays between my backtester to my Report Charts.
I have the static keyword on top of my backtesting code.
for eg:
backtester code has the following
static cntTradesWithoutPullback;
static cntTradesWithPullback;
static sumRewardWithPullback , sumMaeWithPullback , sumMfeWithPullback;
cntTradesWithoutPullback=5;
Report chart needs to access this static variable. I get error
#pragma enable_static_decl(prefix)
EnableTextOutput( 3 ); // enable HTML output into report (Version 5.84 or higher!)
function GenAnalysisTableHTML( )
{
printf( "<tr bgcolor='#eeffee' >\n" );
printf( "<td><b>" +"Classification" + "</b></td>" );
printf( "<td><b>" +"Trades" + "</b></td>" );
printf( "<td><b>" +"MFE" + "</b></td>" );
printf( "<td><b>" +"MAE" + "</b></td>" );
printf( "<td><b>" +"AveProfits" + "</b></td>" );
printf( "</tr>\n" );
printf( "<tr>\n" );
printf( "<td><b>" + "Mfe with Pullback" + "</b></td>" );
printf( "<td><b>" +NumToStr( cntTradesWithPullback, 1.0 ) + "</b></td>" );
printf( "<td><b>" +NumToStr( sumMfeWithPullback / cntTradesWithPullback, 1.3 ) + "</b></td>" );
printf( "<td><b>" +"MAE" + "</b></td>" );
printf( "<td><b>" +"AveProfits" + "</b></td>" );
printf( "</tr>\n" );
printf( "</table>\n" );
}
////////////////////////////
// Main program
////////////////////////////
GenAnalysisTableHTML();