My idea is to make the MACD histogram oscillating in a range from 0-100 just like the RSI. I did it successfully, but compared to normal MACD histogram it is to
Trying to learn Pine script here to optimize my trading strategy. I have around 1.5 year of experience trading. The trendsystem Im using is the all mighty Ripst
I am just getting to grips with PineScript and more specifically writing strategies to place orders/trades however, have a quick question. I want to create a ba
I'm trying to hunt down a bug. My strategy wouldn't close, even if the closing criteria is met. I checked multiple point manually, using the Data Window which c
Relative volume is the ratio of the current volume to the average volume during a prior number of bars. Given that volume changes drastically by time of day, a
study("temp",overlay=true) startDate=input(title="StartDate",type=input.time,defval=timestamp("01 Jan 2000 09:15:00 UTC+5:30")) // newDay=change(time("D"))!=
I want to predict and generate candles and show them in the chart after current time but plotcandle and plotbar don't support the offset argument for shifting m
I am getting an Undeclared identified 'd' error. This was converted from an indicator that had alerts. But when I had them in TV nothing would happen. I can't s
I am trying to define my strategy based on desired values of RR (RiskRewardIndex), and risk ro reward ratio changes by currency and timeframe. I use the dist
Is it no longer possible to toggle a "checkmark" input box to match a coded switch? I believe we used to be able to do this and have the checkmark box toggle on
I want to add a vertical line like below pic and it should be movable line, I'll tried many codes but they can't add movable vertical line, how can I do this ?
There is a simple script on Pine. When executing strategy.entry, I try to draw a horizontal line at the level of the trade entry price. The only way I found to
In one hour timeframe I am trying to study the four days of daily candles to know the trend to create an indicator on the 1 hour chart if I should make a sale o
I have been changing my tradingview pine code, when I save it, tradingview creates a version. Now I am getting confused with so many version. I want to delete t
I have defined the price levels have a way to close trades at that price, but i want to visually show the levels, just to visually verify them. Im new and could
I'm trying to put together a var cross flag to determine if the price crosses above the previous days' high. This is for a screener so further security requests
lets say i want the price when 2 EMAs crosses and use that price to create another variable as an stoploss but in realtime the price always changes in realtime
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
I want to create a series in which every value is normalized to the value of a particular element in the series, for example the latest value. If you try syntax
Is there a way to create an indicator which reflects the current price of a stock in Pine Script? I need this indicator because I need to enter an order before