• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Woodies CCI

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

  • Oferedry
    started a topic Woodies CCI

    Woodies CCI

    Hi
    We can find this indicator In ninjatrader 7.
    Can anybody help me with adding an arrows on the indicator ?
    Every time the CCI (etch of those two) crossing the +200 & -200 levels?

    Please see the pic attached

    Thank you
    Attached Files

  • Oferedry
    replied
    You are great!!!
    Thank you!

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    Hello Oferedry,

    Thanks for your post.

    By default all draw objects will appear on the price panel. To have your indicator draw objects (arrows) show in the indicator panel you will need to set DrawOnPricePanel = false; in initialize(). Please see: http://ninjatrader.com/support/helpG...pricepanel.htm

    From the NT7 helpguide regarding draw objects tag name: A user defined unique id used to reference the draw object. For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time.

    Your draw arrow statement has a tagname. The tag name is used to identify each draw object on the chart/panel. If you use the same tag name then only the very latest occurance of the draw object will appear. The function is to first see if a draw object of the same tag name exists, if so, it removes that object then draws the new object in the new location. To show all the arrows, each arrow will need a unique tagname. One easy way to do this is to add the CurrentBar number to the tag name. for example "OferTagU"+CurrrentBar will produce a tagname of OferTagU1006 on the arrow on the 1006th bar.

    examples:
    DrawArrowUp("OferTagU"+CurrentBar, true, 0, High[0] + TickSize, Color.Red);

    DrawArrowUp("OferTagD"+CurrentBar, true, 0, Low[0] - TickSize, Color.Green);

    Leave a comment:


  • Oferedry
    replied
    Thank you!
    I tried to do that with an indicator
    I added this to the code:

    if (CrossAbove(DYNPrice, 68, 1) && (CrossAbove(DYNPrice, DYNSignal,1)&& CrossAbove(DYNPrice,Upper,1)) );
    DrawArrowUp("OferTagU", true, 0, High[0] + TickSize, Color.Red);
    if (CrossBelow(DYNPrice, 32, 1) && CrossBelow(DYNPrice, DYNSignal,1)&& CrossBelow(DYNPrice,Lower,1));
    DrawArrowUp("OferTagD", true, 0, Low[0] - TickSize, Color.Green);

    But instead arrows on the indicator, I got it's on the chart, and only once...(i need the arrows shows where it ever happened on the indicator panel
    Can you help me to correct it?

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    Hello Oferedry,

    Thanks for your post.

    To draw arrows you would use the DrawArrowUp() or DrawArrowDown() as needed.
    http://ninjatrader.com/support/helpG...rawarrowup.htm
    http://ninjatrader.com/support/helpG...warrowdown.htm

    For detection logic of the crossing, you can use CrossAbove() or CrossBelow()
    http://ninjatrader.com/support/helpG...crossabove.htm
    http://ninjatrader.com/support/helpG...crossbelow.htm

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by razeus, Today, 12:00 PM
1 response
11 views
0 likes
Last Post NinjaTrader_Jesse  
Started by kitwit, Today, 09:47 AM
5 responses
21 views
0 likes
Last Post NinjaTrader_PaulH  
Started by guidoisot, Today, 11:17 AM
1 response
9 views
0 likes
Last Post NinjaTrader_PatrickG  
Started by razeus, Today, 10:11 AM
1 response
9 views
0 likes
Last Post NinjaTrader_Jim  
Started by tonynt, Today, 10:18 AM
5 responses
18 views
0 likes
Last Post tonynt
by tonynt
 
Working...
X