Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Explosion5 - expert for MetaTrader 5

[Deleted]
Views:
16893
Rating:
(36)
Published:
2019.03.19 16:15
Explosion.mq5 (45.86 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
input ushort               InpStopLoss             = 20;          // Stop Loss
input ushort               InpTakeProfit           = 10;         // Take Profit 
input ushort               InpTrailingStop         = 0;          // Trailing Stop 
input ushort               InpTrailingStep         = 1;           // Trailing Step
input double               Ratio                    = 1.6;         // Ratio
input double               InpLots                 = 0.0;           // Lots 
input double               Risk                    = 3.0;           // Risk %
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// Buy
if((high-low)>(high1-low1)* Ratio && (close>open))

// Sell
if((high-low)>(high1-low1)* Ratio && (close<open))

Testing


The optimal timeframe is 4H && Day. The idea of the adviser is extremely simple. The explosive effect of the current price is used (the reasons can be any). It is at this moment that the position is opened, in the direction of the impulse.

This strategy allows you to effectively use the trailing stop to accompany the position. Stop Loss, place no more than 20 points.

Simple moving average Simple moving average

Simple moving average

Vortex 2 Vortex 2

Vortex 2

Linear Weighted Moving Average Linear Weighted Moving Average

Linear Weighted Moving Average

Exponential moving average Exponential moving average

Exponential moving average