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
Translating METASTOCK Formula into EL/PL
- Stanley Miller
- Posts: 556
- Joined: 26 Jul 2005
- Has thanked: 3 times
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;