not accumulating orders

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

    hello

    my code is not accumulating orders when actually putting a order on top of another one with real money.

    Let me explain more . My code works fine (DEFPARAM CumulateOrders = True // Cumulating positions deactivated) on the test screen in real time and the trade shows up at the exact time it should. But

    when I check if actual order was placed, it wasn’t . Its the same code exactly as I only have a single code .

    So the code shows me the trade but the actual order is not placed on the second,third order etc. .

    Thanks in advance .

    #87692 quote
    robertogozzi
    Moderator
    Master

    When you launched your strategy, how many contracts did you allow?

    If you wrote 1, no matter what your strategy does just 1 contract at most will be allowed. If youe strategy wants to buy, say, 100 contracts, then you can reduce that limit at runtime by setting a lower number when you launch the strategy.

    #87699 quote
    dac
    Participant
    New

    thanking you .

    yes I put in 1 contract as I only trade a single contract at a time i.e. 10 dollars ,not 20 dollars etc.

    I thought it was a failsafe on an individual contract , not a number of trades over a set code cycle .

    When contracts is both the value of a trade and how many trades per code cycle, i was confused.

    Maybe it’s just me!

    I will adjust .

    Thanks  again for your fast response .

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

not accumulating orders


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
dac @dac Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by dac
7 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/28/2018
Status: Active
Attachments: No files
Logo Logo
Loading...