3 take take profits
-
If I have 3 take profits levels on a chart. How can I put their values into a variables automatically. Which will be 3 different TP values off course. @fxdreema
-
@sjthetechguy
I suppose when you say "into a variables" you mean "into 3 variables". Then if there is one TP by position, this structure should work :
https://fxdreema.com/shared/dSH5jSMXd
Needs confirmation tho. -
@seb-0
tried mate..i put the comment also so that i can see the values of those 3 tps but nothing appears. -
@sjthetechguy
Duno this work fine on my broker : https://fxdreema.com/shared/5dynQn8Mc
Can I see you project ? -
@seb-0 https://fxdreema.com/shared/sPkaGoydb
I did create those variables...pass, TP1, TP2, TP3 fyi -
@sjthetechguy Some additional info would be appreciated. Are you inserting those TP levels manually or are they generetaed by an EA?
-
@l-andorrà its from an EA, tbe trades are being set by the signal provider.
I want to setup my own breakeven point system for those trades with multiple take profits.
-
@sjthetechguy Ok. So this is how it works:
- An EA opens one or more trades from a signal provider, including those 3 TP levels.
- You want to modify manually the SL level as those TP levels are reached.
If I understand it correctly this means you wil have at least 3 open trdes or one onlytrade that will be partially closed as new TP levels are reached. Right?
-
@l-andorrà Yes, thats 100% correct.
So here's exactly what I am trying to do.
If there are 4 tps from the signal provider then their EA already opens the 4 trades. Or if there are 3 TPs then their EAs opennthe 3 trades.
So what I am trying to do is that I want to get the TP values into variables so that I can identify which tp is higher and then based on the TP leavels hit I can move the stoploss to my own defined breakeven based on the TPs and open price distance.
For example...if its a buy trade...
Open Price 1
SL 0.5
TP1 - 2
TP2 - 3
TP 3 - 4So, I want to know the TP1, TP2, TP3 values into variables, and draw horizontal lines so that I can tweak the SL based on my Breakeven values.
-
@sjthetechguy Mmmmh. That is an interesting problem. We can use 'for each trade' loop to find them all but what you want is storing them permanently into 3 different variables. This is a fascinating question I had never met before? Any additional ideas from anyone else?
-
hey guys how can i set these 3 tp to my fib levels? 100, 261.8 , 423.6?