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

Adjusting Scalping Amount

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

    Adjusting Scalping Amount

    I was wondering if there would be any way to adjust my scalping amount depending upon how much slippage I suffer from. My Strategy updates using limit orders. What I would like to do is set the scalp amount a certain distance away from the price that initially received the entry signal.

    #2
    cboat, could you please clarify what you mean? You can place limit orders at whatever price you want. If you get a signal at a certain price, you can just save that price and submit an order +/- some distance.
    AustinNinjaTrader Customer Service

    Comment


      #3
      I understand that. An example would be that my strategy gets it's entry signal at 1.00. Yet due to slippage I do not get a position at 1.00 rather 1.05. Now if my scalp amount is set to 10 cents, is there a way to reduce my scalp by the amount of slippage I had. I.E. .05

      Comment


        #4
        cboat, I'm not quite sure what you mean by "reduce my scalp". If I'm interpreting you right, you could create some DataSeries/array of desired fills vs actual fills to get an average slippage and then offset your entry by that amount.
        AustinNinjaTrader Customer Service

        Comment


          #5
          i'm sorry i didn't mean "scalp" I meant to say profit taking. And if it is at all possible i would like to run this part of the strategy on every order rather that taking an average.

          Comment


            #6
            Then yes, that is definitely possible. You just have to call SetProfitTarget() with the appropriate arguments.
            AustinNinjaTrader Customer Service

            Comment


              #7
              is there a way to set my profit target against the close of the previous bar instead of the open of the current bar?

              Comment


                #8
                cboat, yes, you can reference the previous bar's close with Close[1]:
                Code:
                double prevClose = Close[1];
                AustinNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by DJ888, Today, 10:57 PM
                0 responses
                5 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by MacDad, 02-25-2024, 11:48 PM
                7 responses
                158 views
                0 likes
                Last Post loganjarosz123  
                Started by Belfortbucks, Today, 09:29 PM
                0 responses
                7 views
                0 likes
                Last Post Belfortbucks  
                Started by zstheorist, Today, 07:52 PM
                0 responses
                7 views
                0 likes
                Last Post zstheorist  
                Started by pmachiraju, 11-01-2023, 04:46 AM
                8 responses
                151 views
                0 likes
                Last Post rehmans
                by rehmans
                 
                Working...
                X