StopLoss at lowest price

Forums ProRealTime English forum ProOrder support StopLoss at lowest price

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

    Hello Community

     

    For educational purpose, i am trying to code a script where the lowest[x](low) in previous bars could acts as a strategy stop loss

    Additionally, the distance between tradeprice and stop loss price would be the Target Profit. I coded the following but seems it doesnt’t do the job.

    I would be grateful if you can explain me why this code doesn’t work properly, cause i can run up my learning curve.

    Thank you!

    #109198

    Ok it seems to be fixed. I added the NOT ONMARKET condition (edited the previous post) in the first row and it does the job. Sorry for double-posting but my internet connection is a bit weak today.

     

    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