Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Allow Strategy Analyzer to start and end in Long Positions

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

    Allow Strategy Analyzer to start and end in Long Positions

    It's fine for my strategy to end in a long position in fact it's the norm because I carry positions overnight.

    It would be great if you could create the following additional tabs for setting up the strategy prior to beginning...

    On the Settings. Create a new setting under Order handling.

    Allow strategy to end in long position - check (or just assume this if the Exit on session close is left unchecked, if the Exit on session close is left unchecked, noone on earth would ever liquidate every position arbitrarily anyway, however if you want to leave this ability intact then just add the new option)

    Starting Position list. Instrument, Quantity, Price, Time, Stop Limit, Sell Limit. (so these positions can be disposed of within the strategy, allow for multiple Positions per instrument of course because the strategy may allow that)

    On the Display drop down add a new page

    Ending Positions. (Post Run, with normal position metrics, this of course will be empty if either "Allow Strategy to end in long position" or "Exit on Session close" is checked).

    On Analysis page

    Add a line that shows the "Unrealized Profit/Loss" based on the ending positions. These amounts should be excluded form all of the other metrics on the Analysis since they are not completed "trades". It would also be handy to show the "Starting Unrealized Profit/Loss" at the start of the strategy based on the market price of the first tick compared with the Starting Positions. You can show an additional metric of the "Strategy Unrealized Profit/Loss" as the difference between the "Starting Unrealized Profit/Loss" and the "Unrealized Profit/Loss" which is essentially the unrealized profit/loss that was accumulated during the analysis.

    On the Trades tab they won't show because they are "unrealized". They consequently should not affect any of the analysis results. ie. profit, etc. since they aren't finished yet.

    The final long purchases can still show on the Executions tab.

    This is actually quite easy to implement I believe having worked extensively now with the framework and the object library.

    I'll be glad to do a beta test

    #2
    Hello jrstokka,

    Thank you for your suggestion.

    I have added a vote for you to a current feature request to leave the last trade in a backtest open and elaborated with your wish to add these additional enhancements. This request is being tracked under the number SFT-2051.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Haiasi, 04-25-2024, 06:53 PM
    2 responses
    16 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    5 views
    0 likes
    Last Post Creamers  
    Started by Segwin, 05-07-2018, 02:15 PM
    12 responses
    1,786 views
    0 likes
    Last Post Leafcutter  
    Started by poplagelu, Today, 05:00 AM
    0 responses
    3 views
    0 likes
    Last Post poplagelu  
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,407 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Working...
    X