Need help with Breakeven and Trailing Stop at a certain Percentage of Profit
-
I have been trying for months and several hundred combinations to make an EA that, when a trade reaches 1% profit it will enter a stop loss at that price level(1% profit), and then trail the price from there if it continues in a profitable direction.
I can get the Breakeven function to enter a stop at the right level but only if the price travels several pips beyond that level first which defeats the purpose, and if i have a trailing stop function involved with it, it starts trailing before the trade is in profit which can cause it to stop out to soon.
I'm sorry to bother you with this but without knowing how to code i can't make it work when in reality it should be an extremely easy task to accomplish compared to everything else you can do with fxdreema. Thanks for your help.
-
@danzadrummer You will need some variables to do many of those calculations. Do you have any initial project to begin with?
-
-
Aha..part of the answer of what you're looking for is in here, https://fxdreema.com/forum/topic/4858/total-profit-reduces-by-x-then-close-everything
Trust me, this is good.
The formula made by @roar .
I am using it now in my EA.
Still under testing of the strategy. -
@biztet Every roar's formula deserves to be studied and followed carefully.

-
@l-andorrà @biztet lol

@danzadrummer We can use mql4 function AccountBalance() in the trailing stop settings, maybe that does the trick:
https://fxdreema.com/shared/0R74W0tMc -
Hi @roar .
The middle part, it is ready to use, right?
Permission to test it in my EA.
Thanks. -
@biztet I did a quick backtest, seems to work - go ahead
-
hmm...put in the right place will make you a money machine, hahaha.
-

this what i get if i try to compile it.
-
@danzadrummer weird. Does the trailing stop look like this

-
I don't have problem compiling. Put on the daily/weekly trend will make you money.

-
@roar Got it, i accidentally put a check in the box by AccountBalance. I'll give it a try, thank you.
@biztet That was definitely the plan, i knew it was gonna be a winner, just needed to iron out this wrinkle.
This will be be our little secret, whatever you do, don't post it in any public internet forums, LOL
-
Got it!
That's right @danzadrummer . @roar always come out with a profitable solutions for us if we really know how to use it and put it at the right place.
I myself have tried a few of @roar 's when i dig in this forum.
There are gold mines in here.
And i believe that @roar is already a goldminer with a good heart. -
-
@biztet @danzadrummer that is so kind, thank you
-
Everyone is struggling to create an EA that can make them a millionaire in less then a month. But in the end no broker would allow that and will never pay every million the traders make. To me by achieving consistantly $300-$500 a day and can withdraw daily/weekly is the best achievement in making an EA. And the mission is to build a profitting EA that safe to run with 1000cent, and consistantly gain 300-500cent a day, hahaha.

-
@biztet said in Need help with Breakeven and Trailing Stop at a certain Percentage of Profit:
Everyone is struggling to create an EA that can make them a millionaire in less then a month. But in the end no broker would allow that and will never pay every million the traders make. To me by achieving consistantly $300-$500 a day and can withdraw daily/weekly is the best achievement in making an EA. And the mission is to build a profitting EA that safe to run with 1000cent, and consistantly gain 300-500cent a day, hahaha.

Amen, brother!
-
Its suppose to be a simple thing to make @l-andorrà . I wonder if anyone could share it with me.

It wouldn't be much, just 2-3 trades with small pips for takeprofit, 3-5pips only, lot 0.1 only. That's for single pair. And can apply to all 20+ currency pairs. Wouldn't that make us $10 per pair? Simple math right? I'm sure no broker will get mad for this.
But now it looks like @roar 's formula can give us more than that.
-
Master @roar , Can you help me with simpler structure for your formula please?
With the same function.