I always used BarsInProgress the way it shows on the help guide
if (BarsInProgress == 0)
{
// Do something
}
I would like to try something different and I don't know if ti will work. I use different time frames and I would use one or another depending on the time of the session. Would it possible to write a code like this?
if (ToTime(Time[0]) >= StartTime && ToTime(Time[0]) < EndTime)
{
//Use BarsInProgress = 0
}
else
{
//Use BarsInProgress = 1
}
How would I write the code to instruct to use BarsInProgress = 0 or BarsInProgress = 1
Comment