using set stop and trail stop

Forums ProRealTime English forum ProOrder support using set stop and trail stop

Viewing 5 posts - 1 through 5 (of 5 total)
  • #130158

    Hi,

    this is my very first blog post ever so please be kind. I have no experience in programming but i am really keen to try and learn. i would like to and develop some auto trading systems. due to my lack of experience i am having trouble understanding

     

    the use of combined stops.  i would like to use an initial stop loss, then trail as the trade is in profit.

    for example – if i have ” SET STOP ploss 20 pTRAILING 10. does that mean a hard stop of 20 is in place until the trade moves in my favour? once in profit the trail stop is activated and is closer to price so the 10p trail stop is in place. i have added the code as per the instruction but like i said, i am mainly interested in how the stop loss section reads.

    many thanks,

    Lee

    #130160

    Line 37 is not allowed, you can’t combine two different kind of SL’s.

    Use

    then use Nicolas’code at https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/

    (lines 17-56) as a trailing stop.

    #130189

    you can’t combine two different kind of SL’s.

    Several of the Guidance Notes (one example below) in the link below need deleting then @Nicolas?

    In the meantime I will delete the Log to the link below in the Snippet Library to save confusion.

    A stop loss is placed at x points from average position price and it becomes a trailing stop of y points if the trailing stop level becomes closer to current price than the stop loss level (this occurs price varies favourably by
    y points – x points).

    #130193

    This kind of instruction doesn’t work in real trading because IG doesn’t allow it. It doesn’t mean that it will not be compatible with the automated trading function that will come for Interactive Broker accounts.

    2 users thanked author for this post.
    #130204

    Thanks so much guys. This has really cleared it up for me.

    cheers,

    Lee

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

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