Turning Trailstop into call function

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

    Hi!
    I have some trailing stop code that I am trying to turn into a call function. Is this possible? I am running into difficulties I do not run into when just creating a call for a buy signal from an indicator.
    Thank you for any insight, and let me know if the question needs clarification!

    #226008 quote
    robertogozzi
    Moderator
    Master

    It is not simple andquite impractical to use an indicator to manage your trailing stop in a strategy.

    You should communicate several parameters to the indicator:

    • the trade is either long or short
    • entry price
    • Initial SL and TP
    • final starting point
    • final step
    • last exit price calculated
    • any other data required by the trailing stop code to make correct calculations

    and it would return an updated exit price!

    You’d rather embed the code into your strategy.

    #226121 quote
    Edvard
    Participant
    New

    Thank you for the response!

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

Turning Trailstop into call function


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Edvard @edvard_nordlund Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Edvard
2 years, 1 month ago.

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