Yes, That I can understand , only if you can suggest something to fix it
Posts made by accastudent
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
For the clarification
I have a EA that opens multiple lots , for 2,4 & 5 it opens trade equivalent to sum of opened trades when drawdown reaches condition value.
i.e. 0.01 , 0.02 , 0.03 = 0.06But if I open another trade i.e. 0.02 then the EA again opens hedging for 0.02 and continues for all new opened trades.
I wanted to restrict it to open one trade at a time. I put "counter: pass once" and it doesn't open new trades.
I want to add a function that re-execute the condition and opens the trade if I close the hedge trade of 0.06 manually or by trailing stop loss.( Even if the trades from the other EA are active). Run the loop only if trade of 0.06 is closed.
Thank you
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
Sorry but not opening the trade again

-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
@jstap Please advise as it is working but again starts to open several orders

-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
Can you please give some hint to put condition to check hedge trade and if closed then move to reset function .
Thank you
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
@jstap I have added Counter pass once and now it is working fine and not opening more than one trades.
But how can I reset this counter if the trade is closed. Please advise


Thank you
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
@jstap Is there any block that can stop the loop if one trade is already opened?
Thank you
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
@l-andorrà @jstap I have created a custom block that opens an equal trade for the opposite direction when the drawdown reaches 5% but I am still having an issue.
Suppose of there are 5 buy trades opened for ( 0.01, 0.02, 0.03,0.04,0.05= 0.15 ) it will open 1 sell trade for 0.15 .But if the other EA continues to opens another trade it also start to open hedging for those trades.
Please if you can suggest any way to stop taking further hedge trades until 0.15 is already opened and once the hedge trade is closed it may open again.
Thank you

-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
@l'andorrà Can you also please provide any solution. Thank you
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers

I have change few settings and tried to find where can I enter the if condition and what would be the condition.
https://fxdreema.com/shared/igNfSNEvb
Thank you
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
@jstap Thank you for your help. I appreciate your efforts.
The EA is now opening trades as it reaches drawdown value of 5 percent. But it is opening several trades for both buy and sell trades and even not match the lots size.
If you can please advise modification of setting to open only one trade for opposite side or hedging for sum of lots already opened i.e. 5 buy trades (0.01 , 0.01 , 0.02 , 0.04 , 0.08 = 0.16 ). It should only open one trade for sell 0.16
https://fxdreema.com/shared/igNfSNEvb
Thank you
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
I just want to assemble an EA that just calculates the drawdown and opens new hedging trade on 5 percent of drawdown.
Not for trading and only for the risk management.
Thank you -
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
I am sorry but I am a beginner , please if you can elaborate a little and please guide me .
https://fxdreema.com/shared/PxajdmYJ
Thank you
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
Can you please help as this drawdown hedging function is not working. Thank you
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
@jstap Is it possible to create different trees as the shared project
-
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
Yes , actually one EA is running already to open trade. I just need to make a hedging EA to support the risk management.
Will it work accordingly if the trades are opened?
Thank you -
RE: Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
@jstap Thank you for your reply.
https://fxdreema.com/shared/sOm1xtRcd
Please check , I want to open a hedging trade against the total floating lots at 5 percent of equity drawdown. Again reopen the hedging trade after next 5 percent and trigger autotrading off.
Thank you
-
Calculate equity drawdown percentage and open opposite direction tradeposted in Questions & Answers
Dear all ,
For all the experts and members I would request to help me in my project.
As I have very little knowledge for coding. I have already created auto trading turn on and and turn off function.
I just want help regarding a drawdown percentage calculator when reached a custom input value should open a hedging trade against the total lots floating in loss.
Thank you
