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 zacharydw00, Today, 05:14 PM
    0 responses
    7 views
    0 likes
    Last Post zacharydw00  
    Started by shahabjet1, Today, 04:47 PM
    0 responses
    13 views
    0 likes
    Last Post shahabjet1  
    Started by aligator, Today, 04:32 PM
    0 responses
    10 views
    0 likes
    Last Post aligator  
    Started by timko, Today, 04:02 PM
    0 responses
    9 views
    0 likes
    Last Post timko
    by timko
     
    Started by asmmbillah, Today, 03:37 PM
    2 responses
    18 views
    0 likes
    Last Post asmmbillah  
    Working...
    X