Close Profit and Take Profit
-
Please i need help on how to separate bollinger band close in profit not to affect the SMA Take profit. Project link is https://fxdreema.com/shared/zgyGWWtfe
I want both structures to operate differently in Take Profit and closing in profit.
-
Yes you can try to separate the trades using Group Numbers....*
In the 'If Trade' blocks as well....*

-
@Morpheus_0 Thanks for your response, please should i use same group number like you did "004"?
-
@GOKACHIT Thank you it is now working well.
-
I have another request, please how can i control the close partially not to close the trade but take partial profit from the volume.
my project link https://fxdreema.com/shared/Nx6mreZD
Thank you
-
You block is already doing that.
-
@l-andorrà When it takes partial TP, it closes the trade
-
It is because your Lot Size is 0.01 which is minimum Lot Size in Forex.....There is no 50% of 0.01....
In testing, try Lot Size of 0.1 and see what happens*
-
@Morpheus_0 Thank you. Its working very fine.
-
Please I have another question to ask, please don't be offended.
Please it is possible to count number of bars for profit. For example "EMA 5 crosses above EMA 20" and I want to take profit on only 2 candle movement. Then wait for the opposite direction.
-
What if the trade is not in profit in 2 candles....?
I'm not offended. Don't be so polite

-
@Morpheus_0 Lol! I won't be so polite.
Even if the trade is not in profit at 2 candles, let it close.
-
You could try something like this....>>
The Check Age block would depend on what timeframe you're running the EA on.....

-
If you want to make that candle time specific, add this code to minutes.

-
@jstap Just curious. Is that 'Period[]' a string type variable?
-
Period() returns an int number, and it is the number of minutes per candle
-
Thank you Great men! I really appreciates your help. But please one more thing, if SMA 5 crosses above SMA 20, i want to draw a horizontal line on the crossing, then it will delete after the crossing until next crossing to draw again. Please any guideline??
-
Test on backtest, you can do all this
-
@jstap bro i already dm you , kindly answer me , thank you