Fix compile error in OrdersEA - variable scope issue
Line 142: 'i' was declared inside for loop, not accessible outside. Fixed by declaring 'i' before the loop: int i=0; for(i=0; i<logTicketsCounter; i++)
This commit is contained in:
@@ -131,7 +131,8 @@ double CalcLots()
|
|||||||
void AddTradeToLog(ulong ticket)
|
void AddTradeToLog(ulong ticket)
|
||||||
{
|
{
|
||||||
bool rc= false;
|
bool rc= false;
|
||||||
for(int i=0; i<logTicketsCounter; i++)
|
int i=0;
|
||||||
|
for(i=0; i<logTicketsCounter; i++)
|
||||||
{
|
{
|
||||||
if(logTickets[i]==ticket)
|
if(logTickets[i]==ticket)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ double CalcLots()
|
|||||||
void AddTradeToLog(ulong ticket)
|
void AddTradeToLog(ulong ticket)
|
||||||
{
|
{
|
||||||
bool rc= false;
|
bool rc= false;
|
||||||
for(int i=0; i<logTicketsCounter; i++)
|
int i=0; for(i=0; i<logTicketsCounter; i++)
|
||||||
{
|
{
|
||||||
if(logTickets[i]==ticket)
|
if(logTickets[i]==ticket)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user