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

talking voice? market positions from within indicator?

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

    talking voice? market positions from within indicator?

    Hi,

    I would like to do something simple:

    I trade discretionally using the charttrader using very simple ATM strategies (OCO stopp and target).

    I would like to programm a talking voice that updates me about my open positions, e.g. 20pt profit reached, etc.

    I tried programming a custom strategy , but this is of no use since it will not run whenever charttrader is open (which is open all the time)

    So an indicator...

    But how can I access the Position related functions ?


    Anyone with a good idea?

    Thank you

    Andreas

    #2
    Andreas,

    Indicators cannot access account information.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      ok, it seemed so.

      So I have a question concering strategies:

      Will a strategy continue to run (and receive all OnBarUpdate()) calls also when the charttrader window is open, or are the strategies halted as long as the charttrader is open?


      Any good idea around to help ?

      Andreas

      Comment


        #4
        Andreas,

        Strategies cannot run on the same chart as a Chart Trader. If you have two charts or run the strategy from the Strategies tab they will not interfere with each other, but remember NinjaScript strategies don't know what you have did for discretionary trades either.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          hooking Position functions

          So the solution would be to hook into NT account and position update functions.

          Is there something available?


          Andreas

          Comment


            #6
            Unfortunately this is not supported at this point in time.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Depending upon the broker platform (like IB), you could use their API to determine your PNL and then code the voice from there. I have done a lot with the IB API but don't know how well the others work...

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Belfortbucks, Today, 09:29 PM
              0 responses
              6 views
              0 likes
              Last Post Belfortbucks  
              Started by zstheorist, Today, 07:52 PM
              0 responses
              7 views
              0 likes
              Last Post zstheorist  
              Started by pmachiraju, 11-01-2023, 04:46 AM
              8 responses
              151 views
              0 likes
              Last Post rehmans
              by rehmans
               
              Started by mattbsea, Today, 05:44 PM
              0 responses
              6 views
              0 likes
              Last Post mattbsea  
              Started by RideMe, 04-07-2024, 04:54 PM
              6 responses
              33 views
              0 likes
              Last Post RideMe
              by RideMe
               
              Working...
              X