PureBytes Links
Trading Reference Links
|
Ok, so you tell me that it should never plot a zero. Interesting. This based
on simple mathematics. Even more interesting.
Now, except for telling me that Tradestation works perfectly, which we all
know you will always tell us, please tell me what is wrong with expecting it
to plot zero. Feel free to express it mathematically if you like, I have no
problems with math, or explain the fault in the mathematical logic in any
other simple way you can.
Below is a simplified version of the code as i got it from Gary. The
original code was just a copy and paste from Omegas own dmi code. You can
use any version you like when explaining why the mathematical laws state
that this version of zero zero never plots as zero in Tradestation.
I asked for help, and you claim that you understand why it should not be
zero, and that it has nothing to do with Tradestation (and thus precision),
that it is correct maths to come to the conclusion of 0.107. Please explain
why. I am really eager to here you mathematical explanation. Please avoid
fuzzy logic.
******************************************
{Test Indicator, must plot Zero line}
Value1 = 10.387 - 10.280;
Value2 = 10.280 - 10.173;
If Value1 = Value2 Then Value1 = 0;
plot1 (Value1);
******************************************
> -----Original Message-----
> From: pierre.orphelin [mailto:pierre.orphelin@xxxxxxxxxxxxxx]
> Sent: den 17 juli 2001 00:36
> To: Eskimo Omega List
> Subject: RE: Language problems causes bugs not to be
> understood as the bugs they are
>
>
>
>
> > -----Message d'origine-----
> > De : Bengtsson, Mats [mailto:mats.bengtsson@xxxxxxxx] Envoyé : lundi
> > 16 juillet 2001 23:42 À : pierre.orphelin@xxxxxxxxxxxxxx; Eskimo
> > Omega List Objet : Language problems causes bugs not to be
> > understood
> as the bugs
> > they are
> >
> >
> > I am swedish, you are french, so I guess my message read
> differently
> > to you than I ment to write it. Thus, here is a short hand version:
> >
> > Look at the first straight line that plots. If the line
> plots at zero,
> > there is no bug in Tradestation. If it plots above zero, there is a
> > bug in Tradestation.
>
> No.
> Your assumption is false because you have coded a false thing
> that CANNOT plot 0 from Plot1. This comes from very
> elementary mathematics, not from the language.
>
>
> >
> > Extended version to the above: If the line does not plot at
> zero, this
> > bug gives a lot of concequences, for example in DMI, which
> is the way
> > I discovered the bug.
> >
>
> No. Neither plot1 nor plot 2 could produce a zero line!
> You just discovered that you still have some progess to do
> when debugging an EL code. There is no bug at all in this
> problem. Only a bad understanding of EL / EL logic
> translation, and too fast typing to report so called bugs to
> this list.
>
> Sincerely,
>
> Pierre Orphelin
> www.sirtrade.com
> TradeStation Technologies representative in France
>
>
>
>
> > > -----Original Message-----
> > > From: pierre.orphelin [mailto:pierre.orphelin@xxxxxxxxxxxxxx]
> > > Sent: den 16 juli 2001 23:23
> > > To: Bengtsson, Mats; Eskimo Omega List
> > > Subject: Buggy logic produces buggy bugs...
> > >
> > >
> > >
> > >
> > > > -----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
> > > > __________________________________________________
> > > >
> > >
> >
> >
> > This message contains information that may be privileged or
> > confidential and is the property of the Cap Gemini Ernst & Young
> > Group. It is intended only for the person to whom it is
> addressed. If
> > you are not the intended recipient, you are not authorized to read,
> > print, retain, copy, disseminate, distribute, or use this
> message or
> > any part thereof. If you receive this message in error,
> please notify
> > the sender immediately and delete all copies of this message.
>
|