• 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

  • eliastemponi
    started a topic Possible to color Price columns via Script ?

    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

  • NinjaTrader_Jesse
    replied
    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.

    Leave a comment:


  • eliastemponi
    replied
    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.

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    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.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by ntbone, Yesterday, 08:10 PM
0 responses
8 views
0 likes
Last Post ntbone
by ntbone
 
Started by chrislou, 08-28-2015, 03:27 AM
14 responses
2,881 views
0 likes
Last Post nkhoi
by nkhoi
 
Started by outofstock, Yesterday, 06:40 PM
2 responses
8 views
0 likes
Last Post outofstock  
Started by saeed, Yesterday, 12:32 PM
3 responses
41 views
0 likes
Last Post NinjaTrader_PatrickG  
Started by motog4, Yesterday, 11:42 AM
3 responses
21 views
0 likes
Last Post NinjaTrader_PatrickG  
Working...
X