Trailing stop error – help needed

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #146123 quote
    ACACACACACAC
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
6 years ago.

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