Hello,

Couple of newbie questions...

How do I get the Exponential moving average of the prior day / time period ?

For example, something like:=

Avg1 = XAverage(close,40);

And then we can compare Avg1 with Avg1[1]...

(Where Avg1 is current and Avg1[1] is prior)

And, how can I setup a stop loss order ? I see that there is a StopMarketOrder class,

Is that what I have to use ?

I would like to set a stop using the average true range.

I am using the clone of the exponential moving average cross-over

strategy as a starting point.

Thanks