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

Re: [Metastockusers] A little help



PureBytes Links

Trading Reference Links

Jordan

Assuming you want a 14 bar ADX and a simple moving average of the CLOSE,
then the following line of code in the filter of a new exploration should do
it.

ADX(14)>30 AND H<Mov(C,4,S);

Set the number of periods for the exploration to at least 100 (not "Load
Minimum Records") to ensure that the ADX returns accurate values. ADX uses
Wilders smoothing internally, which is a form of an exponential moving
average. Exponential moving averages retain a diminishing part of ALL data
so require any exploration to scan much more than the minimum number of (14)
periods to give the same indicator value as that displayed on a 1000 bar
chart for example.

Roy

> I am new to Metastock and unfortunately writing code.
>
>  Can anybody help me with writing code for the following search:
>
> adx > 30 & the day's high is below the 4 day simple moving average.
>
> Thank you and I greatly appreciate your help.
>
> Cheers,
>
> Jordan



To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

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