Positions less than minimum stake size in orders.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #106497 quote
    Vonasi
    Moderator
    Master

    I have coded a strategy that has built into it a money management system and within this there is a minimum position size that is set with something like the following instruction:

    minstake = 0.2
    mystake = (my positionsize calculation)
    stake = max(minstake, mystake)

    The strategy simply buys the stake size in accumulating positions and then sells them all in one go at market. There is no partial closing of positions.

    For some reason I see in my orders the closing of positions that are under the minimum possible position size. How is this possible?

    See attached image.

    Screenshot_8.png Screenshot_8.png
    #106548 quote
    GraHal
    Participant
    Master

    More bugs or maybe IG have changed the rules re partial closures etc?

    Weird partial lot size … doubt IG would allow other than 0.1 increments so … mmm??

    You do unearth the weirdest of happenings Vonasi

    #106554 quote
    Vonasi
    Moderator
    Master

    You do unearth the weirdest of happenings Vonasi

    There is a direct correlation between both the quantity of bugs and the weirdness of bugs and the amount of time spent coding strategies and indicators. I really must get out more! 🙂

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

Positions less than minimum stake size in orders.


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
Vonasi @vonasi Moderator
Summary

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

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