how to set Daily Profit in every day not for the whole period defined ?
thanks for any help
and this the code i use
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1)
return;
// 1
if ( )
{
EnterShort(Convert.ToInt32(DefaultQuantity), "");
}
// 2
if ( )
(Daily_Ok == true)
{
EnterLong(Convert.ToInt32(DefaultQuantity), "");
}
// 3
if ( )
{
ExitLong(Convert.ToInt32(DefaultQuantity), "", "");
}
// 4
if ( )
{
ExitShort(Convert.ToInt32(DefaultQuantity), "", "");
}
// 5
if (SystemPerformance.AllTrades.TradesPerformance.Cur rency.CumProfit > Daily_Tp)
{
Daily_Ok = false;
}
Comment