trailing Stop Loss once in the money

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #12158 quote
    gm74gm74
    Participant
    Average

    Hi Everyone

    I would like to have a stop loss of say 250 points and then once my current position is making a profit of 100 points, set a trailing stop loss of 100 points.
    Has anyone already coded such a stop?

     

    If not, my question for the boffins out there is: Does the code “positionperf(0)” measure the real time Point loss or point gain of my current open  position? Or only once it is closed?

     

    As then I can imagine my solution would be quite simple:

    SET STOP pLOSS 250

    if positioneperf(0)> 100 then

    SET STOP pTRAILING 100

    endif

    Have a happy trading day!

Viewing 1 post (of 1 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 Loss once in the money


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
gm74 @gm74 Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 08/24/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...