duration of a stoploss

Forums ProRealTime English forum ProOrder support duration of a stoploss

Viewing 6 posts - 1 through 6 (of 6 total)
  • #76083

    hi guys!

    i read in some articles that an stoploss has an duration of 1 candle.

    so if i have the following code for automatic trading – the stoploss is only for 1 minute, 10 minutes, (depends on the timeframe)?

     

    @ this point: thx to nicolas for this system

    #76084

    STOP LOSS does not expire if you set it with ProOrder instructions (SET STOP LOSS,…..).

    PENDING ORDERS expire each bar (be it 1 second or 1 week) and need to be placed again if needed. Thus if you set your SL with a pending order (like Nicolas did in his code) it must be placed again if you still need it after each bar. Nicolas’code does this with lines 31-34.

    1 user thanked author for this post.
    #76085

    Correct. LIMIT and STOP orders last for one bar only. So on a ten minute time frame it is for ten minutes. If you want the order kept on the market then reissue it at each candle close or use a SET instruction to place a stop or limit on the market at a set distance from the position price. A SET instrution only has to be issued once and keeps the order on the market until the position is closed. The SET distance can be changed at any bar close by placing a new SET instruction if you want to change the value.

    1 user thanked author for this post.
    #76086

    how to write such SET instruction?

    #76088

    https://www.prorealcode.com/documentation/ploss/

     

    1 user thanked author for this post.
    #76089

    thx! all of u out there are amazing and i love this forum because u all are here!

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

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