I'm trying to create parameters for days and times to trade within NinjaScript. I'd like to enter:
- On Sundays AND after 3:30pm - shown on lines 265-267, OR
- On Mondays thru Friday before 12:00p - shown on lines 268-274
- Then I have my Buy Entry criteria beneath this - shown on lines 275-291
- My Long Entry command is shown on line 293
My indicators are entering and exiting trades correctly. However, I'm having problems with the strategy seeing my days and times correctly. For example, the strategy is entering in trades on Monday thru Friday AFTER 12:00p, but based on lines 268-274, I shouldn't enter in trades after 12:00p on Mon-Fri. I think my parentheses are off, but am unsure where I'm going wrong. Can you please take a look and tell me where I'm going wrong?
Comment