Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

problems wit realized PnL

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

    problems wit realized PnL

    hello everybody

    i have 2 simple problems

    im developing a simple strategy by using condition builder

    i have one question

    Can i use to define my profite target by function strategy Realized Pnl
    f.e: when i set "realized Pnl to numerical value 300" i expect profit target at 300 $ ( I want set up my profit target and stop loss in "edit strategy>set stop an targets)

    2. problem

    I have simple strategy EMA CROSSOVER and I have 2 conditions Enter Long ... and Enter short..., I defined profit target and SL, but always my entry conditions get me out of the trade before my profit target is reached

    ...to remind: im using strategy wizard - conditions builder.

    thanks

    #2
    Hello,


    1- yes, you can do thiss by selecting Strategy then Realized PnL on the left and side of the conidtion and Misc. then Numeric value on the right side of the condition.

    2- I do not know why this is happening to you. Check the value you are using to place the targets. Maybe post a screen shot of the conditions and the targets etc. and I will check to see if there is something wrong.

    To send a screenshot, click CTRL + PRINT SCREEN. Then, open up Paint from Start > Accessories > Paint. Paste into the Paint program by clicking CTRL + V. Lastly, save as a jpeg file.

    Screen shot Windows XP

    - Highlight the window you want to take a screenshot of

    - Then press ALT+Prnt Scrn


    DenNinjaTrader Customer Service

    Comment


      #3
      thanks BUT

      So thanks for promt reply... but...

      1. first solution doesnt work. When i set "realized pnl" to "numeric value" ninja trader doesnt close a trade whe the condition is accomplished


      2. Ok so

      i have 2 conditions:

      1. if ema 9 cross above ema 18 ; enter long (signal name Buy)
      2. if ema 9 cross below ema 18 ;enter long ( signal name Sell)

      i set profit target 5% ( for Sell ) ; profit target 5% ( for Buy)
      stop loss 2% ( for Sell) ; stop loss 2% ( for Buy)

      So my system always revers when EMA 9 cross EMA 18 vice versa. I want to keep my position open until my profit target is reached. What im doing wrong
      Attached Files
      Last edited by dedomraz; 09-23-2008, 07:26 AM.

      Comment


        #4
        Hello,

        1- I noticed in your CumProfit condition that you are using "==". Try using ">".

        2- This is because you cannot be both long and short within the same market. I.e. you cannot have an open long and an open short position at the same time. One will cancel the other.
        DenNinjaTrader Customer Service

        Comment


          #5
          ok so,

          1. when i try operator >(is greater) problem is still not resolved


          2.
          Ok i understand, but, when i go long and i set my profit target as sonn as emas cross but, my profit profit target is not reached. I dont wanna reverse my position immadiately

          Comment


            #6
            Hello,

            1- What are you using to determine your PnL and come to the conclusion that it is not working?

            2- You cannot keep the existing order open and open another order in the opposite direction. To do this you will need to run two different strategies. Or you can hold the second order off by using a market postion == flat condition. You will find this under the Strategy category.
            DenNinjaTrader Customer Service

            Comment


              #7
              here is it

              Thanks for reply!!

              OK so i explain

              Im developing simple strategy wehere

              if EMA 62 > EMA 200; stoch 9,3,3 crosses above 30 enterlong( namesignal Nakup)-(entry conditions and actions in tab "set1" )

              i will close trade ad PnL 100 ( 100 currency) so

              in tab set2 i set realizedPnL = 100;exit short ( namesignal Nakup)

              In options i set 10 000 USD acoount.

              my idea: Close trade if Pnl of every trade is 100 ($) ( FDAX 09-08)

              in attach is strategy
              Attached Files

              Comment


                #8
                Hello,

                Realized PnL is the PnL you have realized so it will be the profit or loss that has been closed and realized. Open orders are not included in this.

                What PnL are you looking at to tell you that this does not work?
                DenNinjaTrader Customer Service

                Comment


                  #9
                  so

                  oh... i dont understand

                  i want close my position when Pnl of position is 100 USD.

                  So what exactly mean "realizedPnL"???

                  Comment


                    #10
                    Realized PnL means PnL you have already cashed out with. You want to use Unrealized PnL or PnL that has not been solidified.
                    Josh P.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by gentlebenthebear, Today, 01:30 AM
                    0 responses
                    2 views
                    0 likes
                    Last Post gentlebenthebear  
                    Started by samish18, Yesterday, 08:31 AM
                    2 responses
                    9 views
                    0 likes
                    Last Post elirion
                    by elirion
                     
                    Started by Mestor, 03-10-2023, 01:50 AM
                    16 responses
                    389 views
                    0 likes
                    Last Post z.franck  
                    Started by rtwave, 04-12-2024, 09:30 AM
                    4 responses
                    31 views
                    0 likes
                    Last Post rtwave
                    by rtwave
                     
                    Started by yertle, Yesterday, 08:38 AM
                    7 responses
                    29 views
                    0 likes
                    Last Post yertle
                    by yertle
                     
                    Working...
                    X