Setting Trailing stoploss by step of 100

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5235 quote
    Mashndivho
    Participant
    New

    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

    #5238 quote
    Nicolas
    Keymaster
    Master

    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 🙂

    #5278 quote
    Mashndivho
    Participant
    New

    I am using : SET STOP pTRAILING 100,

    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)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Setting Trailing stoploss by step of 100


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Mashndivho @mashndivho Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Mashndivho
9 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/11/2016
Status: Active
Attachments: No files
Logo Logo
Loading...