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 r68cervera, Today, 05:29 AM
        0 responses
        3 views
        0 likes
        Last Post r68cervera  
        Started by geddyisodin, Today, 05:20 AM
        0 responses
        6 views
        0 likes
        Last Post geddyisodin  
        Started by JonesJoker, 04-22-2024, 12:23 PM
        6 responses
        35 views
        0 likes
        Last Post JonesJoker  
        Started by GussJ, 03-04-2020, 03:11 PM
        12 responses
        3,241 views
        0 likes
        Last Post Leafcutter  
        Started by AveryFlynn, Today, 04:57 AM
        0 responses
        7 views
        0 likes
        Last Post AveryFlynn  
        Working...
        X