• 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

Lock the order router automatically

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

    Lock the order router automatically

    Hello Ninjas

    I would like to develop an indicator that monitors real-time daily result (profit / loss) and according to a logic of risk management I want to block the user to send of new orders in the current day. Only in the next day will the system be able to send new orders.

    Is possible lock the NT8 order router?

    If have some tip share with me.
    Thanks.

    #2
    Hello MarceloF,

    Thank you for the post.

    You can certainly monitor the account directly but there is not really any way to prevent the user from manually using the tools of the platform. If a user wanted to utilize the manual order functions, there is really no way to block that other than extensively modifying all controls throughout the platform. Additionally, if the user had any NinjaScript running that submits orders, that's another case that really couldn't be globally blocked.

    You could block your own script from submitting orders by using logic but I would be unsure of a way to prevent the user from otherwise using the platform.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks Jesse for the answer
      The number of customer interested in a system that blocks the platform has incresing. Generally they want to make this type of security system that not letting negotiate more in the day after reaching predetermined losse or goal.

      A command to disconnect the NT8 automatically? Do you know of any command for this?

      Thanks

      Comment


        #4
        Hello MarceloF,

        There is currently no command like this. As noted if you want your custom system to have a cutoff switch you could implement that by using logic and the account performance metrics. There is currently no NinajScript way to prevent a user from using the platform or submitting orders.

        It would be advisable when the user wants to stop trading live that they disable any NinjaScript strategies that are running, disconnect and then enable the Tools -> Global Simulation Mode as that prevents live accounts from being selected throughout the platform. This is not able to be toggled while strategies that have a live account selected are applied.

        It would also not be advisable to block the user in any way like this. If they need to take action on an existing order or position and are prevented that would be a very bad situation to get into when it is not necessary. If the user was blocked and needed to manage something they would be required to call the orders desk in case of a problem. It would be advisable to manage the order/position from the users end where it could be done quickly without waiting.

        If the problem is self-control, I really couldn't suggest anything on the platform that could help with this. Any NinjaScript logic you create, you can lock by using your own logic. This would not prevent the user from disabling and re-enabling the item, but you could build further locking into an addon in which the strategy reads from for later restarts.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by remorim, Today, 12:52 PM
        0 responses
        0 views
        0 likes
        Last Post remorim
        by remorim
         
        Started by PN720, Today, 12:28 PM
        0 responses
        0 views
        0 likes
        Last Post PN720
        by PN720
         
        Started by TraderYoda, Today, 11:40 AM
        0 responses
        1 view
        0 likes
        Last Post TraderYoda  
        Started by aslane, Today, 10:54 AM
        0 responses
        6 views
        0 likes
        Last Post aslane
        by aslane
         
        Started by AChammas, Today, 08:35 AM
        0 responses
        11 views
        0 likes
        Last Post AChammas  
        Working...
        X