Trailing stop error – help needed

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #146123 quote
    ACACAC
    Participant
    New

    Hi, I have got code for my trading strategy however currently my trailing stops come into effect as soon as I am long or short. I want my code so that the trailing stops only come into effect when I am in guaranteed profit. for example if I am long and my trailing stop is 10 points I want my trailing stop to come into effect why my position is up 10 points, so that I break even as a minimum. Does anyone know how to do this and is willing to help?

    #146125 quote
    robertogozzi
    Moderator
    Master

    For the trailing stop it is advisable to use the code from lines 17 to 56 at this linkhttps://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/

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

Trailing stop error – help needed


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
ACACAC @acacac Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
5 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/01/2020
Status: Active
Attachments: No files
Logo Logo
Loading...