Skip to content

Multiple targets #230

Answered by polakowo
GogeiD asked this question in Q&A
Sep 7, 2021 · 3 comments · 9 replies
Discussion options

You must be logged in to vote

Hi and welcome @GogeiD,

you can work with only one SL/TP target per entry - you can't have multiple TP stops for a single entry signal. This also can't be properly represented using an array since this array must have a maximum of two dimensions, both of which are reserved for time and assets respectively. I will think of how to enable this.

But for now, you can construct your signals array to account for multiple TP signals. For example, you can call this function (using entries.vbt.signals.generate_ohlc_stop_exits(...)) to generate exits for 15% above the entry price, then do the same for 30%, 45%, etc. and combine all of them into a single exits array (exits = exits1.vbt | exits2.vbt |…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@GogeiD
Comment options

@polakowo
Comment options

@egrafeuille
Comment options

@GogeiD
Comment options

@aurelien65
Comment options

Answer selected by GogeiD
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@polakowo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants