-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
close position by stop or take profit #462
-
Hello, I programmed a strategy of crossings of emas and established a sl and tp but it only opens 3 operations and does not close them, I would like to know if I should do something to close the operations by tp or sl
pregunta final
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments 7 replies
-
SL and TP orders should be executed automatically once the price level (0.2 or 4.0, for example) is hit.
Beta Was this translation helpful? Give feedback.
All reactions
-
I only open a trade and never close the operation in 10 years for what reason can it be
Uploading 45.JPG...
Beta Was this translation helpful? Give feedback.
All reactions
-
At the price only. Is there anything in the documentation suggesting otherwise?
Beta Was this translation helpful? Give feedback.
All reactions
-
Not in the documentation it does not say that, only that I do not see much information on how to place the stop and the tp, since if it goes in price how could it be to know at what price there is an entry and what price should the stop go, I supposed It was in percentage since in each entry that was only if it reached that percentage it closed the position, but I see that it is not like that, then I must know at what price to place the stop and if there are a thousand operations I must know each operation at what price is the stop?
Beta Was this translation helpful? Give feedback.
All reactions
-
ffff
These are the prices that I have, which would be the correct way to put a stop and a take profi
Beta Was this translation helpful? Give feedback.
All reactions
-
Were you aware of and have you seen the tutorials? At least two of those show how to set sl=
(...) properly ... 😄
Beta Was this translation helpful? Give feedback.
All reactions
-
I already solved it, the current price has to go first and multiply it by the tp and the stop
if crossover(self.ma1, self.ma2):
self.buy(sl= price0.99,tp=price 1.01)
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1