Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Some questions in live mode

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

    Some questions in live mode

    Hello specialists

    1. In trading one instrument in one account, but with a strategy with different setups to different times (6 tabs in a chart, each one with the same strategy, but with other parameters and setups), then NT8 is generating ONE big position with an average price instead be letting the single positions running. What parameter or code I have to use for letting for example 3 contracts in Gold as their three single one-contract-trades? There are fully different setups and timeframes (and in theorie it is possible for two different directions). I dont want a merge by NinjaTrader.

    2. Is it possible, that a manual stop of a position by myself is generating a "ghost position", because the system does not check, that "over" is "over"? Sometimes I am having "ghost positions" (and each time in wrong direction), but I am relative sure, that not the strategy is the problem - more a manual intervene or an other problem while running in live mode.

    3. Synchronisation of all strategies: does not work. What is the problem for this?

    Thank you for your ideas and solutions

    Best regards,
    Rainbowtrader

    #2
    Hello Rainbowtrader,

    "What parameter or code I have to use for letting for example 3 contracts in Gold as their three single one-contract-trades? "

    Use 3 entries with unique signal names and 3 exits using the fromEntrySignals of those entry signal names. Set EntryHandling to UniqueEntries.

    Below are links to examples.



    " Is it possible, that a manual stop of a position by myself is generating a "ghost position", because the system does not check, that "over" is "over"?"

    A strategy can only see positions and orders submitted by the strategy and is not able to see positions or orders placed manually or from other strategy instances.

    "Synchronisation of all strategies: does not work. What is the problem for this?"

    Either the account is not flat when the strategy is enabled, or the strategy is not using the Wait until flat start behavior.

    Please see the video on start behavior linked in the forum post below.

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea,

      thank you for your quick reply

      1. I am using a strategy with some entries, exists, stop losses, filter and more. So I can choose for each case another entry-filter-exit-combination. Each one has the same name: "EntryLong" or "EntryShort". I have no Idea, how I could change the name for an Entry and the right Exit (ExitLong"/"ExitShort" by using the parameter list. What you say could perhaps solved for example as 6 checkboxes with the names "EntryExitNameNr1" or "CombinationNumber2"... And the Standard is Numbere one. And in case of needing number 2 the checkbox in the second using tab is marked at this. But how to code its? Or the system has to change the name by random for each trades? PS: I am using the EntryHandling to UniqueEntries. If I can use or understand the "Scaling Out" links or not... I have to proof.

      2. Okay. But closing a position or all positions are not bad for this problem, yes?

      3. I think, I do its. This are the general parameters I am using:

      BarsRequiredToTrade = 20;
      Calculate = Calculate.OnBarClose;
      EntriesPerDirection = 1;
      EntryHandling = EntryHandling.UniqueEntries;
      ExitOnSessionCloseSeconds = 300;
      IsExitOnSessionCloseStrategy = true;
      IsFillLimitOnTouch = false;
      IsInstantiatedOnEachOptimizationIteration = true;
      MaximumBarsLookBack = MaximumBarsLookBack.TwoHundredFiftySix;
      OrderFillResolution = OrderFillResolution.Standard;
      RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose;
      Slippage = 0;
      StartBehavior = StartBehavior.WaitUntilFlat;
      StopTargetHandling = StopTargetHandling.ByStrategyPosition;
      TimeInForce = TimeInForce.Day;
      TraceOrders = false;​

      Best regards,
      Rainbowtrader

      Comment


        #4
        Hello Rainbowtrader,

        May I confirm you have reviewed the examples?

        The signalName is a string provided to the entry order method.

        EnterLong(string signalName)
        EnterLong(int quantity, string signalName)
        EnterLong(int barsInProgressIndex, int quantity, string signalName)



        Use unique names instead of using the same name.


        "Okay. But closing a position or all positions are not bad for this problem, yes?"

        Manually closing positions will not close the strategy position which will cause the strategy to become out of sync with the account.


        If you are using the Wait until flat start behavior, and your account is flat when the strategy is enabled, and you don't place any manual orders, the strategy will be in sync with the account.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello Chelsea,

          I am totally busy now, I will read its as soon as possible and giving you feedback.
          Thank you for being patient

          Best regards,
          Rainbowtrader

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by llanqui, Today, 03:53 AM
          0 responses
          6 views
          0 likes
          Last Post llanqui
          by llanqui
           
          Started by burtoninlondon, Today, 12:38 AM
          0 responses
          10 views
          0 likes
          Last Post burtoninlondon  
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          15 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Yesterday, 08:42 PM
          0 responses
          11 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Yesterday, 07:51 PM
          0 responses
          14 views
          0 likes
          Last Post strategist007  
          Working...
          X