Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2013.01.24 05:27

HawaiianTsunamiSurfer, a statistical look at determinant price explosions - expert for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 28

Real author:

Jordi Bassagañas Galisteo


It is a fact that:

  1. People react in a particular way to price explosions in a given market.
  2. Prices never go in a straight line, they move in trends.
  3. Sudden heavy movements often produce strong retracements.

HawaiianTsunamiSurfer.mq5 combines the premises above in order to identify the price level that is most likely to be retracted when an exceptional wave appears in USD based pairs. It works well on AUDUSD, USDJPY and EURUSD, and with a lower performance on USDCHF and GBPUSD. This EA relies on Momentum indicator. There are no inputs to be changed because they have already been calculated and optimized so that they are transparent to the user. Those optimized inputs are inside the EA's code:

// The following inputs are transparent to the user, they are optimized! 
// This EA is very sensible to inputs. Please, don't change them unless you are sure about what you do.

int stopLoss = 700; 
int takeProfit = 500; 
double tsunamiStrength = 0.24;
double size = 0.1;


The figure below illustrates a tsunami retracement on AUDUSD when Momentum indicator is lower than 99.76.

A tsunami on AUDUSD

This is the EA's performance on USDJPY from 2009 to 2012, both included.

USDJPY performance from 2009 to 2012


Please, run your experiments on AUDUSD, USDJPY and EURUSD, observe the results obtained and draw your own conclusions.

This robot has been developed exclusively for learning purposes, please, use it at your own risk.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.