I'm new to MT4, and still learning to adapt with its utility....Hope through this forum can get help help to translate this script (from Thinkorswim platform) to MT4....
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi,
I'm new to MT4, and still learning to adapt with its utility....Hope through this forum can get help help to translate this script (from Thinkorswim platform) to MT4....
Tx in advance...
Rgds,
Gugun
#---Star---t#
declare upper;
rec price = ((high + low) / 2);
input alpha = 0.07;
rec itrend = compoundValue(7, ((alpha - alpha * alpha / 4) * price + 0.5 * alpha * alpha * price[1] - (alpha - 0.75 * alpha * alpha) * price[2] + 2 * (1 - alpha) * itrend[1] - (1 - alpha) * (1 - alpha) * itrend[2]), ((price + 2 * price[1] + price[2]) / 4));
rec trigger = 2 * itrend - itrend[2];
plot inst_trend = itrend;
plot trig = trigger;
#----End-----#