Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automated Trading

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Automated Trading

    GM,
    is there a procedure to follow when starting a running strategy?
    When I start a strategy, this strategy is already in a trade, and if some of the tgt has been filled, then I want to adjust my stop to a different level, and it always comes back to what i have program in the strategy.

    #2
    Originally posted by The Admiral View Post
    GM,
    is there a procedure to follow when starting a running strategy?
    When I start a strategy, this strategy is already in a trade, and if some of the tgt has been filled, then I want to adjust my stop to a different level, and it always comes back to what i have program in the strategy.
    Maybe you should try some suggestions, such as:

    1. Tell the Strategy that just perform and trade from the moment you start it on

    Use this instructions in the OnBarUpdate:

    Code:
    if (Historical) 
             return;
    2. Set an automatic StopLoss order using the Set method

    Code:
    SetStopLoss("", CalculationMode.Ticks, Quant, false);
    Where Quant in this example is the number of ticks where the order triggers.

    Comment


      #3
      Pstrusi, I don't know what this means what you just wrote. When I did this strategy, I didn't write it. I constructed it with the field that are already in the system.
      Ninja has someone working on this, bc it makes no sense what it does.When I start the strategy and 1 TGT as been filled trading with 2 contracts, after the first trade, the system puts on 3 contracts, so I have to manually remove that 1 contract for it to trade 2 contracts from then on. After that, everything is ok until I turn the system off again then turn it back on.

      TY

      Comment


        #4
        Now I see what you meant. At first, it seems the typical problem when programming an automated strategy; well then wait for the right solution from support.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mestor, 03-10-2023, 01:50 AM
        16 responses
        389 views
        0 likes
        Last Post z.franck  
        Started by rtwave, 04-12-2024, 09:30 AM
        4 responses
        31 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Started by yertle, Yesterday, 08:38 AM
        7 responses
        29 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by bmartz, 03-12-2024, 06:12 AM
        2 responses
        22 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by funk10101, Today, 12:02 AM
        0 responses
        7 views
        0 likes
        Last Post funk10101  
        Working...
        X