Watch how to download trading robots for free
Find us on Telegram!
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

Surefirething - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
2983
Rating:
(11)
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:

Surefirething all symbols

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20679

RANA RANA

Sherman and Marian McClellan Ratio Adjusted Net Advances Indicator.

Modeling_The_Market Modeling_The_Market

John Ehlers Modeling The Market Indicator.

AlliHeik AlliHeik

Trading on indicator Heiken Ashi Smoothed Oscillator. Settings for placing Stop Loss, Take Profit, and Trailing the positions.

SD_M_Swap SD_M_Swap

A script for showing the swap value on a financial instrument. The texts of positive and negative swaps are shown in different colors.