Short Position if actual price below last bar

Forums ProRealTime English forum ProOrder support Short Position if actual price below last bar

  • This topic has 3 replies, 2 voices, and was last updated 9 months ago by avatarJS.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #217369

    Dear all,

    I am a beginner in coding. Acutally I am looking for a solution to enter a short position once the current bar is trading lower than the low of the last bar. Then set a Stop Loss above the last bar’s high and a profit target which is 3 times the stop loss.

    Somehow this code isn’t working yet. Can anyone tell me what I do have to correct?

    Thanks a lot for your support.

    Best regards

    Simon

    #217377
    JS

    Hi Simon,

    Try this…

     

    #217409

    Thanks a lot that works much better.

    Now I have one last question. During a test session one trade was entered although the low of the bar (let’s say at price 105) was not below low the last bar (also 105) but just the same price. How do I have to adjust if the trade should be entered  just one pip lower at 104.99?

    Thanks again!

    #217413
    JS

    Hi,

    SellShort 1 contract at (Low-pipsize) Stop

    You have to control what the size of the “pipsize” is…

    For example, a “pipsize” of 1 can be divided by 100 (pipsize/100)…

     

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

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