if( BarsPeriod.BarsPeriodType == BarsPeriodType.Day ||
BarsPeriod.BarsPeriodType == BarsPeriodType.Week ||
( BarsPeriod.BarsPeriodType == BarsPeriodType.Minute &&BarsPeriod.Value>30 ) )
{
IsTradingHoursBreakLineVisible = false;
}
else
{
IsTradingHoursBreakLineVisible = true;
}
When I compiled it there were not compile errors or warnings.
The problem is that my script file's name did not appear in the list of available indicators. Apparently, the compiler failed to notify me of what it thought was an error.
I originally put this code segment in the State=Default because the help file states Caution: IsTradingHoursBreakLineVisible can only be set in the State=Default or State=Configure.
I moved the code segment to State=Configure and the compiler had no error and my Indicators script name appeared in available list as it should have.
Comment