I am opening the trade manually each day, the program would have to close them when certain conditions are met.
Eg.: When PROFIT / BALANCE ratio reaches 1.5% (user set number), the program should 'kick in' and if the ratio drops back to 1% (also user adjustable), it should close all open positions on all instruments.
If and when PROFIT/ BALANCE ratio reaches 2% the exit point should jump to 1.5%, and so on.
Basically it would be a trailing step automation (base 1% and the increment [step] 0.5%), however the program shall strictly work BASED ON PROFIT / LOSS RATIO, to CLOSE TRADES.
Meaning it does NOT SET any TP, SL values.
Another user set parameter would be the amount of loss in percent (x% of BALANCE) when ALL TRADES should be CLOSED.
BALANCE = EQUITY – PROFIT (equity value has to be realtime, since on the Dukas interface it seems to be refreshed much less frequently as profit value)
User set INPUTS:
PROFIT % (0.1-100) [target percentage at which the program closes trades]
STEP % (0.1-100) [target percentage upon reaching programs shifts to next higher exit point]
STOP% (1-100) [If set to 100, Stop is disabled, since it would only trigger when equity drops to 0 (100% loss)]
So if is set PROFIT to 1% and STEP to 0.5%, then first exit postition would be when 1,5% is reached (PROFIT+STEP).