Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyzer column question

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

    Market Analyzer column question

    Hi..Is it possible to create within Market Analyzer a column that shows what percent last price is from 52 week high. i.e. 52 week high 100, last 95, column displays -5.00%.

    Thanks

    #2
    Hello derivtrader,

    Thank you for the post.

    Yes that is possible. As a starting point you could review the existing High52Weeks column in the NinjaScript editor. That would be how to get the 52 week high metric from a column. You could duplicate this script as well if you wanted to just start with that code in a script.

    Next you would need to create a double variable and store the 52 week high.

    Finally during the OnMarketData events you could observe the MarketDataType.Last events and during those events calculate the price using the variable and current market price. (See LastPrice column code).

    The calculated value can then be set to CurrentValue.



    I look forward to being of further assistance.




    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse thank you for the reply. Unfortunately above my minimal programming knowledge. Was hoping for a solution using properties configuration.

      Comment


        #4
        Hello derivtrader,

        This type of calculation would require making an indicator or custom column to calculate the value unfortunately.

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,965 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Today, 06:48 PM
        0 responses
        4 views
        0 likes
        Last Post rbeckmann05  
        Started by rhyminkevin, Today, 04:58 PM
        4 responses
        52 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by iceman2018, Today, 05:07 PM
        0 responses
        5 views
        0 likes
        Last Post iceman2018  
        Started by lightsun47, Today, 03:51 PM
        0 responses
        8 views
        0 likes
        Last Post lightsun47  
        Working...
        X