Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
Surefirething - expert for MetaTrader 5
- Published by:
- Vladimir Karputov
- Views:
- 2983
- Rating:
- Published:
- 2018.06.16 10:56
- Updated:
- 2018.07.26 12:17
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Idea by: Scriptor.
MQL5 code by: Vladimir Karputov.
The EA places pending Buy Limit and Sell Limit orders. The conditions for placing pending orders are checked when a new bar appears, while the possibility to trail the positions is checked on each tick. As soon as any pending order triggers (this event is monitored in OnTradeTransaction), the remaining pending orders will be removed. Every day, at 23:50, all pending orders are removed and all positions are closed, as well.
Inputs
- Lots - volume of the pending order;
- Stop Loss (in pips) - Stop Loss ("0" means disabling the setting);
- Take Profit (in pips) - Take Profit ("0" means disabling the setting);
- railing Stop (in pips) - trailing ("0" means disabling the setting);
- Trailing Step (in pips) - trailing step;
- magic number - unique identifier for the EA.
Testing for all symbols on D1 from 2018.01.01 to 2018.05.08:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20679
RANA
Sherman and Marian McClellan Ratio Adjusted Net Advances Indicator.
Modeling_The_MarketJohn Ehlers Modeling The Market Indicator.