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

Adding Custom Image as Alert in a chart plot

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

    Adding Custom Image as Alert in a chart plot

    Hello im registerd use for NT7 plataform iam coding some indicators and i need a ifo reference to do the follwing

    I want plot some image alerts in the nt7charts using custom image icon thats is posible?
    look image i know i can plot text alerts but i want to know the method to use custom images as alerts in NT7 or some code to replicate this image boxes and text with that styles
    Regards.


    #2
    Hello,

    This is possible by overriding the plot method.

    We do not have documentation on doing so, however you may see an example of this under Tools--> Edit NinjaScript--> Indicator--> CustomPlotSample.

    I'm also including links to a threads on this topic that may help you get started

    MatthewNinjaTrader Product Management

    Comment


      #3
      Hallo,

      I have got the same question.
      I tired the CustomPlotSample in my indicator but the plotline isn´t visible now only the stationary thresholds.

      Comment


        #4
        Hello bascher,
        Please make sure you have added the base.Plot() code in your script

        Code:
        public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
        {
        	
        	// Default plotting in base class. Uncomment if indicators holds at least one plot.
        	base.Plot(graphics, bounds, min, max);
        
                //rest of the code
        }
        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by knowmad, Today, 03:52 AM
        0 responses
        1 view
        0 likes
        Last Post knowmad
        by knowmad
         
        Started by tradingnasdaqprueba, Today, 03:42 AM
        0 responses
        2 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by Haiasi, 04-25-2024, 06:53 PM
        4 responses
        63 views
        0 likes
        Last Post effraenk  
        Started by ccbiasi, 11-23-2017, 06:06 AM
        5 responses
        2,202 views
        0 likes
        Last Post leodavis  
        Started by kujista, Yesterday, 12:39 AM
        2 responses
        14 views
        0 likes
        Last Post kujista
        by kujista
         
        Working...
        X