Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Enable and Disable live trading conditionally

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

    Enable and Disable live trading conditionally

    Hi,

    I know it's not supported, but I want to make sure that it's possible if being a prof programmer.

    Is it possible to programmatically enable or disable placing live orders ?
    Is it possible to programmatically enable or disable placing live short (or only long) orders ?

    Little explaination why:
    I want to split the human , the computer and the monkey in my mind.
    The human decides according some trading rules if trading live is accepted.
    The computer (bot) also decides according to some conditions if live trading is accepted.
    The monkey will not be able to trade live until above two agree so I will make less errors and chase less trades when the monkey inside come up to trade

    If possible point me into the right direction to I can get onto my new adventure
    Last edited by Creamers; 07-05-2015, 11:54 AM.

    #2
    Hello Creamers,

    Thank you for writing in. Currently we do not provide support for changing the simulation mode via NinjaScript/C#. Another option for what you are trying to achieve is to leave Global Simulation Mode checked (File -> Global Simulation Mode), then run a strategy (Computer) that gives you an alert when its' conditions are met on the Sim101 account. Then when your own conditions (Human) are met and the strategy (Computer) has alerted you, you can disable Global Simulation Mode and begin live trading (Monkey) by creating a new strategy with the live account, or manually executing live trades. You could expand on this method by programming additional code into the first strategy to also alert you when it is no longer OK to trade live so you can manually close or exit your positions.

    Please let us know if we may be of further assistance.
    Michael M.NinjaTrader Quality Assurance

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    4 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    41 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Working...
    X