Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Based on Calcualtion of previous day

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

    ATM Based on Calcualtion of previous day

    Is it possible to create an ATM strategy that will do the following:

    1. Add the LOW, HIGH, CLOSE and Divide previous candle
    2. Take that number and compare with the next candle
    3. Make an entry at the current candle based UP or down if it hits that particular number.

    Thanks,
    Will

    #2
    Hi Will,

    Thank you for your post.

    This would not be possible via an ATM strategy, as that type of strategy is designed for manual order entry.

    This, would be possible using NinjaScript, and you could create an automated strategy that scans based on the conditions for 1 and 2, and when met an ATM strategy order is input.

    Please refer to the following section in the help guide.


    If you have any additional questions about the process you can post in the NinjaScript section of this forum for other users input, in addition to our own support throughout the process.
    Ryan O.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply.

      Is it possible you can give me an highlevel example of how to create this is Ninja Script? Just the calulation peice.

      Thanks

      Comment


        #4
        Hi iamwillj,

        You could do something like the following under OnBarUpdate()

        double previous;

        previous = ((Low[0] + High[0] + Close[0]) / Close[1]);

        if (Close[0] > previous)
        {
        EnterLong(1, "Enter long");
        }

        however, I'm not 100% sure what you mean by
        1. "Divide previous candle"
        2. "compare with the next candle"

        please clarify so that I can assist you best.
        TimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X