Close 50% of a position

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #89137 quote
    Stefanb
    Participant
    Senior

    I have a problem with a code.

     

    I want to close half the position in a DAX algo right after a position s taken.

    Actually i want to take 0.5 contrakt from the beginning but you can only do that manually at IG.

    Positionsize = 1

     

    a=0.5

    If Onmarket Then

    Sell a At Market

    Endif

    #89216 quote
    Nicolas
    Keymaster
    Master

    It is actually possible in manual trading but not yet in automatic trading in live. But yet to come very soon.

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

Close 50% of a position


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Stefanb @stefanb Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
7 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/20/2019
Status: Active
Attachments: No files
Logo Logo
Loading...