Hi,
The EFS2 documentation doesn't show that getbarstate() works with multiple timeframes? Here's the situation. I have one script that communicates with another script through a getglobalvalue()/setglobalvalue() pair. Each script is using a different timeframe for the same symbol. Script A doesn't set a new global value unless there is a barstate_newbar event in its timeframe.
If I wanted to use the inv() function to pull A's timeframe into B's script to take advantage of the new EFS2 functions (so i would only need to have one script), shouldn't there be an easy way of finding out if another timeframe has had one of the 3 different types of BARSTATE events occur?
Something like...
if (getBarState(inv(10)) == BARSTATE_NEWBAR)
{
// insert code to react to new bar occuring in the 10 min
// timeframe of the current symbol
}
[I'm either not seeing something in the docs or I think this is a design oopsie]
The EFS2 documentation doesn't show that getbarstate() works with multiple timeframes? Here's the situation. I have one script that communicates with another script through a getglobalvalue()/setglobalvalue() pair. Each script is using a different timeframe for the same symbol. Script A doesn't set a new global value unless there is a barstate_newbar event in its timeframe.
If I wanted to use the inv() function to pull A's timeframe into B's script to take advantage of the new EFS2 functions (so i would only need to have one script), shouldn't there be an easy way of finding out if another timeframe has had one of the 3 different types of BARSTATE events occur?
Something like...
if (getBarState(inv(10)) == BARSTATE_NEWBAR)
{
// insert code to react to new bar occuring in the 10 min
// timeframe of the current symbol
}
[I'm either not seeing something in the docs or I think this is a design oopsie]
Comment