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

RE: TradeStation Precision - Summary



PureBytes Links

Trading Reference Links

Ths code is better, the xaverage values having not to change the sign every
500 bars, waht explained the previous results
value1= 2+cosine( 360/1000*barnumber);
value2=xaverage(value1,10);
if mod(barnumber,1000)=0 then messagelog(barnumber:5:0,"   ",value2:1:8);


	Date	Content	Analysis Technique
	30/07/2001 00:37	30000   2.99908000	Indicator: test debile
	30/07/2001 00:37	29000   2.99908000	Indicator: test debile
	30/07/2001 00:37	28000   2.99909000	Indicator: test debile
	30/07/2001 00:37	27000   2.99909000	Indicator: test debile
	30/07/2001 00:37	26000   2.99909000	Indicator: test debile
	30/07/2001 00:37	25000   2.99909000	Indicator: test debile
	30/07/2001 00:37	24000   2.99909000	Indicator: test debile
	30/07/2001 00:37	23000   2.99909000	Indicator: test debile
	30/07/2001 00:37	22000   2.99909000	Indicator: test debile
	30/07/2001 00:37	21000   2.99909000	Indicator: test debile
	30/07/2001 00:37	20000   2.99909000	Indicator: test debile
	30/07/2001 00:37	19000   2.99909000	Indicator: test debile
	30/07/2001 00:37	18000   2.99910000	Indicator: test debile
	30/07/2001 00:37	17000   2.99910000	Indicator: test debile
	30/07/2001 00:37	16000   2.99910000	Indicator: test debile
	30/07/2001 00:37	15000   2.99910000	Indicator: test debile
	30/07/2001 00:37	14000   2.99910000	Indicator: test debile
	30/07/2001 00:37	13000   2.99910000	Indicator: test debile
	30/07/2001 00:37	12000   2.99910000	Indicator: test debile
	30/07/2001 00:37	11000   2.99910000	Indicator: test debile
	30/07/2001 00:37	10000   2.99910000	Indicator: test debile
	30/07/2001 00:37	 9000   2.99910000	Indicator: test debile
	30/07/2001 00:37	 8000   2.99910000	Indicator: test debile
	30/07/2001 00:37	 7000   2.99911000	Indicator: test debile
	30/07/2001 00:37	 6000   2.99911000	Indicator: test debile
	30/07/2001 00:37	 5000   2.99911000	Indicator: test debile
	30/07/2001 00:37	 4000   2.99911000	Indicator: test debile
	30/07/2001 00:37	 3000   2.99911000	Indicator: test debile
	30/07/2001 00:37	 2000   2.99911000	Indicator: test debile
	30/07/2001 00:37	 1000   2.99911000	Indicator: test debile

Error propagated from bar 1000 to 30000  =2.99911000- 2.99908000 = 3 *10^-5
( absolute error)
relative error is 3 *10^-5 /2.999 = roughly 10^-5, perfectly compliant with
5 digits precision price.

Sincerely,

Pierre Orphelin
www.sirtrade.com
TradeStation Technologies representative in France