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

Re: Help with ADX Paint Bar Indicator



PureBytes Links

Trading Reference Links

> This is a simple but I believe effective system and I am hard pressed to
> code it.  Possibly someone can help me: I use TS2Ki.
> 
> DMIPlus(14) > DMIMinus(14);
> ADX(10) current bar is > than ADX prior bar;
> Paint Price Bar Blue when ADX(10) crosses over DMIMinus(14).

I'm not real clear on your rules there.  Do you mean:

vars: ADXval(0);
ADXval = ADX(10);
if DMIplus(14) > DMIMinus(14)
    and ADXval > ADXval[1]
    and ADXval crosses over DMIMinus(14)
  then buy;

?  What are the exit conditions?  Are there short conditions?
Gary