Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

C# Guru -- Possible to execute Strategy method from Indicator

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

    C# Guru -- Possible to execute Strategy method from Indicator

    Calling C# Gurus.....is it possible to execute a Strategy method from an Indicator?

    Thanks

    #2
    Turtle Trader, this is unfortunately not supported as NinjaScript strategies would not cross communicate with other scripts.

    Comment


      #3
      You can do custom code to accomplish this, as for example my NTMT code and helpers.
      With my solution you can spawn a new strategy, but once started you cannot control it furhter.

      regards

      andreas

      www.zweisteintrading.eu

      Comment


        #4
        If the strategy is already running you could talk via:

        Static reference - a static singleton class can provide machine global access to methods and properties which are publicy exposed by a class..
        Event subscription - the indicator can bind to events or vice versa

        Shared memory /Pointers
        File system
        Winmessaging

        Database//data/ isloated storage
        Remote proc call
        DDE
        OLEDB
        You can hook a process and use a method invoker...
        it is really endless....


        loads of possbilites- one whould have to ask why you wanted to do it- perhaps the implementation is not ideal in terms of best practice ?

        sometimes it is best to look at the architecture and say: if this was a new project how would we best design it?
        Last edited by MicroTrends; 07-12-2010, 05:23 AM.
        MicroTrends
        NinjaTrader Ecosystem Vendor - micro-trends.co.uk

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        333 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X