Wait one candle

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

    If my program exit a trade and I want it too wait for 1 or two candles (5min) before it take another position, how do I write that code?

    #106811

    You have to:

    • set a flag to enable or disable trading, default=enable
    • set a counter, default=0
    • disable trading when you are OnMarket
    • start counting as soon as a trade exited (you are not OnMarket, but were OnMarket the previous bar)
    • reenable trading as the counter reaches the limit you require

    Add TRADEON to your conditions.

     

    3 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