Close 50% of a position

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #89137 quote
    StefanbStefanb
    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
    NicolasNicolas
    Keymaster
    Legend

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

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 NicolasNicolas
7 years, 9 months ago.

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