Pine Script V5, how to I set SL/TP pre inputing a range?
I tried to use the word range, but it didn´t work, what I want is to position the SL/TP orders together with the order based on a pre set range of $ or %.
Sample: order long price $1000, pre set range of $100 or 10%, send take profit to close at $100 and Stop loss at $900
I really apreciate if someone can show me or indicate any place where I can find a help for it.
Best regards
Ricardo Marinho