You can then immediately see how far price is acting still from BE/TP for your buy and/or sell grid trades. Perhaps actually the question should be what is the most simple way to calculate the Break Even price from these trades. Whenever I have that I can add the take profit pips and then draw the lines.
Posts made by BHovens
-
RE: How to draw a break even and take profit line for a range of martingale tradesposted in Questions & Answers
-
How to draw a break even and take profit line for a range of martingale tradesposted in Questions & Answers
What is the best way/method to draw a break even and take profit line for a range of martingale trades on your chart
-
RE: Weighted average price of bucket of tradesposted in Questions & Answers
Indeed not very simple, but I will have it a go. THANKS!
-
Weighted average price of bucket of tradesposted in Questions & Answers
Is there any simple way to determine the weighted average price (break even) of a bucket of open trades with different price and lotsize?
-
RE: example: For each tradeposted in Tutorials by Users
Hi Roar, many thanks for your support. It now works really well!!!
-
RE: example: For each tradeposted in Tutorials by Users
Hi Roar, I implemented your suggestion as per below scheme. Still the same result as it does not close the first and last trade, when profit is 5 for both first and last trade, but still closes all trades as programmed in the "on Tick" section. Does it has something to do with the Group #???

-
RE: example: For each tradeposted in Tutorials by Users
Thanks for the proposal. As I understand it correctly I have adjusted the project as shown below.
Still with no result as it always still closes ALL trades and not only the oldest and newest trade.
It seems that the "For each Trade" block does not work properly where it should come back only with one trade, it comes back with ALL trades.
-
RE: example: For each tradeposted in Tutorials by Users
This is the project: https://fxdreema.com/shared/hXFB1qJUb
-
Draw Text to a dynamic lineposted in Questions & Answers
In my EA I draw two lines: Breakeven Line and Take Profit Line. Now I want to add a text to these lines at the very left of the chart: "Break Even BUY" and "Take Profit BUY". As the lines can go up and down the text should also go up and down. I tried to do this with block Draw Text, with Time and Price but was not successful as the text is not shown on the chart. Any solution?

-
RE: example: For each tradeposted in Tutorials by Users
Thanks. I now added the blocks in the "On Trade" tab, but now when I backtest it is not executed at all. The C_Trade_DD_Red constant for the Check trades count is set to "4". Any solution?

-
RE: example: For each tradeposted in Tutorials by Users
Thanks for the great examples on the For Each Trade block. However, I have still an issue when looking for solution to close the first and last trade when breakeven/small profit. The proposed solution as shown in the picture and coming from another tag in FxDreema does not seem to work as it still closes ALL trades.
Does someone has the solution how to close only the first and last trade? -
RE: After closing trade no trade on same dayposted in Questions & Answers
Thanks for the proposed solutions! I ultimately used setting and checking a boolean flag, which works perfectly!
-
RE: After closing trade no trade on same dayposted in Questions & Answers
Below my project. In the NO TRADE block I have conditions wrt Ichimoku indicators.
In the IF TRADE block you can see the indicator on when the trades are closed. Trades can be open for many days. What I would like to add here is a check that whenever a trade is closed on day X, no new trade should be opened for that day X.

-
RE: After closing trade no trade on same dayposted in Questions & Answers
Yes, I start the EA with "No Trade"
-
RE: After closing trade no trade on same dayposted in Questions & Answers
No, it is not just one trade per day. The trade can be open for some days, but when the trade is closed on a certain day then there should be no other trade entered for that same day.
-
After closing trade no trade on same dayposted in Questions & Answers
I'm new to fxdreema and looking for a solution in my EA that ensures that after closing a trade NO new trade is entered for that day. I already looked into the Q&A for some proposed solutions like "for each closing trade", but none of them seem to work.