Questions tagged [pine-script-v4]

Pine Script is a scripting language designed by TradingView. It allows users to create custom indicators and run them on their servers.

Pine is a lightweight language focused on the specific task of developing indicators and strategies. Most of TradingView’s built-in indicators have been coded in Pine.

See documentation of Pine Script v4

665 questions
-2
votes
2 answers

Im trying to move my stop loss when the first take profit is taken to breakeven or the entry price of where i entered from when 1/2 is taken off

im unable to move the stop loss to the entry price when i sell half of the position i have the entry price working and can get the price for the stop loss but i want it to move to break even once the profit target //@version=5 strategy('Renko',…
-4
votes
1 answer

Plot red candle open and close at or below 50% below mid point of candle

i would appreciate some Help with pine code to plot sell signal for red candle close is at or below 50% below mid point of candle( i.e. open and close should be in the lower 50% of the body). Candle should be above 5ema and should not touch…
1 2 3
44
45