Problem with duplicate figures for symultaneous trades

Viewing 16 post (of 16 total)
  • Author
    Posts
  • #241834 quote
    JS
    Participant
    Senior

    Hi Bill,

    Your code is a bit illogical. For example, “Trade 1 & 2” are executed in December, while “Trade 3 & 4” take place in November, and so on…

    Additionally, you need to pay attention to the timeframe you are using. For instance, on November 21, you are buying at “081000”. This time can only be read if you are using a timeframe of 10 minutes or less.

    Other than that, your original code does what it is supposed to do (with the correct settings).

    If, based on my previous comments, you add “DefParam CumulateOrders=False” at the top of your code, this setting will prevent cumulative orders. This means that only the first 10 contracts will be purchased, and these must be sold first before new contracts can be bought.

Viewing 16 post (of 16 total)
  • You must be logged in to reply to this topic.

Problem with duplicate figures for symultaneous trades


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
BillTarrej @billtarrej Participant
Summary

This topic contains 15 replies,
has 4 voices, and was last updated by JS
1 year, 1 month ago.

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