Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

vroc formula

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

    vroc formula

    Hey guys:

    I have && VROC(14, 2)[0] >= 250

    I would like to have it be >= the VROC moving average time period of 14 x(times) 125% (or the VROC moving average plus 25%)...however you want to look at it.

    How would I do that?


    #2
    Originally posted by birdog View Post
    Hey guys:

    I have && VROC(14, 2)[0] >= 250

    I would like to have it be >= the VROC moving average time period of 14 x(times) 125% (or the VROC moving average plus 25%)...however you want to look at it.

    How would I do that?

    Is it not simply
    Code:
    VROC(14, 2)[0] * 1.25 >= 250
    ?

    Comment


      #3
      Originally posted by koganam View Post
      Is it not simply
      Code:
      VROC(14, 2)[0] * 1.25 >= 250
      ?
      His other view:

      original:
      Code:
      VROC(14, 2)[0] +.(VROC(14, 2)[0] *25) >= 250
      edit
      Code:
      VROC(14, 2)[0] +(VROC(14, 2)[0] *.25) >= 250
      Last edited by sledge; 11-03-2013, 08:51 PM. Reason: my decimal was in the wrong spot

      Comment


        #4
        Hello birdog,

        Thank you for your post.

        The formula given by koganam is the correct formula to compare 250 against the VROC 14 period times 125%.
        VROC(14, 2)[0] * 1.25 >= 250
        You can also do the following:
        Code:
        VROC(14, 2)[0] + (VROC(14, 2)[0]/4) >= 250
        Please let me know if I may be of further

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello birdog,

          Thank you for your post.

          The formula given by koganam is the correct formula to compare 250 against the VROC 14 period times 125%.

          You can also do the following:
          Code:
          VROC(14, 2)[0] + (VROC(14, 2)[0]/4) >= 250
          Please let me know if I may be of further
          @koganam and @Patrick...

          I think that will do it...thanks...may be nesting it into another MA but the info you gave helped...

          Is there a way to express both VROC and VOL by a percentage on the scale instead of the actual volume based on the bar look back periods and just regular VOL on the current bar? How would I force it to do that? This way, every instrument could be calculated in the same way. For example, CL, ES, or 6E would have very different volume and vroc levels. I want to standardize it by seeing them in percentages if possible. Then, if X,Y,Z conditions are true along with VOL over, say, 70% of the the total VOL in the last, say, 14 bars, then execute...

          The scale on the right would show 0-100 representing the possible volume according the the lookback period and actual current bar. 0 is not volume 100 would be at or above the largest volume from the lookback period. For the current bar, if it is over 100 then, would like for it to show what it is and maybe highlight it in red (red dot) or otherwise (similar to ZScore) with like 110%, 120% etc.

          Any thoughts on how to do something like that?



          Greg
          Last edited by birdog; 11-03-2013, 08:52 PM.

          Comment


            #6
            Hello Greg,

            Thank you for your response.

            You can find an example of how to set up such an indicator below:
            Code:
            		#region Variables
            		private int period = 14;
            		#endregion
            
            		protected override void Initialize()
            		{
            			Add(new Plot(Color.Blue, PlotStyle.Bar, "VolPercent"));
            		}
            		
            		protected override void OnBarUpdate()
            		{
            			Value.Set((Volume[0] * 100) / SMA(Volume, period)[0]);
            			
            			if(Value[0] > 100)
            				PlotColors[0][0] = Color.Red;
            			else
            				PlotColors[0][0] = Color.Blue;
            		}
            Please let me know if I may be of further assistance.

            Comment


              #7
              Originally posted by NinjaTrader_PatrickH View Post
              Hello Greg,

              Thank you for your response.

              You can find an example of how to set up such an indicator below:
              Code:
              		#region Variables
              		private int period = 14;
              		#endregion
              
              		protected override void Initialize()
              		{
              			Add(new Plot(Color.Blue, PlotStyle.Bar, "VolPercent"));
              		}
              		
              		protected override void OnBarUpdate()
              		{
              			Value.Set((Volume[0] * 100) / SMA(Volume, period)[0]);
              			
              			if(Value[0] > 100)
              				PlotColors[0][0] = Color.Red;
              			else
              				PlotColors[0][0] = Color.Blue;
              		}
              Please let me know if I may be of further assistance.
              Patrick, I am working on this...looks pretty nice. I think this will work. I will let you know...really appreciate that!!!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              647 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              368 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              108 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              571 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              573 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X