GA TakeProfit from Balance manual

Avatar
  • updated
  • Under review

The idea is for "Global Account" to manually set the Initial balance. Today CP when attached to a chart takes the values of the moment, if it is placed for example GA TakeProfit ($)=1000 is what varies from the moment it was placed on the chart. The idea is to enter the balance value by hand so that from that balance if it exceeds $1000 all operations can be closed.

It's the same thing that does this:

https://www.mql5.com/es/market/product/86396

Avatar
0
Quote from Ulises Cune

I did a test with version 2.55.9 and it works as I'm requesting.

Maybe in previous versions it wasn't like that. (<2.49) That if I had open operations and placed GA TakeProfit = 10 and if the balance at that moment exceeded 10, I would close all the operations, even if I was not in profit in the entire account. (at +$10 profit)

No, this hasn't changed since 2.49.

I'll review your private report as soon as I can

Avatar
0
Ulises Cune

I think I found a TakeProfit bug. I share it with you privately

Avatar
0
Ulises Cune

I did a test with version 2.55.9 and it works as I'm requesting.

Maybe in previous versions it wasn't like that. (<2.49) That if I had open operations and placed GA TakeProfit = 10 and if the balance at that moment exceeded 10, I would close all the operations, even if I was not in profit in the entire account. (at +$10 profit)

Avatar
0
Ulises Cune
Quote from aramabdo

I think it should not make problem

For example:

1- Current balance $900

2- GA_TP = $10

3- While balance < $1000 GA_TP is inactive

4- If balance reached the value >= $1000 then GA_TP is active 

then it will take profit  with every $10 made from total open trades like normal

5- Deactivated it again if balance < 1000

In any case, I do not know the intended benefit of this feature, but I am trying to understand what Ulises Cune asked


The idea is that I close all trades when my balance exceeds, for example, $10 in total.

If I am positive $+10, close all trades.

Avatar
0
Quote from Ulises Cune

The same way TakeProfit or TargetProfit works.

Is aramabdo right? That's what you want?

Why don't you want to use TP before 1000?

Avatar
0
Quote from aramabdo

I think it should not make problem

For example:

1- Current balance $900

2- GA_TP = $10

3- While balance < $1000 GA_TP is inactive

4- If balance reached the value >= $1000 then GA_TP is active 

then it will take profit  with every $10 made from total open trades like normal

5- Deactivated it again if balance < 1000

In any case, I do not know the intended benefit of this feature, but I am trying to understand what Ulises Cune asked


I also don't understand how to use it. And don't want to add something not logical to the EA.

Avatar
0
aramabdo
Quote from Andrey Khatimlianskyi

And how it will work after the first closing with profit?

I think it should not make problem

For example:

1- Current balance $900

2- GA_TP = $10

3- While balance < $1000 GA_TP is inactive

4- If balance reached the value >= $1000 then GA_TP is active 

then it will take profit  with every $10 made from total open trades like normal

5- Deactivated it again if balance < 1000

In any case, I do not know the intended benefit of this feature, but I am trying to understand what Ulises Cune asked


Avatar
0
Ulises Cune
Quote from Andrey Khatimlianskyi

And how it will work after the first closing with profit?

The same way TakeProfit or TargetProfit works.

Avatar
0
Quote from aramabdo

I think you need option like this:

Active GA TP if balance >= x (account currency)


And how it will work after the first closing with profit?

Avatar
0
Quote from Ulises Cune

YESS!! Yeah! That's right!

It looks like a Target Profit -- close all trades when new high is reached.