Limiting number of trades

Forums ProRealTime English forum ProOrder support Limiting number of trades

Viewing 3 posts - 1 through 3 (of 3 total)
  • #24794

    HI,

    I’m trying to trade between specified time and limit the number of trades (2).

    I ran the test it will only trade once, will not trade up to twice a day everyday.

    Can you please help with my code?

    Thanks in Advance:)

    Here is my code:

     

    #25274

    I do not see the problem at first read. Did you try to debug the “TradeCount” variables with a GRAPH?

    You’ll find it easy to debug with this line in your code, to see if the trade count is well incrementing.

     

    #25284

    I think you should decrement by 1 after/before lines 24 and 35 (TradeCount = TradeCount - 1).

    But I did not test it.

     

Viewing 3 posts - 1 through 3 (of 3 total)

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