[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MaxTradeHigh Indicator



PureBytes Links

Trading Reference Links

If the market position = 1 you are setting maxtradeH=0 so you are plotting the highs.

What you might mean to do is resetit  only when you change position:

  MP = I_marketposition;
  if MP = 1 and MP[1] < 1 then maxtradeH = 0;

Bob Fulks



At 6:05 AM -0700 5/20/01, N&M Smith wrote:

>I am having trouble getting this indicator to work,
>it is only plotting the current high not the maxlist high,
>any help would be greatly appreciated.
>Thanks Neville
>
>vars: maxtradeH(0),mintradeL(0);
>maxtradeH=maxlist(High,maxtradeH[1]);
>mintradeL=minlist(Low,mintradeL[1]);
>if I_marketposition =1 then begin
> plot1(maxtradeH,"maxtradeH");
> maxtradeH=0;
>end;
>if I_marketposition =-1 then begin
> plot2(mintradeL,"mintradeL");
> mintradeL=999999;
>end;