Hi Guys,
What conditions can I use to close a Buy trade once a candle closes below the most recently formed Down Fractal?
Thanks (in advance)
Hi Guys,
What conditions can I use to close a Buy trade once a candle closes below the most recently formed Down Fractal?
Thanks (in advance)
@l-andorrĂ Hi, would this be a related solution to my post here https://fxdreema.com/forum/topic/11304/candle-id-range ? Would the same concept work here in some way? Thanks.
Thanks for the suggestion. I'm currently using multiple blocks but this doesn't allow me to optimise this part of the EA, unfortunately.
Does anyone have any other suggestions?
Thanks,
Dre
Thanks for the suggestion but this doesn't seem to work. Typing 9 in the 'Cross Width' will only detect a cross EXACTLY 9 candles previously rather than a cross ANYWHERE WITHIN the 9 previous candles.
Any other ideas?
Hi Everyone,
Is there a way to look back at a range of Candle IDs to avoid needing to create multiple blocks?
My screenshot shows what I hoped might work (but it doesn't).

This is my project where I am currently using multiple blocks https://fxdreema.com/shared/ByL4fUOac
Thanks,
Dre
@Xfire Thank you very much. I will give it a go 
@trader-philipps said in Can I set my Buy & Sell EA to ONLY Buy or ONLY Sell?:
@dre If you don't want that logic in your EA, you might set the desired setting in EA properties as well.
This would be IDEAL! This is all I want. But I don't have this option. Is this in MT4? I am using MT5.
@dragonfly617 Thanks for the advice. I'm probably just being stupid (I'm new to fxDreema) but I don't understand the logic here. But thanks for trying to help.
@xfire said in Can I set my Buy & Sell EA to ONLY Buy or ONLY Sell?:
@dre I updated the link now
@Xfire Thank you.
I think I understand it but how do I write the Constant? I guess we are trying to make a drop-down box to select either "Buy Only", "Sell Only" or "Both"? What data type of Constant will this be - "enum"? I am not familiar with "enum" but will try to work it out if this is what I need to use.
Thanks
Thanks for your help.
I am having difficulty understanding what you mean.
I am fine with manually setting if I want the EA to "sell only" or "buy only".
So I need to add some "Turn OFF Blocks" blocks and "Turn ON Blocks" blocks?
How do I allow them to be controlled as inputs in MetaTrader using Constants?
I am fine with using simple Constants like inputting a Lot Size in MetaTrader etc. but unsure how I would control the "Turn OFF Blocks" and "Turn ON Blocks" blocks with Constants.
Thanks
Hi Guys,
I have created an EA that opens a Buy trade when certain conditions are met and opens a Sell trade when the opposite conditions are met.
How can I set this EA to only open Buy trades and ignore Sell signals and vice versa when I feel there is a favourable direction?
I was hoping that there would simply be an option in MT5 (perhaps in the Properties of the EA) but it appears not.
Or would I have to create a separate Buy and separate Sell EA altogether?
Thanks,
Dre
@roar Thanks! I appreciate your help. I will give that a go!
Dre
Hi Everyone,
I have created an EA that opens a trade when a candle closes above a Moving Average and then closes the trade once a candle closes back below that same MA.
There are times when the trade is open and price rallies quickly and sharply to the upside and then falls back down - closing a lot lower - once the candle closes back below the MA (as intended).
If possible, I would like to TP if a trade is open and price rallies to the upside by a certain amount (e.g. 100 pips).
I tried to do this by simply setting a TP on the "Buy Now" block (as I previously had "No Stop Loss" set) but of course once the TP is executed, another trade is automatically and immediately opened as the conditions are still met for a buy signal (candle close above the MA).
Is there a way that I could:
OR (if that is asking too much)
I am new to the platform so let me know if I haven't explained anything clearly enough and I will do my best to do so.
Thanks,
Dre