
I want to make a PineScript V5 Strategy with ADX and RSI But keep ...
Mar 23, 2023 · It just seems that I can't figure out the correct script for my strategy, which is the following: Buy signal when the ADX is above 46 and at the same time the RSI is oversold at or below …
pine script - Get current price, pinescript v5 - Stack Overflow
Jan 15, 2023 · I'm trying to figure out how to call current price when a certain condition exists. For example: if ta.crossover(short, long) get.price(current) := someInteger strategy.exit("closePositio...
TradingView. Pine-Script: Plotshape, using location.absolute and a ...
Sep 8, 2020 · In the TradingView PineScript programming language, the Plotshape command format is: plotshape (series, title, style, location, .... Where "Series is treated as a series of boolean values for …
Heikin Ashi candle code in pine script V5 - Stack Overflow
May 27, 2023 · In pinescript version 4, the Heikin Ashi candle open is calculated as: ha_close = (open + high + low + close)/4 ha_open = na(ha_open[1]) ? (open + close)/2 : (ha_open ...
pine script - Pinescript line extend - Stack Overflow
Jul 22, 2022 · Trying to draw Bull/bear flags and make the lines extend as long as the price is still within the top and bottom lines. The problem is if the future prices comes back into where the flag lines woul...
Pinescript: Use text variable in Alerts - Stack Overflow
Jan 21, 2021 · Pinescript: Use text variable in Alerts Asked 4 years, 10 months ago Modified 1 year, 8 months ago Viewed 5k times
pine script - no viable alternative at character ' {' - Stack Overflow
Mar 6, 2023 · I keep getting this error message no viable alternative at character ' {' when trying to compile my code in pinescript version 5. My code is as follows: // Create ...
Pine script series variables accessing last element
Jan 26, 2022 · Yes got it, thank you. Hopefully the TV developers will include some sort of function to isolate any given value from a series. @carloswm85, I suggest you have a look at pinescript …
PineScript to draw box only on current candle - Stack Overflow
Jan 24, 2023 · I want to draw a box with the following details: left = current candle - 5 right = current candle top = high for the selected 5 candles bottom = low for the selected 5 candles I wrote the …
PineScript - Is possible to put a comment with a variable inside?
Nov 16, 2021 · PineScript - Is possible to put a comment with a variable inside? Asked 4 years ago Modified 3 years, 9 months ago Viewed 1k times