Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to display the monthly performance using a strategy based on daily data

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

    How to display the monthly performance using a strategy based on daily data

    Hi All

    I would like to display the monthly performance of the SPY while the MA50days > MA200days.


    While MA50days > MA200days
    e.g. January 2016 4%
    e.g. February 2016 3.5%
    e.g. March 2016 -2.5%

    I know there is this thread, http://ninjatrader.com/support/forum...ad.php?t=43941

    Does anyone know the code for this or know how to do this in the strategy wizard? Thanks

    #2
    Hello AegisX,

    The best way I can think to accomplish this would be to build a strategy which enters on the first day of the month if the 50 is above the 200 day, and closes on the last day of the month, then reopens the next day (the first) should the 50 still be above the 200 day. This would allow you to pull the monthly performance of this strategy.

    The issue with building this strategy in the builder would be writing the logic which would close the position on the last day of the month and opening it on the first; I don’t see a way this could be built in the builder, thus the strategy would have to be written in the editor.

    Please let us know if you would like a list of third parties that could write this code for you should you not be comfortable writing in the editor.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    47 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    141 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    275 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X