Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyzer: VWAP and cell conditons...

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

    Market Analyzer: VWAP and cell conditons...

    Hi,

    No problems creating columns for session, week and month orderflow VWAP; and columns for moving averages.

    However:
    Is it possible to create cell conditions to change colour based on the last trading price trading above/below VWAP?

    If so:
    What are the settings?

    Also:
    How do you set conditions for cells to change colour based on the last trading price trading above/below the moving average?


    Thank you

    #2
    Hello bosstrading.com.au,

    Thanks for your post.

    Unfortunately, cell conditions for an indicator column must be manually input and cannot be set to a specific plot of an indicator.

    This means that when you create a cell condition for a Market Analyzer Indicator Column, you must type the value in manually for your condition, such as 4300. Then, if the price crosses above/below that manually set value of 4300, the condition would be true and the cell color would change.

    See the ''Understanding cell conditions' section of this help guide page for more information about creating cell conditions for a Market Analyzer Column: https://ninjatrader.com/support/help...lter_condi.htm

    We are tracking interest in an internal feature request ticket for the ability to create Market Analyzer cell conditions based on dynamic variables or other columns and I have added your vote.

    This request is being tracked under the number SFT-4891.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted on the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      I have the exact same request.

      Comment


        #4
        Hello tunabomb,

        Thanks for your notes.

        I have added your vote to this feature request.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Sam028 at NexusFi gave me permission to post his script that changes the cell in the Market Analyzer column if last price is above or below the EMA 8 of some different time periods. Wondering if

          someone can see if VWAP can be substituted for the EMA 8. Thanks

          Joe

          EMA8.cs

          #region Using declarations
          using System;
          using System.Collections.Generic;
          using System.ComponentModel;
          using System.ComponentModel.DataAnnotations;
          using System.Linq;
          using System.Text;
          using System.Threading.Tasks;
          using System.Windows;
          using System.Windows.Input;
          using System.Windows.Media;
          using System.Xml.Serialization;
          using NinjaTrader.Cbi;
          using NinjaTrader.Gui;
          using NinjaTrader.Gui.Chart;
          using NinjaTrader.Gui.SuperDom;
          using NinjaTrader.Gui.Tools;
          using NinjaTrader.Data;
          using NinjaTrader.NinjaScript;
          using NinjaTrader.Core.FloatingPoint;

          #endregion

          //This namespace holds MarketAnalyzerColumns in this folder and is required. Do not change it.
          namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
          {
          public class EMA8 : MarketAnalyzerColumn
          {
          double ema;
          private MovingAverageTimeFrame timeframe;

          public enum MovingAverageTimeFrame {
          Minutes_1,
          Minutes_5,
          Minutes_15,
          Hours_1,
          Hours_2,
          Hours_4,
          }

          protected override void OnStateChange()
          {
          if (State == State.SetDefaults)
          {
          Description = @"";
          Name = "EMA8";
          Calculate = Calculate.OnPriceChange;
          }
          else if (State == State.Configure)
          {
          }
          }


          protected override void OnBarUpdate()
          {
          if (CurrentBar < 9)
          return;
          ema = EMA(Close,EMA_Period)[0];
          //ema = EMA(Closes[1],EMA_Period)[0];
          if(Close[0]>ema)
          CurrentValue = 1.0;
          else if(Close[0]<ema)
          CurrentValue = -1.0;
          else
          CurrentValue = 0.0;
          }

          region Properties
          [NinjaScriptProperty]
          [Display(Name="Moving Average Time Frame", Order=1, GroupName="Parameters")]
          public MovingAverageTimeFrame Timeframe
          { get; set; }

          [Range(1, int.MaxValue)]
          [NinjaScriptProperty]
          [Display(Name="EMA_Period", Description="Period for EMA", Order=2, GroupName="Parameters")]
          public int EMA_Period
          { get; set; }

          #endregion

          }
          }

          Comment


            #6
            Hello tunabomb,

            Thanks for your notes.

            The OrderFlowVWAP() system indicator method could be used instead of the EMA() system indicator method in the script.

            See this help guide documentation for more information about OrderFlowVWAP(): https://ninjatrader.com/support/help...flow_vwap2.htm
            Brandon H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Jonafare, 12-06-2012, 03:48 PM
            5 responses
            3,984 views
            0 likes
            Last Post rene69851  
            Started by Fitspressorest, Today, 01:38 PM
            0 responses
            2 views
            0 likes
            Last Post Fitspressorest  
            Started by Jonker, Today, 01:19 PM
            0 responses
            2 views
            0 likes
            Last Post Jonker
            by Jonker
             
            Started by futtrader, Today, 01:16 PM
            0 responses
            6 views
            0 likes
            Last Post futtrader  
            Started by Segwin, 05-07-2018, 02:15 PM
            14 responses
            1,791 views
            0 likes
            Last Post aligator  
            Working...
            X