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

Re: Slope Code Help



PureBytes Links

Trading Reference Links

>alex the first derivative is slope and the second is acceleration

I know that.  The original query wanted to know "if slope of osc is
declining" which is ambiguous.  I took it to mean "if slope is
negative" but I see now it really means the change in the slope.

>slope=osc[0]-osc[1]
>accel=slope-slope[1]

Instead of what I responded:
>> if osc[0] < osc[1] then sell close;
...you can say "if osc[0]-osc[1] < osc[1]-osc[2] then sell close;"


-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 //___)    Unicorn Research Corporation -- http://unicorn.us.com