r/pinescripts • • Nov 19 '23

5 Oscillators in 1

0 Upvotes

Hey Traders , I hope you all are doing great , this is the first Indicators i published on Tradingview , Many of traders use different oscillators for technical analysis so with the help of this indicator they can just switch between 5 different indicators namely : Rsi , CCI , Macd , OBV , DMI , you can easily use this indicator and its source code from here : Indicator , also you can comment out ideas for the next script i should post , i would be posting out scripts on regular intervals ,

also if you want to create a custom Tradingview indicator or strategy you can message me at : Telegram , Gmail


r/pinescripts • • Sep 29 '24

Can you guy help me In this code:It says line 23 is wrong I think that it says" if (buycondition)*" the asterisk is where the mistake is

0 Upvotes

//@version=5 indicator("Long-Term Trading Strategy", overlay=true)

// Inputs for strategy parameters lengthMA = input.int(50, title="Moving Average Length", minval=1) rsiLength = input.int(14, title="RSI Length", minval=1) macdFastLength = input.int(12, title="MACD Fast Length", minval=1) macdSlowLength = input.int(26, title="MACD Slow Length", minval=1) macdSignalLength = input.int(9, title="MACD Signal Length", minval=1)

// Calculations: Moving Average, RSI, MACD ma = ta.sma(close, lengthMA) // Declarative statement for moving average rsi = ta.rsi(close, rsiLength) [macdLine, signalLine, _] = ta.macd(close, macdFastLength, macdSlowLength, macdSignalLength)

// Buy condition: price crosses above MA, RSI is below 50, and MACD is bullish buyCondition = ta.crossover(close, ma) and rsi < 50 and macdLine > signalLine

// Exit condition: price crosses below MA, RSI is above 70, or MACD is bearish exitCondition = ta.crossunder(close, ma) or rsi > 70 or macdLine < signalLine

// Plot Buy Signal - Green Box Below Candle if (buyCondition) label.new(bar_index, low, text="Buy", style=label.style_labelup, color=color.green, textcolor=color.white, size=size.normal, tooltip="Buy Signal")

// Plot Exit Signal - Red Box Above Candle if (exitCondition) label.new(bar_index, high, text="Exit", style=label.style_labeldown, color=color.red, textcolor=color.white, size=size.normal, tooltip="Exit Signal")

// Plot the Moving Average line for reference plot(ma, title="Moving Average", color=color.blue)


r/pinescripts • • Nov 21 '24

Pine Script Keeps Entry Condition Stored after Exit - Require Fix.

Thumbnail
reddit.com
0 Upvotes

r/pinescripts • • Oct 11 '24

Ai-coding pinescript

1 Upvotes

Hello everybody, im a beginner in PineScript and im trying to make my own strategy in TradingView. Right now i dont have time to learn PineScript so i am using the help of Chat -gpt ( free version ) to code the strategy. I would be verry gratefull if someone could help me with how should i compose the text instructions for Chat-gpt to generate my code. And aswell if there is a better option than Chat-gpt ( even payable )? So i would like my strategy to be composed of RSI (lenght 14 ), SMA-9 ( red colour ) ,SMA-200 ( white colour), EMA -20 ( yellow colour ) and VOLUME. On the 3 minute timeframe. The chart should prioritise candlesticks ( white colour for increasing and grey colour for decreasing ). I would like a BUY signal (green arrow) to appear on the chart under the candle , when these conditions are met:

  • Candle closes full body abbove the SMA-9 -RSI is above 50

  • SMA-9 and EMA-20 both must be abbove the SMA-200 -SMA-9 must be bellow EMA-20 -VOLUME bar must have an increase of 25% in comparison to the previous bar. -the BUY SIGNAL should be shown just once after the first full body candle close abbove the SMA-9, just on the first candle. the condition that resets the rule must be when SMA -9 is crossing bellow the EMA-20, after that the BUY SIGNAL can appear again when a candle closes full body above the SMA-9.

Since im a beginer i tried to explain as good as i know, if anyone would be so kind to help me im available for additional informations.


r/pinescripts • • Nov 18 '23

Tradingview Indicator

4 Upvotes

This is a recent Indicator created by me on Tradingview using pinescript , well the indicator plots buy and sell signals and alerts along with the signals the indicator has the ability to plot lines for target and stop loss (adjustable in the script ) and create alerts when the target or stop loss get hit , also it has one more functionality which is it also provides breakeven alerts which means as soon as the There is a profit of 1:1 (adjustable in the script ) it gives an alert so that the trader can exit some of the quantity .


r/pinescripts • • Nov 15 '23

Get Heikinashi Candlesticks without changing the chart type

2 Upvotes

"I recently created a #Tradingview #Indicator using #Pinescripts that can plot Heikin Ashi candlesticks on any chart type. Therefore, there is no need to switch charts multiple times to analyze Heikin Ashi and normal candlestick charts. One can simply use this indicator to get both Heikin Ashi and normal candlesticks on their chart. It might be helpful for traders in making quick #Trading decisions."

if you want to create your own Tradingview Pinescript for your specific needs , you can dm me or can message me at :- https://t.me/maestr037 for getting faster response 😊😊


r/pinescripts • • Nov 24 '23

Pine script code

1 Upvotes

Hi guys I need a indicator in tradingview that plot a line number of pips costume above and below daily and weekly open price thanks


r/pinescripts • • Apr 14 '24

Looking for ideas for creating Custom Free to use Tradingview scripts

2 Upvotes

Hey there Traders , I am looking for some ideas to create pine scripts for my tradingview account they would be freely available to use by anyone and the code would be visible, you can comment down the ideas which I should create ...also you can message me if you want to create a custom script specifically for your own use the code will be directly shared with you via text file


r/pinescripts • • Nov 21 '24

Pine Script Keeps Entry Condition Stored after Exit - Require Fix.

Thumbnail
reddit.com
1 Upvotes

r/pinescripts • • Jan 21 '24

Coding Custom Tradingview Indicators and Strategies

2 Upvotes

If anyone wants to create a custom TradingView indicator or strategy, you can message me here. We will discuss your requirements in a Google Meet or Zoom call. The first order from anyone will receive a direct 30% discount.


r/pinescripts • • Nov 16 '23

Scan 40 Instruments at a time

2 Upvotes

This is one of the most complex screener on tradingview using pine script ever created by me , this screener scan a certain buy and sell conditions over 40 different assets and generate signals for them ( the circle represents the buy signals where as the cross represents the sell signal ) the screener is also capable of generating alert the most special part of this screener is that it can show signals for past signals as well which most of the other tradingview screener cannot due to their simpler UI design.

The screener also has 5 watchlists , these watchlists contains some predefine instruments so the user don't have to input 40 different instruments everytime .

This is one of my finest Pinescript creating in terms of utility ofcouse the buy and sell conditions depend on the user itself 😊😊😊😊

If you want to create a tradingview indicator or strategy for yourself you can message me https://t.me/maestr037 for faster response :)


r/pinescripts • • Nov 16 '23

Scan 40 Instruments at a time

2 Upvotes

This is one of the most complex screener on tradingview using pine script ever created by me , this screener scan a certain buy and sell conditions over 40 different assets and generate signals for them ( the circle represents the buy signals where as the cross represents the sell signal ) the screener is also capable of generating alert the most special part of this screener is that it can show signals for past signals as well which most of the other tradingview screener cannot due to their simpler UI design.

The screener also has 5 watchlists , these watchlists contains some predefine instruments so the user don't have to input 40 different instruments everytime .

This is one of my finest Pinescript creating in terms of utility ofcouse the buy and sell conditions depend on the user itself 😊😊😊😊

If you want to create a tradingview indicator or strategy for yourself you can message me https://t.me/maestr037 for faster response :)


r/pinescripts • • Dec 07 '23

Need Pine script

2 Upvotes

How much it gonna cost me to create a trading view strategy from scratch ( it has it's own calculations and plots and is not based on some freely available indicator )?