Announcement

Collapse
No announcement yet.

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:

                    http://www.ninjatrader-support.com/v...buyzone&page=5

                    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 muratb35, Today, 03:36 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post muratb35  
                    Started by fernlicht, Today, 02:16 AM
                    2 responses
                    9 views
                    0 likes
                    Last Post fernlicht  
                    Started by fernlicht, 04-12-2021, 06:01 PM
                    1 response
                    28 views
                    0 likes
                    Last Post NinjaTrader_PaulH  
                    Started by memonolog, Today, 02:10 AM
                    3 responses
                    6 views
                    0 likes
                    Last Post memonolog  
                    Started by orenytz, Today, 12:25 AM
                    0 responses
                    8 views
                    0 likes
                    Last Post orenytz
                    by orenytz
                     
                    Working...
                    X