Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Create ATM exit or target using the color of (or outptut) of an indicator line

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

    Create ATM exit or target using the color of (or outptut) of an indicator line

    Hi,

    Is it possible to set a custom ATM exit or target using the output of a custom indicator?

    Specifically, I have a custom "trend" indicator line that changes colors. I.e. line is green when momentum and other factors indicate price will move up, etc.

    I would like to create and ATM that exits when the line changes colors? Is this possible?

    Thanks,

    Charles

    #2
    Hello Charles,

    Yes, in NinjaTrader 7 when developing a NinjaScript Strategy you can set the limitPrice or stopPrice of AtmStrategyChangeStopTarget() to the value from an indicator.
    Below is a link to the help guide on AtmStrategyChangeStopTarget().
    https://ninjatrader.com/support/help...stoptarget.htm

    You would need the indicator to plot a value when the line is changing color to use this as a signal for the condition to change the price of the stop or target.
    Below is a link to an example that demonstrates.
    https://ninjatrader.com/support/foru...286#post436286
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      My mistake! Wrong forum. I am using NT8. Can you point me in the right direction for NT8?"

      Comment


        #4
        Hello Charles,

        Below is a link to the NinjaTrader 8 help guide.
        https://ninjatrader.com/support/help...tegycreate.htm

        And a link to an example for NinjaTrader 8.
        https://ninjatrader.com/support/foru...238#post812238
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Impeesa, Today, 12:53 AM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by artson, Today, 05:40 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by Impeesa, Today, 03:17 AM
        0 responses
        8 views
        0 likes
        Last Post Impeesa
        by Impeesa
         
        Started by Gaterz, Yesterday, 06:52 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Marco  
        Started by dmelleady, Yesterday, 10:18 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Working...
        X