Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

simulated trading

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

    simulated trading

    Hello,

    I would like to create money management to my strategy.
    The idea is: Strategy is normally trading, and is calculating EMA of the equity curve. WHEN the equity curve will fall down under the EMA, the trading will continue just in "simulated mode" - just paper trading.
    EMA is still calculating. There is also sitll calculating the equity curve even we are just paperTrading.
    AFTER the equity curve will go over the EMA, the trades will be back in the "REAL MODE" so the real money.

    I have few ideas how to create the NinjaScript for this, but it will be little complicated - I will have to have own Enter methods and Exit methods, recognize the "simulated" and the "real" trading, tracing the results of the simulated trading to any collection etc etc... I am programmer so I know the principles of algorithms so It is possible to do this for me, but it will be quite complicated.

    So why I am writing,... I am just wondering if you can me advice any classes or methods of NinjaTrader for less complicated implementation of this money management.
    I dont know, maybe there are some classes and methods in NinjaTrader for something like simulated trading and then I dont have to implement this "simulation" etc...

    Thank you

    #2
    Hello zooinek,

    You can access the TradesPerformance class for the collection of Trade History. This could be used to track your equity curve for actual positions.

    See here for the reference sample on using TradePerformance statistics for money management.

    There aren't any built in methods to handle what you want to do. Since strategies are tied to a specific account, you would have to develop a simulated trade engine to manage "orders" that aren't really submitted to any actual account.(Sim101 or otherwise)
    Last edited by NinjaTrader_RyanM1; 05-15-2010, 12:02 PM.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    672 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    577 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X