Close trade based on duration (# units)

Forums ProRealTime English forum ProRealTime platform support Close trade based on duration (# units)

  • This topic has 1 reply, 2 voices, and was last updated 6 months ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #233355

    Does Proreal Time Auto trader have functionality to close a trade based on #units since trade opened?

    #233356
    JS

    That is certainly possible, for example you can use:

    BarIndex-TradeIndex(1)>= #Units

    Example:

    If OnMarket and BarIndex-TradeIndex(1)>=5 then

      Sell at Market

      ExitShort at Market

    EndIf

    1 user 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