I want my E.A to stop if my equity ups a fixed percent comparing the initial balance.
I coded my E.A but it can't compile. It has 2 errors. Please, help me to correct my EA.
int init()
{
int InitialEquity = AccountEquity();
int Profit = InitialEquity * 10 /100;
}
int start ()
{
int CurrentEquity = AccountEquity();
int p = (ProfitLevel/100)* InitialEquity; //error: "InitialEquity" - variable not definedif (CurrentEquity > (p + InitialEquity)) //error: "InitialEquity" - variable not defined
{
}
else
}
Hi,
I want my E.A to stop if my equity ups a fixed percent comparing the initial balance.
I coded my E.A but it can't compile. It has 2 errors. Please, help me to correct my EA.