Finalize EA architecture before strategy development

This commit is contained in:
peter
2026-06-07 16:32:51 -04:00
parent fff49ea9da
commit c88216db03
11 changed files with 1512 additions and 375 deletions
+7 -1
View File
@@ -78,7 +78,13 @@ public:
// Detect new bar on current timeframe
bool IsNewBar()
{
datetime bar_time = iTime(m_symbol, PERIOD_CURRENT, 0);
return IsNewBar(PERIOD_CURRENT);
}
// Detect new bar on a supplied timeframe
bool IsNewBar(ENUM_TIMEFRAMES timeframe)
{
datetime bar_time = iTime(m_symbol, timeframe, 0);
if(m_last_bar_time == 0)
{