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

Multi Time Frame Supports & Resistances

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

    Multi Time Frame Supports & Resistances

    Hello,

    I'm trying to write an indicator. But I don't decide How can i write effective and robust via Ninja.
    Simple I want to write this.

    1. Find actual swing highs and swing lows (For this ninja's swing and zigzag indicators not enough but i wrote it my own idea so this problem is solved.)
    2. Join swings if they are close enough. For example if swing one and two diff 10 pip or lesser then join it and give score 1+1=2 this support/resistance zone.
    3. Repeat 1 and 2, for Daily, Hourly and 15 min charts for example. Actually support/resistance score equel Sum(Swing * TimeFrame point).

    For more detail, when i wrote this indicator and then add one chart. Suppose this chart 15 Min. chart. First i must find necessery time frames in this example my first time frame 15 Min, 15 * 2 = 30 Min and 15 * 4 = 1 Hour. I think i must decide this time frames and add dataseries via add command in initialize method. Then foreach timeframe i must find swing lows and highs. Then if i find enough close swings i join this for new support/resistance zone and i take a scrore this zone. Suppose we find 4 swing like this.

    Swing one on 1 hour tf at 1.4002 at 01.01.2010
    Swing two on 15 Min tf at 1.4010 at 03.01.2010
    Swing three on 30 Min at 1.4000 at 05.01.2010
    Swing Four on 1 hour again 1.4008 at 10.01.2010

    I must plot horizonta line between 1.4000-1.4010(for example 1.4005) and i score it like this:

    Swing one on 1 hour tf, score is 4
    Swing two on 15 Min tf score is 1
    Swing three on 30 Min tf score is 2
    Swing Four on 1 hour tf score is 4
    Total score is 11(if this score >= parameter of threshold then plot it and if Close[0]>this line then line color is blue is Close[0] < line then line color is red)

    Actually my question is related How can i work multi time frame in one indicator efectively?

    I hope I can tell my question clearly. Thanks for your help already now.
    Last edited by aytacasan; 11-13-2010, 05:44 PM.

    #2
    example multi time frame indicator

    Re
    How can i work multi time frame in one indicator efectively?
    finnbjurvoll has posted code for a multi time frame indicator here http://www.ninjatrader.com/support/f...d.php?p=197991

    Comment


      #3
      Hi aytacasan,

      Aside from DaveE suggestion, to help you get started I've included a link that details multi-series programming: http://www.ninjatrader-support.com/H...ameInstruments

      Swing syntax: http://www.ninjatrader-support.com/H...ide.html?Swing
      Zigzag syntax: http://www.ninjatrader-support.com/H...V6/ZigZag.html
      TimNinjaTrader Customer Service

      Comment


        #4
        Hi Tim,

        I'm very pleased your interesting. I'll start to write this indicator within a few days. Before start i'll look your shared links. Thanks for sharing.

        Have a nice day.
        Last edited by aytacasan; 11-14-2010, 03:30 PM.

        Comment


          #5
          Originally posted by NinjaTrader_Tim View Post
          Hi aytacasan,

          Aside from DaveE suggestion, to help you get started I've included a link that details multi-series programming: http://www.ninjatrader-support.com/H...ameInstruments

          Swing syntax: http://www.ninjatrader-support.com/H...ide.html?Swing
          Zigzag syntax: http://www.ninjatrader-support.com/H...V6/ZigZag.html
          NinjaTrader_Tim,
          When I click on your links I get sent to advertisements that don't look anything like what I expect.



          Any suggestions as to where to find your links?

          Comment


            #6
            Hello chuckgrigsby,

            Thank you for your post.

            You can find information on multiple instruments and time frames in your code at the following link: http://www.ninjatrader.com/support/h...nstruments.htm

            Information on ZigZag at the following link: http://www.ninjatrader.com/support/h...nt7/zigzag.htm

            Information on Swing at the following link: http://www.ninjatrader.com/support/h.../nt7/swing.htm

            Please let me know if I may be of further assistance.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by GwFutures1988, Today, 02:48 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by ScottWalsh, 04-16-2024, 04:29 PM
            6 responses
            30 views
            0 likes
            Last Post ScottWalsh  
            Started by frankthearm, Today, 09:08 AM
            10 responses
            36 views
            0 likes
            Last Post frankthearm  
            Started by mmenigma, Today, 02:22 PM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by NRITV, Today, 01:15 PM
            2 responses
            9 views
            0 likes
            Last Post NRITV
            by NRITV
             
            Working...
            X