Don't open new position at the end of the day and at the morning
Author: leeto
Creation Date: 6/1/2015 10:06 AM
profile picture

leeto

#1
Could you help me to write condition that would prohibit to open new positions 10 minutes before market close ( 15- 50 PM EST ) and close all current position by market at 15 - 58 PM EST before market close.

Also could you tell me how does piece of code would be looks like that tells "don't open position before 13-30 AM EST "



Thx in advance !
profile picture

Eugene

#2
As these beginner questions have been raised many times before, chances are you'll find them answered somewhere in the Wiki - see FAQs and Knowledge Base:

Wealth-Lab Wiki > Knowledge Base > How do I code a rule for time of the day?

Intraday | Building blocks of Intraday trading strategies


P.S. To Wealth-Lab customers it can be made even simpler with the rule from our Community.Rules library:

* Intraday Rule: Time is later (earlier) than HHmm
profile picture

leeto

#3
thx, Eugene !

work good so far.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).