My short positions won’t close

Forums ProRealTime English forum General trading discussions My short positions won’t close

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

    Hi,

    Please forgive my ignorance as I’m a beginner to PRT coding.

    I have a very basic code that looks at 4H charts.

    -If the previous candle closes green then it enters a long.

    -If the previous candle closes red then it enters a short.

    I am trying to get it to close at the end of each candle, this seems to be working for my long positions but not my short.

    Any advice would be greatly appreciated on why my code is not working properly.

    Thank you in advance and happy trading!

    Anton

     

     

    #186194

    Line 33 needs to be …

     

    1 user thanked author for this post.
    #186207

    Thank you very much, I appreciate it!

    1 user thanked author for this post.
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