trailing Stop Loss once in the money

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #12158 quote
    gm74
    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.

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
Logo Logo
Loading...