Rejoignez notre page de fans
- Publié par:
- Vladimir Karputov
- Vues:
- 5261
- Note:
- Publié:
- 2018.07.09 10:29
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
Idea by: Scriptor.
MQL5 code by: Vladimir Karputov.
As soon as a signal appears to open BUY or SELL, a price level will be defined. As soon as the price crosses this price level, a new position will be opened.
- Signal to open BUY: MA Fast on bar #0 > MA Slow on bar #0;
- Signal to open SELL: MA Fast on bar #0 < MA Slow on bar #0.
When defining a signal, the working time range is re-checked (if only Start Hour and Stop Hour are not equal to "-1").
Positions are closed by the opposite signal. If parameter Friday Close Hour is not equal to "-1", your positions will be closed forcedly at Friday Close Hour on Friday.
Inputs
- Working timeframe - timeframe to calculate the indicators;
- Stop Loss - stop loss ("0" disables the parameter);
- Take Profit - take profit ("0" disables the parameter);
- Trailing Stop - trailing ("0" disables the parameter);
- Trailing Step - trailing step.
- Start Hour - starting the time range (hours); "-1" disables BOTH parameters: Start Hour and Stop Hour;
- Stop Hour - ending the time range (hours), "-1" disables BOTH parameters: Start Hour and Stop Hour;
- Friday Close Hour - closing on Friday (hours), "-1" disables the parameter;
- BreakOut Level - break-out level;
- Lots - lot size is constant, parameter Risk having to be equal to "0";
- Risk - lot size is dynamic, in risk percents per trade, parameter Lots having to be equal to "0";
- magic number - unique identifier for the EA.
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/17057
![JS-MA-Day](https://c.mql5.com/i/code/expert.png)
Working with indicator iMA (Moving Average, MA) with a rigidly defined timeframe: D1.
![MACD Stochastic 2](https://c.mql5.com/i/code/expert.png)
iMACD (Moving Average Convergence/Divergence, MACD) with adjustable timeframes and a Stochastic of the current timeframe.
![Price Rollback](https://c.mql5.com/i/code/expert.png)
A trading system that only trades on resverse and from Thursday to Friday only.
![EES Hedger](https://c.mql5.com/i/code/expert.png)
This utility tracks positions opened manually or by another EA for the current symbol and opens an opposite position. Opening the positions is tracked in OnTradeTransaction.