Trailing stop loss code

Forums ProRealTime English forum ProOrder support Trailing stop loss code

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

    Hello everybody!

    I am abit new to this software and i need helpwriting a trailing stop loss code.

    I want it to do as the standard in trailing stop loss in pro order.

    “Creates a trailing stop which takes as a reference the price level that created the highest profit since the position was opened” And i want it to be in $

    How do i right that in code?

    I have tried searching everywhere but never found a code that does exacly that.

    Thank you

    #114808

    I have tried searching everywhere but never found a code that does exacly that.

    Any of attached Trailing Stop codes do the job?

    Below is a link to the sources (on this website) of the Trail codes.

    Snippet Link Library

    #114881

    This is the one I use, written by Nicolas. It assumes a fixed stop loss to start with, so you have to add SET STOP PLOSS x after the line of entry code.

    You might also try this MFE code, also by Nicolas:

     

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