SleepSeconds Variable - TXT Import

MQL4 Experts Integration

Job finished

Execution time 4 hours
Feedback from employee
Excellent Customer
Feedback from customer
well done.thanks.

Specification

Can someone modify the code that "SleepSeconds" variable takes its value from a csv/txt file, refreshes its value and always updates itself.  



.
.
extern int SleepSeconds = 1440;
.
.
.
int start() { 
prepare() ; 
if( CloseAll ) closeAll() ;
else { 
if( dailyGrowth / AccountBalance() < DailyGrowth && TimeCurrent() - lastTradeTime > SleepSeconds && ( marginLevel == 0 || marginLevel > MinMarginLevel ) ){ 
if( totalTrades >= MaxStartTrades && ( AccountBalance() + ( totalProfit + totalLoss ) ) / AccountBalance() < TriggerBackSystem ) backSystem();
else if( ( ContinueTrading || ( !ContinueTrading && totalTrades > 0 ) ) && ( totalTrades < MaxStartTrades || MaxStartTrades == 0 ) ) openPosition();
else if( EnableCalendar && ffCalenadarEventTime1 < NewsReleaseMinutes ) newsSystem();
}
managePositions() ; 
longStop();
}
return( 0 ) ;
}
 Attach

Files:

Responded

1
Developer 1
Rating
(620)
Projects
680
57%
Arbitration
25
16% / 60%
Overdue
228
34%
Free
2
Developer 2
Rating
(97)
Projects
121
25%
Arbitration
5
20% / 60%
Overdue
17
14%
Free

Project information

Budget
10 USD
Deadline
1 day(s)