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

Hello how to do

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

    Hello how to do

    Hello how to do to redeem there where there have been target
    example : Target 2358,75 and me redeem at 2358.75
    I can not make it whithe ninjascipt

    #2
    Hello Yesiam,

    Thank you for your post.

    Please provide clarification on your inquiry. Are you looking to ensure only a fill at a certain price?

    I look forward to your response.

    Comment


      #3
      After SetProfitTarget 1 at Buy i want to buy
      Where there was the Target
      Automaticaly with strategy

      Comment


        #4
        Hello Yesiam,

        Thank you for your response.

        You can have an Enter method that waits for the target price, it will close the current position and then open the new position. For example:

        Code:
        if (Position.MarketPosition == MarketPosition.Long && Close[0] >= myTargetPrice) // where myTargetPrice is a double that you set a value to
        {
        EnterShort();
        }
        For an example of a reversal strategy you can go to Tools > Edit NinjaScript > Strategy > SampleMaCrossover.

        For information on order methods please visit the following link: http://ninjatrader.com/support/helpG...er_methods.htm
        For information on Position please visit the following link: http://ninjatrader.com/support/helpG.../iposition.htm

        Please let me know if you have any questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by trilliantrader, 04-18-2024, 08:16 AM
        4 responses
        16 views
        0 likes
        Last Post trilliantrader  
        Started by mgco4you, Today, 09:46 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by wzgy0920, Today, 09:53 PM
        0 responses
        6 views
        0 likes
        Last Post wzgy0920  
        Started by Rapine Heihei, Today, 08:19 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        9 views
        0 likes
        Last Post Rapine Heihei  
        Working...
        X