View Single Post
  #10 (permalink)  
Old 06-05-2007, 03:12 PM
mrebersv mrebersv is offline
Member
 
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 84
mrebersv is on a distinguished road
Well, I'm using angles because I know what the sum of the two are supposed to come out to for the different colors of the real sidewinder. Since my initial goal is to clone that indicator, I'm using it for comparison.

Well, this code is now based on the minute-by-minute slope. Observation with this on a 1m timeframe does two things. The angle-by-trendline angles do match up. Also, the sidewinderValue numbers do NOT match up with the sidewinder, so maybe I have the wrong values for those colors.

In actuality, I do not want the slope to based on a 1m timeframe unless I'm on a 1m chart. That's why I initially had this:

Quote:
Originally Posted by mrebersv
...and divide by one since it's only one timeframe apart, but that doesn't need to actually be computed since it doesn't affect the number
In an attempt to change, I'm still doing something wrong. To take the slope for whatever the timeframe of the chart is, I thought I'd just change

Code:
double slopeLsma = (lsma25-oldLsma)/(Period()*Point);
to

Code:
double slopeLsma = (lsma25-oldLsma)/Point;
.

After doing this, however, the angle reported is much larger than that observed with the "trendline-by-angle" tool. About 3 times larger in fact. Any ideas?
Reply With Quote