Turning Trailstop into call function

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

    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
    EdvardEdvard
    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.
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

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 EdvardEdvard
2 years, 8 months ago.

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