1 trade only

Viewing 2 posts - 1 through 2 (of 2 total)
  • #152105

    Hi

    How do I write code that only permits 1 trade each day. For example the market opens (large volume) and my strategy meets its criteria and opens and closes a trade. I don’t want it to open another trade (even if my entry conditions are met) until tomorrow.

    Thanking you in advance

    #152120

    There you go:

    TradeON is a flag that does the trick.

     

    2 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login