//Trades per year to reach
Profit target
//Assumptions
Profit_target_for_year=Param("ProfitTarget",10000,10000,100000,1000);
Percent_of_Profitable_trades=Param("%Profitable",0.60,0.30,0.80,0.10);
Average_Profit_Per_trade=Param("AvgProfit",900,200,1000,100);
Percent_of_unProfitable_trades=Param("%unProfitable",0.40,0.20,0.80,0.10);
Average_loss_Per_trade=Param("AvgLoss",600,200,1000,100);
total_number_of_trades_per_year=Profit_target_for_year/((Percent_of_Profitable_trades*Average_Profit_Per_trade)-(Percent_of_unProfitable_trades*Average_loss_Per_trade));
Filter=1;
AddColumn
(total_number_of_trades_per_year,
"Trades_per_year",
1);
AddColumn
(total_number_of_trades_per_year
/12,"Trades_per_Month",1);