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

Indicator plot in market analyzer

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

    Indicator plot in market analyzer

    I have an indicator that plots a black background in the lower panel and gives an audible alert when triggered... However in market analyzer the indicator only shows the price of the instrument. I don't believe I have it coded correctly to plot anything as there is nothing in the initialize section. I would like to have it show which market the signal was given through market analyzer - perhaps highlight yellow for a minute

    if ()


    {
    BackColor = Color.Black;
    Alert("myAlert", NinjaTrader.Cbi.Priority.High, "Break in Long Trend", "Alert1.wav", 10, Color.Black, Color.Yellow);



    \}

    #2
    Hello brucelevy,

    The cell color conditions in the NinjaTrader 7 Market Analyzer columns is based on a number.

    If you want to be able to color the cells, you would need to plot a value that you can use to trigger the cell condition.

    For example, you could have the indicator plot 1 and this would be a trigger to make the cell yellow. Then plot 0 and this would remove all coloring. Then plot -1 for a red color.

    Attached is an example indicator that plots based on a cross. When there is a cross above it plots 1, when there is no cross it plots 0, when there is a cross below it plots -1. Included is a template that will set the cell color conditions to use these values.

    (edit)
    I'm also attaching a version that triggers an alert to the Alerts window directly.

    (update July 15, 2018. I'm also including an old strategy that includes sending an email.
    Below is a link to a video of testing the script.
    http://www.screencast.com/t/rMOJIa35S)
    Attached Files
    Last edited by NinjaTrader_ChelseaB; 07-15-2018, 06:39 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3

      CrossDetectionForMarketAnalyzerExample_NT8.zip (5.8 KB, 311 views)​

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by love2code2trade, 04-17-2024, 01:45 PM
      4 responses
      37 views
      0 likes
      Last Post love2code2trade  
      Started by alifarahani, Today, 09:40 AM
      2 responses
      13 views
      0 likes
      Last Post alifarahani  
      Started by junkone, Today, 11:37 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by pickmyonlineclass, Today, 12:23 PM
      0 responses
      2 views
      0 likes
      Last Post pickmyonlineclass  
      Started by frankthearm, Yesterday, 09:08 AM
      12 responses
      44 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Working...
      X