draw line in given time range
The situation is as follows:
PineScript plotCandles: how to plot candles dynamically
I have a historical set of data that I need to show as candles in tradingView. For this, I’m thinking of store in arrays each open,high,low and close data and next use plotCandle function to plot the data. The thing is that I haven’t found how to loop that arrays to use plotCandle on each iteration and synchronize the data with the date it was generated.
How to manage multiple exit conditions in PineScript?
I want to exit a certain positions when certain conditions are met. My conditions are following:
Unable to close/exit a position in Pinescript
This is my code:
Stop loss executed in profit – TradingView strategy glitch
I am new to Pinescript, but this perplexes me. My stop loss closes a trade in profit.
Stop loss executed in profit – TradingView strategy glitch
I am new to Pinescript, but this perplexes me. My stop loss closes a trade in profit.
Stop loss executed in profit – TradingView strategy glitch
I am new to Pinescript, but this perplexes me. My stop loss closes a trade in profit.
Stop loss executed in profit – TradingView strategy glitch
I am new to Pinescript, but this perplexes me. My stop loss closes a trade in profit.
Stop loss executed in profit – TradingView strategy glitch
I am new to Pinescript, but this perplexes me. My stop loss closes a trade in profit.
Is my SL updation to breakeven point is irrespective of main condition in Pine script V5?
I have a PineScript strategy that executes trades when certain conditions are met. Currently, the strategy places up to 5 trades and automatically updates the stop loss to breakeven once the first take profit (TP1) is reached.