Tâche terminée
Spécifications
hello,
I want trade some range, so I'm using Bollinger Band= BB when BB are close enough during Ncandle.
So I need to place some stop order when BB are close enough during Ncandle. (screen1)
I need the following setting: BBmax and Ncandle.
If I put BBmax= 30 pips and Ncandle= 10 it means:
if bollinger Band are close below 30pips during 10 candle, the EA will put a BuyStop on the highest point of the range and a SellStop on the lowest point of the range (screen1).
If during the ncandle BBmax past over 30 pips the EA will not put stop orders
the TP needs to be a trailing stop in pips.
The most difficult is now in martingale. There is only one trade open at the same time
look at screen2: when buystop 0.1 is trigerred, sellstop0.1 is edit at sellstop=0.2
and when sellstop=0.2 is trigerred buystop=0.1 close in loss at the same time and new buy stop is edit at buystop=0.4.
In martingale the Trailing stop start WHEN we recover all the losses . SO if we loss buystop0.1=-3$ ; sellstop0.2=-6$ buystop=0.4 have to recover 9$(3+6) before begin trailing stop. WE can't close martingale IN LOSSE.
REALLY important, in martingale new sellstop or buystop must have to be place on the lowest point for a sellstop and on the highest point for the buystop, screen 3 is a good example and it's really important. Trailing stop is the same as before BUT the TP start WHEN we recover ALL the losses.
last point. really important: When the martingal is too long ( because range). the EA need to Stop when there is 3 martingal or 4 martingal , 5 martingal and must continue to the next set up. it's like a cycle. Example: I choose StopMartingal=3 , so buystop=0.01, sellstop=0.02, buystop=0.04, at 0.04 the EA stop the trade (cycle1) and will restart a new cycle at the next setup and will begin at 0.08. Trailing stop is the same as before AND start WHEN we recover all the losses of all the cycles and order.
TO finish, in option, I need an offset=1pips or 2 pips.... it's because the spread.
so the setting are:
bbmax= npips
Ncandle
limited martingale (for the cycle)
offset.
miltipliermartingale= 1.4or 1.7 or 2 ( Ineed to try different martingale multiplier)
bb period
bb deviation
bb shift