Job finished
Specification
I would like to add some new function in the existing utility (or if you think write a new one is easier just go for it)
----------------------------------------------------------------------------------------
short form for easy communication
Magic Number = M#
Trailing Start = TS
Virtual Trailing Distance = VTD
----------------------------------------------------------------------------------------
To be simple, The existing utility allows user to TP/SL by the sum of a list of M#
For example,
M# = 111;222
Global TP in $$ =10
Then for M# 111, floating gain $4, for M# 222, gain $6, total $10, then TP
———————————----------------------------------------------------------------------------------------
I would like to add the following
Global TP with TS and VTD
Very simple,
if TS=10, VTD=3, then for sum of M#=111;222, TS when floating gain =10
——————————----------------------------------------------------------------------------------------
Global TP and Trailing per 0.01 Lots
This allows the trailing start and distance vary in different lots sizes
For example,
M# in control = 111;222
Global TS in $$ per 0.01 = 10 , VTD =3
GBPUSD (M#=111)
Long 0.02
EURUSD (M#=222)
short 0.03
in this situation, Total lots = 0.05
TS in reality =50
VTD = 15
Condition - If VTD=0 -> Not in USE, TP immediately when the floating gain hits TS
-------------------------------------------- Dynamic SL--------------------------------------------
one thing extra, can you do it?
Dynamic Stop Loss by equity top return.
Dynamic SL Start =300
Dynamic SL Top Return =100
# of Top Return =2
Ultimate SL =500
This means, for those M# in control, in some points the floating loss is 320, and return to 220(count+1), then hits 350 again, and return to 250(count+1=2), then hits 300 again, at this points stop loss
(Another way to understand this —Like Trailing Stop Loss Start=300, Trailing SL Distance=100, but not SL immediately, just counter+1
In anytime the floating loss hits 500, SL immediately without considering Top Return
Therefore, there are only two results for this function - SL300 or SL500
----------------------------------------------------------Requirement ---------------------------------------------------------
Additional Requirements
- Please do testing before delivery
- follow up service if there is bug found
--------------------------------------------This is the question you need to let me know--------------------------------------------
Pls state:
Do you understand what I exactly mean, if not, please ask me for clarify!!
Delivery time
Do you understand one thing extra - dynamic SL and can you do this?
What is your quote with or without Dynamic SL
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I will attach the original project specification, parameters, and mql4,
you may take a look
-------------------------------------------- This is the project specification of the original project --------------------------------------------
I want to do a utility. It is just for closing existing orders (open positions and pending orders both included)
— Close by Time —
Function = ON/OFF
Magic Number = 1,2,3,4,5
(Input -1 for all magic, Input 1,2,3,4,5 for magic only 1,2,3,4,5)
Hour = 16
Minute = 50
—> Close all orders/positions for magic 1,2,3,4,5 at 16:50:00 in broker time
Example 2
Function ON
Magic =1,2,3,4,5
Hour = 0
Minute = 50
—> Close all orders/positions for magic 1,2,3,4,5 at every XX:50 in broker time. It means: close all at 15:50, close all at 16:50, close all at 17:50…. Goes on
— Close by Profit —
Function ON/OFF
Magic Number = -1
Dollars = 5
—> Total floating profit in that magic number (in the case, all magic numbers) > $5 —> close all orders with that magic numbers (in the case, all magic numbers)
Example 2
Magic Number = 1,2,3,4,5
Dollars = 10
—> TP when profit > 10, applies for those magic numbers, i.e. the final result is TP $10 for the sum of magic #1,2,3,4,5
— Close by Loss —
Function ON/OFF
Magic Number = 1,2,3,4,5
Dollars = 5
---------------------------------------------------------------------------- End ----------------------------------------------------------------------------