โค้ชนี้หมายความว่ายังไงครับ
if(CloseAllWithEquityIncrease)
{
Equity_New = AccountEquity();
if( (Equity_New - Equity_Old)/Equity_Old >= EquityIncreasePercentage/100 )
{
Print("Close All With Equity Increased: ", EquityIncreasePercentage, "%");
Equity_Old = Equity_New;
CloseAllOpenOrders();
CloseAllPendingOrders();
if(StopTradeAfterEquityIncreased == true)
{
StopTradeFlag = true;
Print("Stop Trade With Equity Increased, to restart trade, exit and run the EA again");
}
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//if Equity Decreased EquityIncreasePercentage%, close all
if(C)
{
Equity_New = AccountEquity();
if( (Equity_Old - Equity_New)/Equity_Old >= EquityDecreasePercentage/100 )
{
Print("Close All With Equity Decreased: ", EquityDecreasePercentage, "%");
Equity_Old = Equity_New;
CloseAllOpenOrders();
CloseAllPendingOrders();
if(StopTradeAfterEquityDecreased == true)
{
StopTradeFlag = true;
Print("Stop Trade With Equity Decreased, to restart trade, exit and run the EA again");
}
}
}