//SET STOP %TRAILING one contract

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

    Hi 🙂

     

    Say that i have 10 contracts on the market, and I only want a stop trailing on one contract.

    is there a way to do that?

    Greets Fredrik

    #201733 quote
    robertogozzi
    Moderator
    Master

    No, stops, as well as targets, are set for ALL contracts.

    You can overcome this by using a code snippet (there are dozens on this forum, just search for TRAILING STOP, or TRAILING), instead of the built-in TRAILING instrucion. Whenver you reach a desired gain for ONE contract you can close it (with AT MARKET orders, not pending ones) and let the other ones open.

    #201738 quote
    fredrikahs
    Participant
    New

    Big thanks for your reply.

    I am working in 5min candles,

    and within the candle the contracts can drop quick, and I want the trailing then to sell one of my 10 contracts only if it drops.

    currently, when I use the //SET STOP %TRAILING then it sells all my contracts.

    So, in normal, the code sells and buy in 5 min steps.

    but with this function, I would like to respond quicker with only 1 contract.

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

//SET STOP %TRAILING one contract


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
fredrikahs @fredrikahs Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by fredrikahs
3 years, 5 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 09/30/2022
Status: Active
Attachments: No files
Logo Logo
Loading...