Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Several questions

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

    Several questions

    I have several questions, some may not strictly pertain to this section. Please answer if you can. Thanks.

    On any chart:
    how do I get cross hair.
    Presently all the volume bars are blue. How can i get them to be different color for the up or down closing price.
    How can i condnense data on the chart, see more bars in less space. The zoom out is already gray and there is plenty of space between bars.

    Now regarding strategies:

    In the condition builder (and not the code wwriting section) how do i write "OR" so that one conition OR second condition.
    How would i have a condition trigger action only once in say 5 bars, even though the condition is met again.
    How do i write in condition builder "twice" something for example I want to write "VolMA of last 10 bars to be greater than twice the VolMA of last 50 bars".
    How should i express "highest volume in last 10 bars", in other words the condition should apply to the volume that is highest in the last 10 bars.

    I have applied strategy to the chart. Each time i close the chart or the NT and reopen it I have to reapply the strategies. Saving the chart as a template does not save the strategies. The same way, i change the color of the plots on the chart and save the chart as template, when i reopen the chart the plots are there abut in default colors.

    Before i post this message, i am trying to copy and paste it in word.However after blocking this text here, right clicking does not give the option of "copy" instead there is something called "copy background" but that does not work. Anyone knows how to copy paste the text from here to wordpad or notepad.

    Thank you.

    #2
    Hi ju1234,

    One of our NinjaScript trainees will respond later today. Thank you for your patience.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi ju1234,

      Thanks for your post.

      1. Please press Ctrl + Q to change the cursor to a Cross Hair.

      2. Please go to the NinjaScript Sharing Section and download the 'Volume Color' indicator (http://www.ninjatrader-support2.com/...1&pp=15&page=3)

      3. Click in x / time axis at the bottom and hold the mouse button while moving the mouse left to right (http://www.ninjatrader-support.com/H...ingAChart.html)

      4. You can simply enter both your Conditions and then enter a check if you are already in a position or not (http://www.ninjatrader-support.com/H...mparisons.html)

      5. You could add a requirement that a certain number of bars have passed since your last entry / exit (http://www.ninjatrader-support.com/H...inceEntry.html , http://www.ninjatrader-support.com/H...SinceExit.html )

      6. You can use a offset by percentage to realize your VolMA condition (http://www.ninjatrader-support.com/H...ItemValue.html)

      7. You can do this with the MAX() function under Indicators in the wizard (http://www.ninjatrader-support.com/H...aximumMAX.html)

      8. True, you always have to reapply the strategy to the chart.

      9. Please try saving your chart customizations including the coloring as a workspace (http://www.ninjatrader-support.com/H...orkspaces.html)

      10. If you don't see the copy and paste options in the submenu, simply use Ctrl + C for copy and Ctrl + V for pasting, works like a charm.

      Have a great day!

      Comment


        #4
        Volume high?

        Thank you for your reply. I will work on each one of these as i can and i am sure i will need firther help.

        Here is one i need now though: I am trying to write in the condition builder, a condition "when volume anytime during the last 5 bars is > 1 million"

        For the left side, I have selected vol from the indicators. The drop down menu shows iinput series VOL[]. Bars aago reads 0. Should that be 5? I am unable to change it.

        In the middle is > function. But there is no selection of "Look back period". Is there supposed to be?

        Then on the right side, I will select "numeric" from the miscellaneous and then enter a number of 1000000.

        Please guide. Thanks.

        Comment


          #5
          Saving a modified indicator?

          I made a change to the indicator VOLColor which i downloaded from the shared indicators. I changed the on it to dark red andsaved it as a new file. The new file name is present in the indicators list when i go to edit-- edit ninjascript -- indicator but it is not present in the list of indicaotrs when i do right click on the chart. How do i get it in the list of indicaotrs so i can apply it?

          Comment


            #6
            Hi ju1234,

            How did you add this file to your NinjaTrader?

            With the File > Utilities > Import NinjaScript command? Please also review this link - http://www.ninjatrader-support.com/H...6/Import1.html

            Thanks!

            Comment


              #7
              New question (missed from below)

              I am trying to write in the condition builder, a condition "when volume anytime during the last 5 bars is > 1 million"

              For the left side, I have selected vol from the indicators. The drop down menu shows iinput series VOL[]. Bars aago reads 0. Should that be 5? I am unable to change it.

              In the middle is > function. But there is no selection of "Look back period". Is there supposed to be?

              Then on the right side, I will select "numeric" from the miscellaneous and then enter a number of 1000000.

              Please guide. Thanks.

              Comment


                #8
                Hi ju1234,

                Please see the attached screenshot for a condition that will allow you to realize this.

                It uses the MAX() indicator to look for when Volume over the past 5 bars exceeds the numeric value of 1 million.

                Please also review this link - http://www.ninjatrader-support.com/H...aximumMAX.html

                Here is an interesting example from our help guide, where a check for volume expansion is performed - http://www.ninjatrader-support.com/H...Expansion.html
                Attached Files

                Comment


                  #9
                  total volume

                  Hi
                  I am trying to do something similar to this but this will not work for what I want to do. what I want is to get total volume since a specific time. For example, I want to execute a trade when total volume exceeds 80,000 counting from 2:00 PM.

                  Comment


                    #10
                    trader413, you definitely can't do that with the strategy wizard. Something like that would require resetting a counter at 2PM and then summing all volumes from that point on.

                    Hopefully this code will get you started:
                    Code:
                    // int volumeSum = 0;
                    protected override void OnBarUpdate()
                    {
                        if (ToTime(Time[0]) > 140000)
                        {
                            volumeSum += Volume[0];
                            Print(volumeSum);
                        }
                    }
                    AustinNinjaTrader Customer Service

                    Comment


                      #11
                      Hi
                      Thanks. Where can I get some more info on this, do I have to reset volume if I am counting from 12:01 AM the start of a new day and how do I get access to total volume ?
                      Last edited by trader413; 09-07-2009, 10:48 PM.

                      Comment


                        #12
                        trader413, yes you would need to reset it daily (for example at session start). The total summed volume since your start time would be held in the variable volumeSum then.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        633 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        364 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        105 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        567 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        568 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X