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, 05:39 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by WHICKED, Today, 04:10 PM
    1 response
    28 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Trasss_Kenneth, Today, 01:49 PM
    2 responses
    55 views
    0 likes
    Last Post bltdavid  
    Started by Newtrader101, Today, 03:22 PM
    2 responses
    33 views
    0 likes
    Last Post Newtrader101  
    Started by johnMoss, Today, 01:43 PM
    5 responses
    51 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by qs121, Today, 12:24 PM
    2 responses
    49 views
    0 likes
    Last Post qs121
    by qs121
     
    Working...
    X