Hello Eugene,

I am using the Trading Schedule of:

TradingSchedule tradingSchedule = new TradingSchedule("10:05", "15:25", 
"America/New_York");

The indicator I am using (Force) only becomes available starting at 10:05. 
I am trying to also monitor Force between 9:30 and 10:05, so I changed the 
Trading Schedule (in StrategyES) and added the following exclusion:

TradingSchedule tradingSchedule = new TradingSchedule("09:30", "15:25", 
"America/New_York");
tradingSchedule.setExclusion("09:30", "10:05");

So I am getting the "Exclusion period must be within trading period in 
trading schedule." message (from TradingSchedule).

Other than modifying the TradingSchedule class OR using 9:31 instead of 
9:30 in the exclusion statement, is there a better way of accomplishing 
this objective?

Kind regards,

Ali

-- 
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jbooktrader.
For more options, visit https://groups.google.com/d/optout.

Reply via email to