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 NullPointStrategies, Today, 05:17 AM
        0 responses
        46 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        66 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X