//////////////////////////////////////////////////
#include <profile.c>
#define run strategy
#include "Android_19.c" // <= your script
#undef run
#define CYCLES 10
function run()
{
set(INITRUN|TESTNOW|LOGFILE); // for training
NumCores = 3; // set desired number of cpu cores up to 72
setf(PlotMode,PL_FINE+PL_DIFF+PL_LONG+PL_ALL+PL_BENCHMARK); //+PL_ALLTRADES
PlotScale = 8;
NumTotalCycles = CYCLES;
LogNumber = TotalCycle; // used to generate logs for each backtest cycle
#ifdef RANDOMIZE
Detrend = RANDOMWALK;
set(PRELOAD);
#endif
strategy();
if(TotalCycle <= NumTotalCycles-1) {
plot(strf("Randomwalk%d", TotalCycle),priceOpen(),MAIN|LINE,GREY);
/* if(OpenBuys[0] > OpenBuys[2]) {plot(strf("Buy%d",TotalCycle),priceOpen(),MAIN|TRIANGLE,color(100*TotalCycle/NumTotalCycles,BLUE,YELLOW,GREEN,SILVER));} // plots triangles where Buy orders will be enterd on each randomwalk cycle
if(OpenSells[0] > OpenSells[2]) {plot(strf("Sell%d",TotalCycle),priceOpen(),MAIN|TRIANGLE4,color(100*TotalCycle/NumTotalCycles,RED,PURPLE,ORANGE,MAGENTA));} // plots triangles where Sell orders will be enterd on each randomwalk cycle
plot(strf("DrawDown%d",TotalCycle),(DrawDownMax*-1),NEW|LINE,color(100*TotalCycle/NumTotalCycles,RED,MAGENTA,PURPLE,ORANGE)); // plots new chart DrawDown for each randomwalk cycle
plot(strf("Equity%d",TotalCycle),Equity,LINE,color(100*TotalCycle/NumTotalCycles,BLUE,CYAN,YELLOW,GREEN)); // plots Equity for each randomwalk cycle
plot(strf("Balance%d",TotalCycle),Balance,LINE,GREEN+TRANSP); // plots Balance for each randomwalk cycle
*/
}
}