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 GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,229 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        441 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        12 views
        0 likes
        Last Post FAQtrader  
        Working...
        X