Update of /cvsroot/tail/Tail/src/java/net/sf/tail/indicator/tracker
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9471/src/java/net/sf/tail/indicator/tracker
Modified Files:
ParabolicSarIndicator.java
Log Message:
Acerto em indicador e nova estrategia
Index: ParabolicSarIndicator.java
===================================================================
RCS file: /cvsroot/tail/Tail/src/java/net/sf/tail/indicator/tracker/ParabolicSarIndicator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ParabolicSarIndicator.java 24 Sep 2007 22:45:26 -0000 1.1
--- ParabolicSarIndicator.java 26 Sep 2007 19:24:06 -0000 1.2
***************
*** 55,59 ****
sar = series.getTick(index - 2).getMaxPrice();
if (sar <= series.getTick(index).getMaxPrice()) {
! sar = series.getTick(index).getMaxPrice();
}
--- 55,59 ----
sar = series.getTick(index - 2).getMaxPrice();
if (sar <= series.getTick(index).getMaxPrice()) {
! sar = series.getTick(index).getMinPrice();
}
***************
*** 71,75 ****
sar = series.getTick(index - 2).getMinPrice();
if (sar >= series.getTick(index).getMinPrice()) {
! sar = series.getTick(index).getMinPrice();
}
--- 71,75 ----
sar = series.getTick(index - 2).getMinPrice();
if (sar >= series.getTick(index).getMinPrice()) {
! sar = series.getTick(index).getMaxPrice();
}
|