Beginner Guide to ARRAYS in PINE SCRIPT

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 22

  • @TheArtOfTrading
    @TheArtOfTrading  2 роки тому +5

    🚩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

    • @michaelgaerlan5415
      @michaelgaerlan5415 2 роки тому

      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..🙏🏼🙏🏼🙏🏼

    • @aiLoveE
      @aiLoveE 2 роки тому +1

      is there any way to count and display the amount of output series in a code?

  • @jack_sparrow1049
    @jack_sparrow1049 2 роки тому +1

    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 ❤️

  • @phalleak_01
    @phalleak_01 Рік тому

    Thanks you very much for your simplifying explanation.

  • @GlynisDance
    @GlynisDance 2 роки тому +2

    You explain things so well! Great video - thank you. :)

  • @Bassman73
    @Bassman73 2 роки тому +1

    Hi, do you have any material covering Heikin-Ashi candles? thank you for the video.

  • @AlexRegnerr
    @AlexRegnerr 2 роки тому +1

    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?

  • @ProfitableRetailTrader
    @ProfitableRetailTrader Рік тому

    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

  • @alanhill5337
    @alanhill5337 2 місяці тому

    thank you. at about 8:17 ? what is the character just before the "tostring" command ?? (line 9)

  • @mrigankabhattacharyya757
    @mrigankabhattacharyya757 10 місяців тому

    Hi, i am a beginner. want to start learning the pine script please advise where to start ( from your playlist )

  • @yaaymaiko1629
    @yaaymaiko1629 Рік тому

    Thanks, from what I see array is like a list in python

  • @ManuelLopez-xl5co
    @ManuelLopez-xl5co 5 місяців тому

    How do you remove the previous label? Every time a new label is created, the previous label remains on the plot. Thanks!

  • @walduss7939
    @walduss7939 2 роки тому

    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

  • @kaizentrader8514
    @kaizentrader8514 2 роки тому +3

    Sir pls tell how to make script of candle of Open =High with different colour

  • @birkdalehome518
    @birkdalehome518 Рік тому

    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")

  • @G_Suyog
    @G_Suyog Рік тому

    Sir, Can we fill the two lines plotted by using array.push and how to fill that, please help.

  • @GauravSethiAr
    @GauravSethiAr 2 роки тому

    thanks

  • @TRADEEDUCATOR
    @TRADEEDUCATOR 2 роки тому

    I need help please help me.

  • @sandipsutariya7
    @sandipsutariya7 2 роки тому +1

    Hi
    Only 50 Ema cross pine code strategy
    Please help