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

Signal/Indicator Different Results



PureBytes Links

Trading Reference Links

Here is something I'm puzzling over. When I  verify the following signal
code and indicator code, the values generated by the print statement are
totally different.
Can someone point out what I must be doing wrong?

Larry

** Signal ********************************************

Input: Price(Close), Len1(2.8), Len2(3.5);

Print(Date, 100*(T3Average(Price, Len2) - T3Average(Price, Len1)));

 If (T3Average(Price, Len2) - T3Average(Price, Len1)) > 0 then
  Buy on Close;

 If (T3Average(Price, Len2) - T3Average(Price, Len1)) < 0 then
  Sell on Close;

*****************************************************

** Indicator *******************************************

Input: Price(Close), Len1(2.8), Len2(3.5);


Print(Date, 100*(T3Average(Price, Len2) - T3Average(Price, Len1)));

 Plot1 (100*(T3Average(Price, Len2) - T3Average(Price, Len1)), "T3Diff");
 Plot2(0, "Zero");

******************************************************