Simple Stop-Loss and BE project
-
Im a kind of trader who does not put SL on my layering trades and close manually, but emotions set in and sometime i cut loss and sometime i rely on hope and then blow account. I'm a profitable but i want to work on this side of my trading.
So i want to make a bot that will place SL exactly 60 pips on Gold, and if i open more position below the first one that carries the 60pips , all position should use the first 60 pips SL. Also when my trade goes in 6opips in profit i want to set BE on all my trade following the first position i entered.
How can i achieve this, this will really be a game changer for me in tis trade journey.
-
what i have done so far
-
Every light pink needs a dark pink for each trade block above it
-
@jstap so please how do i make then use one SL value from first trade
-
Save the value into a variable pink for each trade 1 oldest to newest-modify variable. In a separate tree modify all SLs to the variable value
-
@jstap Wow this is heavy for my brain.
Please can you do a quick modification of my current project do i understand better -
Something like this, have used the on tick and on trade tabs: https://fxdreema.com/shared/fUHbO3ync
-
@jstap getting error Compilation errors
'SL' - constant expected -
There is no constant in that, only 1 variable...add a shared link to show what's causing this
-
-
I click EX4 button and it downloads?
-
yes it just downloaded now too
Pls check, if all is good -
Do you want all trades or just 1?

-
now my first trade does not give SL, i have to input it manually
i want all the trade i place to have the SL of the first position
-
You know areas 6 & 7 won't work as the EA doesn't place a trade?

-
okay we can scrap that, but i will wnat a break even once it gets to a certain pips
also if i put break even the position should no go back to the old SL -
Not sure what you mean by go back? breakeven will move once
-
@jstap try it on a demo account and see what happens
-
@l-andorrà @jstap Pls can you give an input to this below project link
https://fxdreema.com/shared/RU9vFOUKc
What i want to achieve.
I want the first position to get 60pips SL value.
Then any other position i run should have the first position Stoploss.
All position must have same SL.Then break even when it gets to 30pips in profit
-
You want to save the SL value:
