Announcement

Collapse
No announcement yet.

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

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Unsuitable, Today, 07:26 PM
    0 responses
    1 view
    0 likes
    Last Post Unsuitable  
    Started by jvanelli, Today, 06:36 PM
    1 response
    6 views
    0 likes
    Last Post jeronymite  
    Started by twitch251, Today, 05:14 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by robforee2, Today, 05:07 PM
    0 responses
    4 views
    0 likes
    Last Post robforee2  
    Started by blar58, Today, 03:16 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Working...
    X