SleepSeconds Variable - TXT Import

MQL4 专家 积分

工作已完成

执行时间4 小时
员工反馈
Excellent Customer
客户反馈
well done.thanks.

指定

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

附加的文件:

反馈

1
开发者 1
等级
(620)
项目
680
57%
仲裁
25
16% / 60%
逾期
228
34%
空闲
2
开发者 2
等级
(97)
项目
121
25%
仲裁
5
20% / 60%
逾期
17
14%
空闲

项目信息

预算
10 USD
截止日期
1 天