PureBytes Links
Trading Reference Links
|
> -----Message d'origine-----
> De : Bengtsson, Mats [mailto:mats.bengtsson@xxxxxxxx]
> Envoyé : lundi 16 juillet 2001 15:59
> À : Eskimo Omega List
> Objet : I think I have to change my opinion from bad precision to buggy
> calculations
>
>
>
>
Was :RE: I think I have to change my opinion from bad precision to buggy
calculations
> To test, create a new indicator calling it whatever you like and
> insert the
> below code into it:
> var: plusdm(0);
> var: minusdm(0);
> var: plusdm1(0);
> var: minusdm1(0);
> If 10.387 - 10.280 < 0 Then
> PlusDM = 0
> Else
> PlusDM = 10.387 - 10.280;
> If 10.280 - 10.173 < 0 Then
> MinusDM = 0
> Else
> MinusDM = 10.280 - 10.173;
> If MinusDM >= PlusDM Then
> PlusDM = 0;
> plot1 (plusdm);
This first part of the code plots an horizontal line, what is normal,
everything being constant over bars...
> If High[0] - High[1] < 0 Then
> PlusDM1 = 0
> Else
> PlusDM1 = High[0] - High[1];
> If Low [1] - Low [0] < 0 Then
> MinusDM1 = 0
> Else
> MinusDM1 = Low[1] - Low[0];
> If MinusDM1 >= PlusDM1 Then
> PlusDM1 = 0;
> plot2(plusdm1);
>
> It should plot a straight line at zero, but does not.
No Sir, it will not plot a straignt line because MinusDM1 >= PlusDM1 Then
PlusDM1 = 0 is not always true, both above variables are independent of
each other, bacause they only depend of the H and L sequences
Sincerely,
Pierre Orphelin
www.sirtrade.com
TradeStation Technologies representative in France
>
> --- Mats ---
> __________________________________________________
> Mats Bengtsson | Sweden People Relationship Management
> Salaries & Bonuses & Performance Management
> phone: +46 40 60 772 10
> mobile: +46 708 877 216
> __________________________________________________
>
|