Paint Bar

Discussion in 'Strategy Building' started by markc, Apr 16, 2004.

  1. markc

    markc

    I want to paint all the bars where the open and close are within the top/bottom 20% of the day's range. I am basically wanting to eyeball the trend days.

    As a novice with Tradestation 2000i, I am a bit (completely) unsure how to do this.

    Can someone tell me please?

    Thanks

    Mark
     
  2. markc

    markc

    If I tried to spam the forum would my post receive a reply? :D

    If anyone can tell me how to do the paint bar I would appreciate it. :)

    Mark
     
  3. Inputs: Multi(1), lookbak(10), ECpct(.85), Closetime(1300);

    Vars: TRange(0), Hptr(0), Lptr(0);

    TRange=truehigh-truelow;


    Condition1=TrueRange>(average(truerange, lookbak)*multi);
    Condition2=C>((Trange*ECpct)+truelow);
    Condition3=C<(truehigh-(Trange*ECpct));

    If Condition1 and (condition2 or condition3) and time>=Closetime then begin
    Plot1(High,"high");
    Plot2(Low,"low");
    End;
     
  4. markc

    markc

    Thanks for that. :)

    I'll play with it over the next few days.

    Mark