Managing trailing stops in code

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

    Hello, this is my first post in this forum so hopefully it makes sense…..

    I use ProRealTime through my IG account. I’m trying to code a strategy that uses trailing stops, but IG require you to have a “Step” of at least 1% on trailing stops. In the case of Amazon which I want to trade, this represents 760 points which is a big more before it will move my trailing stop.

    So the question is, can I manage the stop in code in some way within ProBuilder and have my code move the stop instead of relying on the broker?

    #18123 quote
    NicolasNicolas
    Keymaster
    Legend

    Yes! That’s why I put this trailing stop code for everyone benefit on these different blog articles:

    Complete trailing stop code

    Trailing stop with the Max Favourable Excursion

    Many users here already use these codes in their own automated trading system, please feel free to do the same. They don’t use percentage price value to move stoploss, but points, it could be easily adapt though, let us know how it goes in your code.

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

Managing trailing stops in code


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Munkanu @munkanu Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
9 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/08/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...