# WAMI Strategy

878 9
The WAMI-based trading lies in the application and iteration of the
optimization process until the indicated trades on past market data
give consistent, profitable results. It is rather difficult process
based on Fourier analysis.
You can to change Trigger parameter for to get best values of strategy.
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 08/07/2014
// The WAMI-based trading lies in the application and iteration of the
// optimization process until the indicated trades on past market data
// give consistent, profitable results. It is rather difficult process
// based on Fourier analysis.
// You can to change Trigger parameter for to get best values of strategy.
////////////////////////////////////////////////////////////
study(title="WAMI Strategy", shorttitle="WAMI Strategy")
Length_EMA = input(13, minval=1)
Length_WMA = input(4, minval=1)
Trigger = input(0)
hline(Trigger, color=purple, linestyle=line)
xWAMI = ema(ema(wma(mom(close, 1),Length_WMA),Length_EMA),Length_EMA)
pos =	iff(xWAMI > Trigger, 1,
iff(xWAMI < Trigger, -1, nz(pos[1], 0)))
barcolor(pos == -1 ? red: pos == 1 ? green : blue )
plot(xWAMI, color=blue, title="WAMI")
DONATE/TIP

BTC: 1Lo1GoTNsPbrjGAgPgF4MYZPhBFdoVHaTm
Hello,

I am trying to explore the possibility to make a Fourier analysis of price using Pine Script, bu I do not how to do it.
Here you are saying that your study is based on Fourier analysis. I do not get it? How is this script capturing the Fourier analysis method?

I do not understand what is the meaning of : ema(ema(wma(mom(close, 1),Length_WMA),Length_EMA),Length_EMA), what is the final result for? what is the mathematical meaning? what is the practical meaning?

Thank you! and nice work!
jalp51
@jalp51, Hello,

HPotter
@HPotter, Ok, but at least, I just want to understand the line:
xWAMI = ema(ema(wma(mom(close, 1),Length_WMA),Length_EMA),Length_EMA)

Is this something like a TRIX (TRIPLE EXPONENTIAL MOVING AVERAGE OSCILLATOR) calculation? it looks similiar, however there are 2 ema's and 1 wma instead of 3 ema's and the internal value is the momentum instead of the close. Could you just provide a little explanation about it.

Thank you.

JL.
jalp51
@jalp51, xWAMI take as source data a momentum value. Then calc wma and then double ema.
Over what time duration did you back test this on?
o you have this compiled in Ninja script as an EA? i'd like to do some tweaking on it
if thats cool with you?
IsraelDuvdavan
What kind tweaking?
HPotter
Just some parameter editing, seeing what kinda of results i'd get under different conditions :)
IsraelDuvdavan
I do not have a Ninja script. But I can try make parameters in this pine script.
HPotter
Oh I see, i'm not sure if i'll be able to find a way to work with that as I do robustness tests using Monte Carlo Analysis, Step Forward Analysis anti curve fitting etc
However i'll see what I can do and post a reply as to its edge over the market.
If its reliable it should have paralelism of at least 70% on different instruments, time frames and market conditions
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter