python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
In tradingview, pine script function strategy.exit doesn't work if take profit and stop loss were set separately instead of a single line
The following code works for me when I try to set the stop loss and take profit level:
strategy.exit("TP/SL 1", "Long Entry 1", stop = long_stop_level, limit = long_profit_level)...

jguy
Votes: 0
Answers: 1
Pine Script Strategy Stoploss and Takeprofit problem
I tried to code a strategy with Stoploss and Takeprofit. After the signal bar, the entry (blue Line), stoploss (red line) and takeprofit (green line) are declared.
Problem 1: When a position is entere...
Max
Votes: 0
Answers: 1
Pine Script how to store the high/low of my entry condition?
I want to test a simple strategy.
If my Condition "Test_Bar" is happening, I want to store the Candle high ("Bar_high) of this bar. If after some candles the price reaches the "Bar...
Max
Votes: 0
Answers: 1
Needed to keep fixed time frame , even after chnages
Thanks for reading this,
After a lot of googling and searching, I was able to create a script that marks high and low candles with the highest volume
The problem currently I am facing is I wanted it t...
Cod
Votes: 0
Answers: 1