Variable Profit Target

Forums ProRealTime English forum ProOrder support Variable Profit Target

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

    My intention in the code below was to increase the profit target on subsequent trades up to a maximum of 3 trades
    but the TradeCount doesn’t update the profit target correctly.
    I would be very grateful if someone could point out what I’ve done wrong after many hours of head scratching.

     

     

    #254978

    Try replacing line 20 with this one:

    because as it is in your code, the line TradeCount = TradeCount+1 is always executed when the conditions are met, no matter whether OnMarket or Not, the sole difference is that when OnMarket no trade is entered owing to DEFPARAM CumulateOrders = False.

     

    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