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 yertle, Yesterday, 08:38 AM
                7 responses
                28 views
                0 likes
                Last Post yertle
                by yertle
                 
                Started by bmartz, 03-12-2024, 06:12 AM
                2 responses
                21 views
                0 likes
                Last Post bmartz
                by bmartz
                 
                Started by funk10101, Today, 12:02 AM
                0 responses
                4 views
                0 likes
                Last Post funk10101  
                Started by gravdigaz6, Yesterday, 11:40 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by MarianApalaghiei, Yesterday, 10:49 PM
                3 responses
                11 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Working...
                X