🚩My Socials & More Free Content: theartoftrading.com ▼Timestamps▼ 00:00 - Intro to Arrays 05:22 - How to Declare Arrays 10:15 - Changing An Array Element 14:09 - How Variable Persistence Works 15:29 - Using Array Persistence & Pushing Values 19:25 - Summary
Sir how to combine 2 indicators? I tried combining by copy and pasting the 2 scripts of the 2 indicators but after saving only 1 indicator is displayed.. Tried combining these 2 indicators on tradingview TSI w/ BB and CCI indicator but was unsuccesful. Need your help for the script sir..🙏🏼🙏🏼🙏🏼
Me too never used arrays but i have seen a lot of top pine coders on tradingview using arrays and i could understand their code . Thanks for the tutorial ❤️
Hi, just wanted to say I greatly appreciate all your content and it's been incredibly helpful for me recently. And I'm curious if there's a way to check for economic events in pine script, I know tradingview has an option to show these events on the chart, but I'm wondering if it's possible to use those events to prevent an entry within a few minutes before and after the event?
Hi, thanks for the videos. I am wondering how to manage arrays in any strategy. I am not sure if there is any impact or something to take into account. My concern is that it is suppose to be building the array at the time the script goes from older bar to the most recient bar. So, once I have my full array complete and extra calculations done, it will be late to be use in the strategy entry/exit positions. Probably I am thinking to much!! 😢 If you have any tip about arrays and strategies together will be good
why i am getting error Error at 7:10 Syntax error at input '[' for the following code //@version=5 indicator("Custom Screener", overlay=false) // Define the list of stocks stocks = ["AAV","AC","AEM","AFM","AGI","ALA","AN","AOI","AQN"] // Loop through the list of stocks for stock in stocks // Get the stock's close price stockClose = security(stock, timeframe.period, close) // Calculate MACD for the current stock [macdLine, signalLine, histLine] = macd(stockClose, 12, 26, 9)
// Calculate RSI for the current stock rsiValue = rsi(stockClose, 14)
// Check for MACD crossover below zero and RSI below 25 if (crossunder(macdLine, signalLine) and histLine < 0 and rsiValue < 25) // Plot an alert on the chart alert("Stock " + stock + " meets the criteria")
🚩My Socials & More Free Content: theartoftrading.com
▼Timestamps▼
00:00 - Intro to Arrays
05:22 - How to Declare Arrays
10:15 - Changing An Array Element
14:09 - How Variable Persistence Works
15:29 - Using Array Persistence & Pushing Values
19:25 - Summary
Sir how to combine 2 indicators? I tried combining by copy and pasting the 2 scripts of the 2 indicators but after saving only 1 indicator is displayed.. Tried combining these 2 indicators on tradingview TSI w/ BB and CCI indicator but was unsuccesful. Need your help for the script sir..🙏🏼🙏🏼🙏🏼
is there any way to count and display the amount of output series in a code?
Me too never used arrays but i have seen a lot of top pine coders on tradingview using arrays and i could understand their code . Thanks for the tutorial ❤️
Thanks you very much for your simplifying explanation.
You explain things so well! Great video - thank you. :)
Hi, do you have any material covering Heikin-Ashi candles? thank you for the video.
Hi, just wanted to say I greatly appreciate all your content and it's been incredibly helpful for me recently. And I'm curious if there's a way to check for economic events in pine script, I know tradingview has an option to show these events on the chart, but I'm wondering if it's possible to use those events to prevent an entry within a few minutes before and after the event?
2:37 4:29 get set to read and write values of array elements 7:40 create label
12:09 ERROR index is OUT of Bound 15:36 var push
thank you. at about 8:17 ? what is the character just before the "tostring" command ?? (line 9)
Hi, i am a beginner. want to start learning the pine script please advise where to start ( from your playlist )
Thanks, from what I see array is like a list in python
How do you remove the previous label? Every time a new label is created, the previous label remains on the plot. Thanks!
Hi, thanks for the videos.
I am wondering how to manage arrays in any strategy. I am not sure if there is any impact or something to take into account.
My concern is that it is suppose to be building the array at the time the script goes from older bar to the most recient bar.
So, once I have my full array complete and extra calculations done, it will be late to be use in the strategy entry/exit positions.
Probably I am thinking to much!! 😢
If you have any tip about arrays and strategies together will be good
Sir pls tell how to make script of candle of Open =High with different colour
why i am getting error Error at 7:10 Syntax error at input '[' for the following code //@version=5
indicator("Custom Screener", overlay=false)
// Define the list of stocks
stocks = ["AAV","AC","AEM","AFM","AGI","ALA","AN","AOI","AQN"]
// Loop through the list of stocks
for stock in stocks
// Get the stock's close price
stockClose = security(stock, timeframe.period, close)
// Calculate MACD for the current stock
[macdLine, signalLine, histLine] = macd(stockClose, 12, 26, 9)
// Calculate RSI for the current stock
rsiValue = rsi(stockClose, 14)
// Check for MACD crossover below zero and RSI below 25
if (crossunder(macdLine, signalLine) and histLine < 0 and rsiValue < 25)
// Plot an alert on the chart
alert("Stock " + stock + " meets the criteria")
Sir, Can we fill the two lines plotted by using array.push and how to fill that, please help.
thanks
I need help please help me.
Hi
Only 50 Ema cross pine code strategy
Please help
Share your number
And details to me