• Overview
  • Reviews (1)
  • Comments
  • What's new

Virtual Trailing SL TP

The utility places virtual (hidden from your broker) trailing stop, breakeven, stop loss and take profit.‌

Parameters

  • magic - magic number. If less than 0, orders with any magic number are tracked.
  • only_this_symbol - only chart symbol. If false, orders of any symbols are tracked.
  • Max_total_open_transactions - maximum number of orders opened simultaneously.
  • Slippage - acceptable slippage in points when closing trades (does not work in case of a Market execution).
  • Max_Spread_Close_for_BUY - maximum acceptable spread when closing Buy (in points).
  • Max_Spread_Close_for_SELL - maximum acceptable spread when closing Sell (in points).
  • Close_for_Any_Spread - close trades in case of any spread.
  • Take_Profit - take-profit. 0 - disabled.
  • Stop_Loss - stop loss. 0 - disabled.
  • Breakeven_Start - necessary amount of points from an order Open price for setting a breakeven. 0 - disabled.
  • Breakeven_Plus - increase a breakeven by a number of points.
  • Trailing_Stop - trailing stop value. 0 - disabled.
  • Trailing_Step - trailing stop step.
  • Trailing_Start - necessary amount of points from an order Open price for setting a trailing stop.
  • Duration_minutes_after_open - necessary amount of minutes after an order Open price for setting a trailing stop.
  • draw marks - draws marks of levels on graphics.
  • open Buy for Tester - open the transaction of Buy in a Strategy Tester.
  • open Sell for Tester - open the transaction of Sell in a Strategy Tester.

Recommendations

When using tight stops, use only_this_symbol=true for greater accuracy. In other words, open a separate chart with Virtual_Trailing_SL_TP for each used symbol since the utility works by ticks of a symbol it is attached to.‌

The lesser the Max_total_open_transactions value, the less memory is consumed by the utility.

Pauamma
24
2017.04.20 11:59 
 

Perfect tool

Version 1.3 - 2017.06.26
The utility now works both based on ticks and timer (every 3 seconds).
Version 1.2 - 2017.05.02
Minor improvement.
Version 1.1 - 2017.03.22
Added ability to analyze the work of EA with new parameters:
◾ draw marks;
◾ open Buy for Tester;
◾ open Sell for Tester.