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

Set Moment to Trade?

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

    Set Moment to Trade?

    Hello,

    I would like to develop a strategy that will place a long position or a short position at a given moment, for example the long order is placed if the price goes 5 ticks in a row above the current price(like a trail, without going down), short order would be placed if the price goes 5 ticks in a row below current price(like a trail, without going up).

    Thanks in advance for your assistance.

    Best regards,

    quantconnect

    #2
    Hello quantconnect,

    Thank you for your post.

    Below is a basic example of how to check the direction of the Tick bars added to your script:
    Code:
            protected override void Initialize()
            {
                CalculateOnBarClose = true;
    			Add(PeriodType.Tick, 1);
            }
    
            protected override void OnBarUpdate()
            {
    			if (Closes[1][0] < Closes[1][1]
    				&& Closes[1][1] < Closes[1][2]
    				&& Closes[1][2] < Closes[1][3]
    				&& Closes[1][3] < Closes[1][4])
    			{
    				Print("Tick moved down over the last 5 bars");
    			}
            }
    I would recommend taking a look at our educational resources: http://ninjatrader.com/support/helpG..._resources.htm

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello quantconnect,

      Thank you for your post.

      Below is a basic example of how to check the direction of the Tick bars added to your script:
      Code:
              protected override void Initialize()
              {
                  CalculateOnBarClose = true;
                  Add(PeriodType.Tick, 1);
              }
      
              protected override void OnBarUpdate()
              {
                  if (Closes[1][0] < Closes[1][1]
                      && Closes[1][1] < Closes[1][2]
                      && Closes[1][2] < Closes[1][3]
                      && Closes[1][3] < Closes[1][4])
                  {
                      Print("Tick moved down over the last 5 bars");
                  }
              }
      I would recommend taking a look at our educational resources: http://ninjatrader.com/support/helpG..._resources.htm
      Thank you very much.

      I have 2 other questions:

      1)I use the Simulated Data Feed and I would like to see in some sort of log how much profit I make per trade but I don't find it. When I clic on "orders" it shows a lot of data about the orders but not the profits per order. It's the same with "executions" and "log" ,when I go to "account performance" nothing appears in its different sections.
      The only places I can see how much money I make are in "strategies" and "accounts" but these are about all the trades together, there is also "positions" where i can see how much i make during the current trade but once the trade closes I can't go back to see how much i made on that trade.

      So if I am not always in front of the screen, is there a way to see how much money every single trade makes?

      2)Do you guys(and girls) know any Broker in Belgium(like SaxoBanx, Fortuneo, etc...) who uses or allows Ninja Trader Automated Trading?

      Thanks in advance for your assistance.

      Best regards,

      quantconnect

      Comment


        #4
        Hello quantconnect,

        Thank you for your response.

        You would go to the Account Performance tab of the Control Center and set up the options as you wish and click Generate. Then the report will populate with the information you are looking for.
        For information on the Account Performance tab please visit the following link: http://ninjatrader.com/support/helpG...rmance_tab.htm

        For the broker item you would want to contact platformsales[at]ninjatrader[dot]com for information.

        Please let me know if you have any questions.

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello quantconnect,

          Thank you for your response.

          You would go to the Account Performance tab of the Control Center and set up the options as you wish and click Generate. Then the report will populate with the information you are looking for.
          For information on the Account Performance tab please visit the following link: http://ninjatrader.com/support/helpG...rmance_tab.htm

          For the broker item you would want to contact platformsales[at]ninjatrader[dot]com for information.

          Please let me know if you have any questions.
          Thank you very much.

          Best regards,

          quantconnect

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by arvidvanstaey, Today, 02:19 PM
          4 responses
          11 views
          0 likes
          Last Post arvidvanstaey  
          Started by samish18, 04-17-2024, 08:57 AM
          16 responses
          60 views
          0 likes
          Last Post samish18  
          Started by jordanq2, Today, 03:10 PM
          2 responses
          9 views
          0 likes
          Last Post jordanq2  
          Started by traderqz, Today, 12:06 AM
          10 responses
          18 views
          0 likes
          Last Post traderqz  
          Started by algospoke, 04-17-2024, 06:40 PM
          5 responses
          47 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X