HPotter

WAMI Strategy

1731 visitas
218
1731 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.
Eliminar de Scripts favoritos. Añadir a Scripts favoritos.
////////////////////////////////////////////////////////////
//  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: 3FKWwtaYrf5NHZzaCi1fyAfQj7XSgtyCqe
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!
Responder
@jalp51, Hello,

I just code it. I can`t give a comments about this method. Sorry.
Responder
jalp51 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.
Responder
@jalp51, xWAMI take as source data a momentum value. Then calc wma and then double ema.
Responder
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?
Responder
HPotter IsraelDuvdavan
What kind tweaking?
Responder
Just some parameter editing, seeing what kinda of results i'd get under different conditions :)
Responder
HPotter IsraelDuvdavan
I do not have a Ninja script. But I can try make parameters in this pine script.
Responder
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
Responder
Inicio Analizador de acciones Analizador de Forex Crypto Screener Calendario económico Cómo funciona Funcionalidades del gráfico Precios Recomendar a un amigo Normas Centro de ayuda Soluciones broker y sitio web Widgets Soluciones gráficas Biblioteca de gráficos ligeros Blog y Noticias Twitter
Perfil Opciones de configuración del perfil Cuenta y facturación Recomendar a un amigo Mis Tickets de Soporte Centro de ayuda Ideas publicadas Seguidores Siguiendo Mensajes privados Chat Cerrar sesión