Help Request on complex signal overlapping
-
Dear Users,
I need help on a "simple" task which I can't make it work properly
I have an overlapping of different signals, those create "trade zone" and "no trade zone", each interposed, now, due to nature of indicator involved I can't create a single tick buy/sell signal.
What I need is something that open the trade and the beginning (1 tick) of trade zones, but avoid to open at each candles in the same trade zone, and it's not limited by (if trade/no trade) block to open a position in the next trade zone, even if there are positions still open.
The actual problem is:
- If I have a trade zone of 6 candle, then a no trade zone of 9 followed by a trade zone of 10 = 16 trades (wrong)
- If I have a trade zone of 6 candle, then a no trade zone of 9 followed by a trade zone of 10 = 1 trade since the first is not yet closed
I need 1 trade for trade zone regardless time, Trade zone lenght in bar, and number of position open
Thanks for your help
-
@gabrielebrignoli I think it would help if you could share your indicator in order to understand how the signals work. You probably need to find a way to identify the moment when it changes from no trade zone to trade zone. Then you'd only open a trade if that change condition is met.
-
I clean the mess and I'll share it..it's a bit messy at the moment, thanks
-
https://fxdreema.com/shared/zLiVA0OYd
this is the semplified version to understand the concept
Plain Hull Supertrend, signal is binary: 1:sell 0:buy
What I need is EA to open one single trade at each buy/sell signal, without closing the other before they his TPs or SLs, indipedently by trade number
-
@gabrielebrignoli First the Block 211 yellow dot may not be your intention.
If you want to open a trade on each change of the indicator only, you'd have a condition block where you compare indicator value of candle ID2 with candle ID1 for instance.If buy signal is "0", you'd check if ID2 was "1" and ID1 is "0" .. If it's really binary you could do like ID2 > ID1 for long trades. And vice-versa for short trades ID2 < ID1
Does that make sense?