Translating METASTOCK Formula into EL/PL

Questions about MultiCharts and user contributed studies.
khalaad
Posts: 323
Joined: 07 Jan 2007
Location: Lahore, Pakistan
Has thanked: 64 times
Been thanked: 57 times

Translating METASTOCK Formula into EL/PL

Postby khalaad » 11 Feb 2007

After years of using METASTOCK, I am gradually becoming familiar with Easy Language/Power Language. But for the life of me I am unable to EL/PL Welles Wilder’s Volatility System.

I wish to use an adapted version of this system as a MULTICHART ShowMe, so that a Buy would place an upward pointing blue arrow under the price bar and a Sell would place a downward pointing red arrow above the price bar.

Here is the METASTOCK formula:

Buy
Cross(C,Ref(LLV(C,7),-1)+(Ref(ATR(7),-1)*3)) AND ADX(14) > 25

Sell
Cross(Ref(HHV(C,7),-1)-(Ref(ATR(7),-1)*3),C) AND ADX(14) > 25

I shall be extremely grateful for any assistance.

Thank you.
Khalaad

User avatar
Stanley Miller
Posts: 556
Joined: 26 Jul 2005
Has thanked: 3 times

Postby Stanley Miller » 12 Feb 2007

It should be something like this:

Code: Select all

if close crosses above (lowest(close,7)[1] + AvgTrueRange(7)[-1] * 3) and ADX(14) > 25 then
buy this bar at close;

if close crosses below (highest(close,7)[1] - AvgTrueRange(7)[-1] * 3) and ADX(14) > 25 then
sell short this bar at close;

khalaad
Posts: 323
Joined: 07 Jan 2007
Location: Lahore, Pakistan
Has thanked: 64 times
Been thanked: 57 times

Postby khalaad » 12 Feb 2007

Stanley,

Thank you so very much.

You have made it rather simple; I thought all EL/PL codes required input: AND vars: !!!!!

I shall work on this and let you know.

Regards,
Khalaad


Return to “MultiCharts”