• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 Strategy Builder PnL Request

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

    NT8 Strategy Builder PnL Request

    I tried to setup a PnL limit for a strategy I built using Strategy Builder in NT8. I wanted to find out if hitting a certain profit target and then quit trading for the day worked well.
    I put in 500 as the realized PnL and the test was for 20 days. The strategy hit the PnL the first day and then did not trade again for the next 19 days. NT Support said the Pnl could not reset for a multi day test which makes it nearly worthless.

    I am asking if NT would find a way in Strategy Builder to make the Realized PnL reset at the end of each day's close.

    #2
    Hello 123r34,

    To reset a variable that is tracking the daily PnL, you would need to accumulate the PnL to a variable.
    The Strategy Builder in NinjaTrader 8 is not able to do compound assignments and is only able to do simple assignments. In other words, it would not be able to accumulate PnL values to a variable.

    Preventing a strategy from trading after an amount of loss or gain requires some math as well as / or compound assignments. This would be something more advanced that what the Strategy Builder is capable of. (The Strategy Wizard in NinjaTrader 7 is also not capable of math or compound assignments)

    Below are links to a examples of a daily loss limit for NT7. The concept is the same for NT8.
    http://ninjatrader.com/support/forum...367#post475367
    https://ninjatrader.com/support/foru...308#post377308
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by saeed, Today, 02:07 PM
    2 responses
    7 views
    0 likes
    Last Post saeed
    by saeed
     
    Started by 7robert, Today, 01:40 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by bortz, Today, 12:57 PM
    2 responses
    16 views
    0 likes
    Last Post bortz
    by bortz
     
    Started by richa61416, Today, 01:18 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Robotman, Today, 01:08 PM
    0 responses
    6 views
    0 likes
    Last Post Robotman  
    Working...
    X