Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

DrawRegion

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

    #16
    Proudly presented here today - my first official coding experiences :
    the ColoredZones01 - indicator

    Makes a backcolor / colors the area in the pricechart between 2 choosable values :

    one betwenn
    Level1a + Level1b

    and another between
    Level2a + Level2b

    Feel free to improve + ad ideas.

    ThanX for the help!
    Nice Weekend
    max-td
    Attached Files

    Comment


      #17
      Originally posted by max-td View Post
      Proudly presented here today - my first official coding experiences :
      the ColoredZones01 - indicator

      Makes a backcolor / colors the area in the pricechart between 2 choosable values :

      one betwenn
      Level1a + Level1b

      and another between
      Level2a + Level2b

      Feel free to improve + ad ideas.

      ThanX for the help!
      Nice Weekend
      max-td
      seems to be nice Work MaX, however using DrawRegion has some disadvantages , one of them is that u cannot extend the zone to the right side , but using my idea you can , see the picture attached , I think the folks at NT should do something to allow drawing zones, rectangles ..etc and using the marker in In the Initialize() method .
      BTW thanks NinjaTrader_Josh for your code.
      Attached Files
      Last edited by bobmike; 09-13-2008, 12:04 PM.

      Comment


        #18
        Hi,
        well - the right zone is not so important for me - so the indicator works for me. But just for the first view . i find no way to use it in currencie future where the values are like 1.4123 in the 6E - EU-future for example ... hm - the indicator does not accept comma-numbers.
        Any solution / ideas to this ?

        Bobmike - if you can explain your trick a bit more or better post the line-loop-thing directly - would be fine !
        max-td

        Comment


          #19
          Anyone knows how to handel that decimal value problem in the indicators varaiables ? I found no ideas searching in the forum.

          Comment


            #20
            Not sure what you are referring to. Try changing all your variable ints to doubles.
            Josh P.NinjaTrader Customer Service

            Comment


              #21
              i see - ThanX
              max-td

              Comment


                #22
                HI...Mybe this one help

                Hi Friend...
                This is Yusuf. I have attached a Script File where I tried to use DrawRegion with two inputs, The Upper Bound and The Lower Bound. While I was looking for something like BANDS instead of lines for S/R, I made this indicator (somewhat similar to ConstantLines adn complete idea taken from ConstantLines indicator available in the Indicator section). I hope it helps you to understand how DrawRegion can be used.

                I am also new to NT and in the process of learning the codes and the way it is used in script by going through various indicators already present in NT. So I felt, I must post this if it helps you in any way.

                Thanks Buddy,
                Best regards,
                Yusuf SHAIKH
                Attached Files

                Comment


                  #23
                  Good idea - i also thoght about hijacking the ConstantLines for that thing ;-)
                  tweaking playing asking sharing - the best way to learn the stuff ...
                  max-td

                  Comment


                    #24
                    Colored Bands

                    Max,

                    Also try TRO_Buy_Zone, NinjaTraderJosh has made it work here:



                    Hope That Helps,HTH
                    Kirk

                    p.s. still looking for someone to help me modify the hourly to half-hourly (i.e. top and bottom of the hour zones)
                    kz

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Mestor, 03-10-2023, 01:50 AM
                    16 responses
                    388 views
                    0 likes
                    Last Post z.franck  
                    Started by rtwave, 04-12-2024, 09:30 AM
                    4 responses
                    31 views
                    0 likes
                    Last Post rtwave
                    by rtwave
                     
                    Started by yertle, Yesterday, 08:38 AM
                    7 responses
                    29 views
                    0 likes
                    Last Post yertle
                    by yertle
                     
                    Started by bmartz, 03-12-2024, 06:12 AM
                    2 responses
                    22 views
                    0 likes
                    Last Post bmartz
                    by bmartz
                     
                    Started by funk10101, Today, 12:02 AM
                    0 responses
                    7 views
                    0 likes
                    Last Post funk10101  
                    Working...
                    X