Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PSAR Scalper

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

    PSAR Scalper

    Hi Just Wondering if anybody can help me out on this PSAR Scapler

    I would like to take PSAR Entry point signal and minus the tick i want for pair

    i.e. (ParabolicSAR(0.02, 0.2, 0.02)) - Tick where Tick is TickSize * Number of Tick

    That is the entry point and i want to put that limit order.

    Now i want to specify 5 tick profit limit and 10 tick stop limit. with that order also. So 3 Total Limit Orders...

    Thanks

    JK

    #2
    Hello,

    Thank you for your post.

    To clarify you are wanting 5 tick profit and 10 tick stop from the entry price?

    In that case, you would use AvgPrice to set your profit limit and stop limit X number of ticks from the entry price. Please see our Help Guide article on this reference:

    MatthewNinjaTrader Product Management

    Comment


      #3
      Yes thats true. I want 5 tick profit and 10 tick stop from the entry price.It would be great if i can change it based on Trading instrument. it can be different for /es and /tf

      also how do u do entry limit where PSAR generates the signal minus 5 ticks????

      Comment


        #4
        Hello jkpdon,

        For a buy signal, you would use something similar to:
        Code:
        double myEntry = ParabolicSAR(0.02, 0.2, 0.02)[0] - TickSize * 5;
                    
                    if (your condition signal)
                    {
                        EnterLongLimit(myEntry)
                    }
        MatthewNinjaTrader Product Management

        Comment


          #5
          some how its not working out. it puts the limit correct but then cancels automatic after some time. like 30 sec


          #region Using declarations
          using System;
          using System.ComponentModel;
          using System.Diagnostics;
          using System.Drawing;
          using System.Drawing.Drawing2D;
          using System.Xml.Serialization;
          using NinjaTrader.Cbi;
          using NinjaTrader.Data;
          using NinjaTrader.Indicator;
          using NinjaTrader.Gui.Chart;
          using NinjaTrader.Strategy;
          #endregion

          // This namespace holds all strategies and is required. Do not change it.
          namespace NinjaTrader.Strategy
          {
          /// <summary>
          /// PSAR Reverals
          /// </summary>
          [Description("PSAR Reverals")]
          public class ParabolicSARRev1 : Strategy
          {
          #region Variables
          // Wizard generated variables
          // User defined variables (add any user defined variables below)
          #endregion

          /// <summary>
          /// This method is used to configure the strategy and is called once before any strategy method is called.
          /// </summary>
          protected override void Initialize()
          {
          Add(ParabolicSAR(0.02, 0.2, 0.02));

          CalculateOnBarClose = true;
          }

          /// <summary>
          /// Called on each bar update event (incoming tick)
          /// </summary>
          protected override void OnBarUpdate()
          {



          if (CrossAbove(Close, ParabolicSAR(0.02, 0.2, 0.02), 1))
          {
          double myEntry = ParabolicSAR(0.02, 0.2, 0.02)[0] - TickSize * 5;
          EnterLongLimit(myEntry);

          }
          // Condition set 2
          if (CrossBelow(Close, ParabolicSAR(0.02, 0.2, 0.02), 1))
          {
          double myEntry = ParabolicSAR(0.02, 0.2, 0.02)[0] + TickSize * 5;
          EnterShortLimit(myEntry);
          }
          }

          #region Properties
          #endregion
          }
          }

          Comment


            #6
            Hello,

            If the condition is no longer true, NinjaTrader will cancel the limit order. Please see our Reference Sample on Keeping orders alive for more information:

            MatthewNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X