Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Reversal

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

    Indicator Reversal

    I'm trying to draw up arrow or dot when a short EMA reverses top and bottom-having difficult time, nothing will compile. Here is latest, wsill this work?

    protected override void OnBarUpdate()

    { if
    (Close(0) > Close(1));
    (EMA(5)[0] < EMA(5)[1] );
    DrawArrowDown(CurrentBar ,true,0,High(0)+TickSize, Color.Red);

    else
    (EMA(5)[0] > EMA(5)[1] );
    DrawArrowUp(CurrentBar,true,0,Low(0) -TickSize, Color. Green);

    jtier-sorry to be such a pest but not far enough learning C# yet.

    Doesn't the close)>Close 1 accomplish this??
    Jtier
    Last edited by jtier; 05-21-2008, 06:21 AM.

    #2
    You are likely getting an index out of range error - Please see this http://www.ninjatrader-support.com/v...ead.php?t=3170
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by WHICKED, Today, 09:05 PM
    0 responses
    9 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by luislag14, Today, 06:29 PM
    0 responses
    8 views
    0 likes
    Last Post luislag14  
    Started by Protech, Today, 11:08 AM
    1 response
    23 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by guilhem, Today, 02:09 PM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Hyper, Today, 12:20 PM
    1 response
    23 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X