by Ludo69 » Sat Dec 28, 2019 1:38 pm
Hi
ok with that SL = SL if breakevent = false and = breakevent pips if breakevent = true.
after multi test ( using differents frame time and forex value ) the v1.5 is ok but maybe perfectible.
actualy:
X pips corresponding to the difference between actual price and positioning orders
at first be sure that:
over the price order corresponding to actual price + X pips
under the price order corresponding to actual price - X pips
if it's ok that great.
possible orders are:
over the price order type : buy long or sell short = buy stop or sell limit.
under the price order type : buy long or sell short = buy limit or sell stop.
if it's possible to modify that in:
over the price order type : buy long or sell short = buy stop or buy limit or sell stop or sell limit or do nothing.
under the price order type : buy long or sell short = buy stop or buy limit or sell stop or sell limit or do nothing.
to be most interresting, erraze the pending order only if SL or TP is won on the active order.
for exemple XAU:USD :
Price = 1500.00
X =100
over the price order type = buy limit
under the price order type = sell stop
TP = 10
SL = 1000
we have to pending orders:
buy limit order at 1501.00 SL = 1491.00 TP = 1501.10
sell stop order at 1499.00 SL = 1509.00 TP = 1498.90
price is 1501, activation of the 2 orders.
price is 1501.10, buy limit order is closed and sell stop order is deleted and 2 news orders are positionned.
Next Step is martingale option corresponding to an order finished by SL.
In this case next order lot is definited like a variable multiple of base lot.
Thank for your great work.
Regards,
Ludovic