@fxmich78 can you share the project?
Posts made by paragorundu
-
RE: How can i display the right profit on chart?posted in Questions & Answers
-
RE: How can i display the right profit on chart?posted in Questions & Answers
Hi @fxmich78 ,
I made a setup for you.
I used 'For each closed' block and some variables to collect profit of 'n' number of buy/sell trades.
Just a reminder; variables are kept in memory, so if the terminal restarts or EA re-initiates (not sure, did not tested) it flushes.
So this setup will calculate profit for 'n' number of closed buy/sell with commission & swaps until the variables flushed in above cases.

I hope it helps.
Regards.
notify: @l-andorrĂ
-
RE: Can I open a profile when no trades are running?posted in Questions & Answers
@brad-0 I searched for custom MQL code for this but could not find any solution. Maybe you should think another solution.
It would be better if your commercial EA did not close any tabs, suspend trading in other tabs instead until bad trades recovered. Maybe you can ask such thing to the EA creator.
-
RE: Do NOT buy if indicator appears.posted in Questions & Answers
Hi @decopain ,
This setup must be done in a proper way. But first can you please explain in detail what you are trying to do?
-
RE: Poor Wifi - VPS good investment?posted in Questions & Answers
@GTOAT777 hi there,
VPS is always a better option.
-
RE: CANDLE CROSS MA - HOW TO DO?posted in Questions & Answers
Hi @khacdiepvnc , You first need to use 'No trade' block for buy or sell trades to keep the number of trades limited to one.
You need to connect your buy/sell conditions to 'No trade' block.
If you want each MA cross to open orders independently you need to use group numbers.
And sure you need to use 'Condition' blocks ad @jsauter86 mentioned to detect a cross condition.
-
RE: IF Strategy 1,2,3 Buy .. Otherwise Sellposted in Questions & Answers
You're welcome @saeed-2 . Hope it helps.
-
RE: What is the meaning of P1, P2 ecc in the blocksposted in Questions & Answers
@notoriusfx You may find some information on the link below:
https://fxdreema.com/instructions/builder/constants-and-variables
notify: @jsauter86
-
RE: Can I open a profile when no trades are running?posted in Questions & Answers
@brad-0 I understand. I thought that you have EA created with fxdreema.
Unfortunately I can not provide an idea on this.
-
RE: IF Strategy 1,2,3 Buy .. Otherwise Sellposted in Questions & Answers
Hi @saeed-2 ,
You may use something like below setup. Since there might (are) be better ways to do such thing, I believe it will do the work for you.

Regards.
-
RE: Can I open a profile when no trades are running?posted in Questions & Answers
Hello @brad-0 ,
I believe checking some conditions (such as equity, trade count, traded pairs etc. or what ever condition you have) for EA to trade would be better and easier solution for you.
Regards.
-
RE: Connection with the websiteposted in Questions & Answers
@fideld003 It happens a few times a day for me. I get used to it...
-
RE: ATR for Stop Lossposted in Questions & Answers
@tcanuto this formula converts ATR value to a format which can be used as pips. So you can set Stop Loss or Take Profit regarding to ATR value (pips) as I advice. That's what I understand from your request.
-
RE: Daily Profitposted in Questions & Answers
I believe 'Check profit (period of time)' block can be used for this request.
Regards.
-
RE: ATR for Stop Lossposted in Questions & Answers
@tcanuto hi there,
Try this:
- Create a 'double' type variable myATR
- Create an 'int' type constant Multiplo_ATR
- Assign ATR value to variable myATR (Modify Variables block)
- Convert ATR value to pips: write "*(0.1/Point())" in adjust field without quotes.
- In 'Buy now' block, select 'Fixed pips' for Stop-Loss mode
- Write "myATR*Multiplo_ATR" in pips field without quotes.
That should do the work!

notify: @l-andorrĂ
-
RE: As I calculate the exact price with the profit at 0, having many open positions with different sizes?posted in Questions & Answers
Hi @alex222 ,
Yes, as far as I know there is no such block that simply provides such information. You need to use custom mql code to calculate that.
I think @miki 's solution is good for you

Regards.
-
RE: As I calculate the exact price with the profit at 0, having many open positions with different sizes?posted in Questions & Answers
Hi @alex222 ,
If I get you right, you need the average profit of open trades, related to their open price and the lot size; which is calculated via block named 'Check profit (unrealized)' with the example setup below.
In this example, buy trades are treated as a position. Their lot size and the open prices are considered in calculation of average open price of all open buy trades. You can configure money or pips as your profit target (or to take whatever action desired).

I hope this helps.
Regards.
Notify: @l-andorrĂ
-
RE: does this work instantly on purchase?posted in Questions & Answers
You are welcome @Capred .
It's instant, there was no wait time.
-
RE: does this work instantly on purchase?posted in Questions & Answers
Hi @Capred ,
There is no download. You will continue to use as it is, via browser.