I am trying to create a line in the code that move the stoploss based on the certain number of points in the direction of trade, for example,
If long at position price of 100 and the highest price is 200 (i.e. move by 100 points) then set stoploss to 100; if the highest price is 300 then set stoploss to 200. In other words I am trying to trail my stoploss by 100 instead of the default 10 points. Please help
What is the prorealtime code you use to make your trailing stop? Just let us know here what you are exactly using in your code to understand correctly, please 🙂
but I see it set to trailing the the price by 100 points with 10 points step. I would like to be able to vary the trailing step ( say trail the the price by 100 points with 100 points step)
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue