• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Possible to color Price columns via Script ?

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

    Possible to color Price columns via Script ?

    Hello,

    I need to color the price column in superdom at a specific price level.

    For example i need to paint in blue the last daily close.

    Is it possible via script, once i havent found on superdom options.

    Thks

    #2
    Hello eliastemponi,

    Thank you for the post.

    In this case, you have two ways to do this. You can either use an Indicator or create a custom Superdom Column.

    An indicator would be easiest, you could use the Prior Day OHLC indicator and select the Prior Close. You can also give the plot any color you would like and then it will display in the Price column.

    You can also review the existing superdom columns to see how those plot, it is also possible to plot next to the price column.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you Jesse,

      It was much easier than i thought.

      Just one more doubt.
      I'm having a divergence on last close values:
      The last close for ES 12-18 on market analyzer is 2915,00 and using the Prior Close indicator I get 2916,50.

      Why is it different ?

      Sorry if it´s a very simple doubt.

      Comment


        #4
        Hello eliastemponi,

        Thank you for the reply.

        This value actually can differ in this case. The LastClose in the Market Analyzer is being provided from the data provider whereas the PriorClose uses the currently downloaded data and session information to find this value.

        The difference is both in the syntax used to get this value and also the data being used.

        To recreate the LastClose specifically in the superdom, you could copy the syntax from the market analyzer column and recreate it as a superdom column or indicator.


        Here is an example of the syntax you would use in an indicator to get the LastClose:

        Code:
        protected override void OnMarketData(Data.MarketDataEventArgs marketDataUpdate)
        {
        	if (marketDataUpdate.MarketDataType == Data.MarketDataType.LastClose)
        		Value[0] = marketDataUpdate.Price;
        }
        https://ninjatrader.com/support/help...ghtsub=AddPlot


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Botan626, Today, 04:43 AM
        0 responses
        2 views
        0 likes
        Last Post Botan626  
        Started by xsgex, Yesterday, 09:46 PM
        0 responses
        3 views
        0 likes
        Last Post xsgex
        by xsgex
         
        Started by Steve L, Yesterday, 09:36 PM
        0 responses
        4 views
        0 likes
        Last Post Steve L
        by Steve L
         
        Started by krugman25, Yesterday, 09:34 PM
        0 responses
        4 views
        0 likes
        Last Post krugman25  
        Started by indy73, Yesterday, 04:42 PM
        0 responses
        15 views
        0 likes
        Last Post indy73
        by indy73
         
        Working...
        X