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

[amibroker] Amibroker EMA vs TS xAverage



PureBytes Links

Trading Reference Links

Hi everyone,
Me and some friends traders are trying to see how feasible is to
transfer our systems from Tradestation to Amibroker.
We noticed that the results for the Exponential MovAvg in Amibroker
are different from the Xaverage in Tradestation.
Is there anyone that can help us translate the TS Xaverage in Amibroker?

the Xaverage code is this:

inputs: 
	Price( close ), //this is the value considered for the calc//
	Length( 20 ) ; //This are the periods to calc the Avg//

variables: 
	SmoothingFactor( 2 / ( Length + 1 ) ) ;

if CurrentBar = 1 then
	XAverage = Price
else
	XAverage = XAverage[1] + SmoothingFactor * ( Price - XAverage[1] ) ;
//the [1] means "one bar ago" - it is comparable to ref in Amibroker//


We think that since many systems for TS use the Xaverage function,
this translation would be very useful for anyone who wants to transfer
their studies to Amibroker.
Thank you





------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/