@l-andorrà
All good, merely thought this ( your own code ) would be a place to start.
Maybe using the same logic, but have 2 independent calculations.
1 = calculate Lose % of Balance
2 = calculate TP % of Balance.
I might have miss understood, sorry.
Knowing you, you'll get it...

Posts made by Vortrexcian
-
RE: How can we select a SL/TP price level based on balance percentage?posted in Questions & Answers
-
RE: auto draw on symbol changeposted in Questions & Answers
@drewliedadeuce
As @jstap mentioned.
The On Init means initialization ( once the EA is loaded to a chart, it starts )
Your EA has already started, so there's no initialization again, even when you add or change anything on the chart ( unless you remove and re add your EA, the Init will start again )If you change anything there after, it should be in the OnTick ( searches for anything within every tick (( per second )) to alter on the chart )
So if you change the symbol on the same chart, the OnTick will detect a change and redo whatever the command is. -
RE: Alert / Notification Issue with messageposted in Questions & Answers
Thank you and truly appreciate the feedback and input.
#Legend -
Alert / Notification Issue with messageposted in Questions & Answers
Hi Guys
Hope somebody could please shed some light on this as I am stuck.
Simple EA with Arrow ( Link https://fxdreema.com/shared/rnnh3FBVb )
When condition is met, an Arrow appears.Also added the delete box ( only needs to keep the new 20 Arrows, but have some issues with this as well, it deletes the arrows, but then stops and then deletes the newer ones and much much later, if you have some insight on this, would appreciate it as well )
However, my issue with Notifications is as follows:
Phone (Mobile) seems to work okay ( might have to add server time as well )

Backtest works great

But Live does not display the same!

It only displays the EA anme, symbol and timeframe, but no entry price and estimate tp.
It is displaying the very last alert's at the top left corner, but it is not showing it on the rest of the listing. ( where the question marks are on the picture )Can you guys please let me know why this is, did I forget something or did I do it wrong.
Any assistance to this regards would as always be greatly appreciated.
Thank you in advance -
RE: MT5 Timeframesposted in Tutorials by Users
On top of this.
If I want the chart to always be on a M5, how would one go about having a message display "Not on correct Time Frame, must be on M5"
Not that important, merely playing around with a few ideas.
-
RE: MT5 Timeframesposted in Tutorials by Users
Thank you so very much Bud.
Truly a Legend for doing this.
This helps me out so much.Great work as always.

-
RE: TRENDLINE BREAKOUT EAposted in Questions & Answers
Hay Bud
Quick one.
Just to recap.
YOu have a indicator, that draws Auto-trendline, you want to buy / sell when this indicator gives the signal, right?
If so, you previous picture, that line, did you draw or was that the indicator?
What @jstap suggested, was to use the additional block that would display what the value would be for when the indicator draws, so that, thats value could be used to trigger the Buy / Sell on your EA.
If you drew the line, it defeats the purpose.
-
RE: Fixed SL / Break Even / SL Trailing Assistance Pleaseposted in General Discussions
Would like to thank
@l-andorrà
and
@jstapFor always assisting.
The information that you guys give and post are truly remarkable.Thx Guys, I managed to get it sorted with your assistance.
-
RE: Trailing Stopposted in Questions & Answers
Hi
You said "from other EA's"
Are you using the same EA on different charts or are they different EA's completely?If its the same EA, change the "Magic Number for each chart" when you load it.
However, as @CuriousMind87 mentioned, you could filter (group) them as well.
It is strange that your EA would be closing everything on your "account" if its not the same EA on the other charts, but this could also be the blocks / conditions that you used.
Look at you blocks (and logic)
Are trades to close under "Each Trade" or did you create it to close all and used "Account"Merely a point.
Glad you got sorted though.
-
Fixed SL / Break Even / SL Trailing Assistance Pleaseposted in General Discussions
Hi All
Hope everyone had a good Festive season.
And a great New Year.Was wondering if anyone could please assist with the following.
As I have tried a few methods and just cant get it right.What I would like to happen is the following:
Once trade opens ( 0.01 lot size )
There should be a SL of 1000 pips ( which is roughly -$10 depending on your broker and symbol )Then, once price is in profit of 300pips ( roughly +$3 )
It should break even ( adjust SL to entry )Now, here’s where I get stuck.
If price moves above the breakeven (300 pip marker) to 301 pips, sl should move as well with 1 pip.
So always after breakeven, keeping a distance of 300 between price and SLWhat I really would like ( not sure if this is even possible )
The same as above, but if price moves to 301pip from entry, that SL should then jump to 100 distance between price and Sl.
Let me know if anyone could assist with any of the above.
As I have tried, but whenever I place SL, price would only move once that same amount in SL has been reached:
Example:
SL is 1000
Breakeven is 300 profit.
Breakeven will adjust.
But then trailing will only happen with every 1000 pips movement.
And this is not what I would like to do.Any feedback would greatly be appreciated.
If possible, please use the link and re-post what I missed or did wrong or left out.
If possible, screen shots of any additional adjustments would be appreciated as well.
https://fxdreema.com/shared/cRiipPBDcThank you in advance.
-
RE: TRENDLINE BREAKOUT EAposted in Questions & Answers
Hi
Cant think why of why not.
Your custom indicator, is it under the normal "nagivgator" listing or in a custom folder.
I had an issue where my EA did not want to open trades either, but this was because my custom indicator was under a custom folder.
I moved it under the normal lising and then i worked.
Other than that, I have no idea.
Sorry Bud. -
RE: Profitability of the robot in the test and loss in the live marketposted in Questions & Answers
Post some pictures and explain it, makes it a little easier to see what you are talking about.
Also, post your project for the people to be able to assist
-
RE: STOP LOSS / STEP Trailing not working, what am I doing wrongposted in Questions & Answers
Thank you for your reply.
Ran it in backtest and the SL did not trail at all.
I'll reboot my system and see if that could perhaphs fix it.
As far as I know, the blocks are right and for every trade it opens, it should adjust the SL trailing, but it did not.
thx again @l-andorrà
-
STOP LOSS / STEP Trailing not working, what am I doing wrongposted in Questions & Answers
Hi All
Could some please let me know what I'm doing wrong regarding the Stop Loss trailing as it doesnt work.
Everytime a condition is met, it should open a trade ( thus the once per bar )
The opening of trades are working and the SL is working as well.I did not place a TO, but wish for the SL to trail and step, but cant seem to get this to work.
Any assistance would be appreciated.

