How to Reference Lower Timeframes in PINE SCRIPT

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

КОМЕНТАРІ • 38

  • @zbgb4339
    @zbgb4339 Рік тому +3

    For someone who is an absolute novice at pinescript coding, this explanation of arrays really helped. Thank you!

  • @shivammandrai7773
    @shivammandrai7773 Рік тому +2

    You are one the best teacher I have ever saw💗
    Respect 💯 sir 🙏

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

    Legend. This helped fix issues i had with my indicator and gave me a better understanding of how arrays work. Thanks

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

    You are the best teacher, thanks you very much :D

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

    look who is back

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

    Thanks. Great code to learn from. I’m very interested in automated trades (forex) and have started with pineconnector. Looking forward to more use cases for this connector. Also risk management and controlling leverage.

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

      Is this better because you didn't need to learn mql?
      What brokerage are you using?
      Thanks

    • @larsandersen5505
      @larsandersen5505 Рік тому +1

      @@joshuaboyell779 TradingView and pine script are very effective and program language is easy and elegant. The drawback is the license to pineconnector. If you want to trade the same asset with 10 different strategies you need 10 licenses and that’s expensive. I’m using MT4 and Oanda as broker.
      The solution could be to learn mql but it is time consuming to start all over again with a new language.

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

    Hello, i love your videos i'm learning so much from you! I would like to ask a question i'm traying to create a detector for candles that are the same height, is it possible to do that?

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

    Hey guys I’ve got his course this guy is an absolute genius if you want it let me know I’m will to share mine it really changed my life

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

    @TheArtOfTrading Off the top of my head (I have not tested this theory), a possible reason that the script is not working on the Monthly but works on the 4 Week is because all months do NOT have 4 weeks; Some have 5 weeks. You would need to solve for this, but I suspect it has something more to do with the pinescript built in function

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

    As always love your videos

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

    Is there a vide that goes through getting data from a indicator on a higher timeframe when coding a strategy?

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

    Mateusz, pozdrowienia z Polski! :)

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

    good video, maybe you can answer this question. I am attempting an indicator that will user request.security_lowertf() and as example that timeframe would be 1 minute, the script would want the first minutes open/close while viewing the 5min chart. i have a session set to start at 09:30, thus when i detect the session has started i get the close value for example, however it seems to grab the close of the second 1min element within the security array returned. any ideas?

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

    How can one overcome study error "The chart's timeframe must be greater or equal to the "D" timeframe used in request.security_timeframe_lower" when you swich to low timeframes using the code?

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

    Hey Matt, can you please explain how to use the comment_profit and comment_loss arguments in the strategy.exit()

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

    Hey bro how’s it going. If we back test a trading script that shows profitable over the long period, is there a chance that once you get it to a point where you’re running it with a decent amount of money the market will be manipulated to make it fail ? Or have you been running your bots fine for years?

  • @rajupun-cz1bz
    @rajupun-cz1bz 2 роки тому

    I am trading in 4hr chart and want to keep stop loss according to 1min candles open close, please explain it if possible.
    Regards

  • @Skript.V7
    @Skript.V7 2 місяці тому

    so was the issue the gaps in PA ?

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

    Can you design a stock strategy that gives no more than 7 trades a day with a high win % rate and high profit factor? .....or is that too dificult?

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

    Hi Dear,could you please help me out of this..I just want 15 min opening range plot extend right...
    here it is:
    inputMax = input(15, title= "ORB total time (minutes)")
    sess = input("0915-0930", type=input.session, title="Session Time")
    t = time(timeframe.period, sess + ":1234567")
    hide = timeframe.isintraday and timeframe.multiplier orb_high and in_session
    orb_high := high
    if low < orb_low and in_session
    orb_low := low
    plot(hide ? orb_high : na , style=plot.style_line, color=orb_high[1] != orb_high ? na : #0096ff, title="ORB High", linewidth=0)
    plot(hide ? orb_low : na , style=plot.style_line, color=orb_low[1] != orb_low ? na : #0096ff, title="ORB Low", linewidth=0)
    U=plot(hide ? orb_high : na , style=plot.style_line, color=orb_high[1] != orb_high ? na : #0096ff, title="ORB High", linewidth=0)
    V=plot(hide ? orb_low : na , style=plot.style_line, color=orb_low[1] != orb_low ? na : #0096ff, title="ORB Low", linewidth=0)
    fill(U,V,color=color.new(color.blue,80))
    thanks in advanced..

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

    Hello bro how can I contact you please just for a script help

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

    Well it duplicated two entries for some reason. 5.31 and 5.17. Index #'s 3 and 4 of the array got copied into #'s 5 and 6 before it continued.

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

    Is it a good idea to use Heikin-Ashi candle for strategy script? My script shows way better (3X) result if I use Heikin-Ashi candle than regular candle. I know Heikin-Ashi candles are calculated differently some price point may not be reflecting. But still trying to figure out if it (Heikin-Ashi) is usable at all in strategy scripts.

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

    Beside the technical pine script code practice with lower time frames, what is the logic to divide ATR with price?

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

      No idea to be honest! The student never mentioned that lol

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

      If you are a day trader and price went, for example, 40% of ATR, taking a trade with risk reward 3:1 would not be in trader's favor statistically, because then you expect price to go 120% of ATR by the end of the day. Day trader must take into account the remaining potential of the move. That's my recall from what I heard from a professional day trader.

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

    💥QUESTION: How do I hide the settings on the indicator, I don't want people to change settings on the indicator

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

      Remove the input from your code. As a simple example the code for a EMA lets people set the length by using a variable called len.
      len = input.int(50, minval=1, title="Length")
      If you allways want to use 50 as length and want to remove the ability to change it you can simply hardcode it to:
      len = 50

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

      @@TradingSimplified406 do you maybe know how to fill a line,like support and resistance, only highlight the line ,looks like its glowing

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

      @@TradingSimplified406 do you have discord

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

    4:12 8:09 secutity_lower_tf

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

    Please place a pin on your comment so it will be always the 1st

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

    *JOIN MY MAILING LIST TO BE NOTIFIED OF NEW VIDEOS:* theartoftrading.com/
    *LESSON SOURCE CODE:* courses.theartoftrading.com/pages/referencing-lower-timeframes-in-pine-script
    *HOW TO USE TABLES:* ua-cam.com/video/B7uXJTFc_Hs/v-deo.html
    *MAKE A BACKTESTER DISPLAY USING TABLES:* ua-cam.com/video/EYg50SX43JQ/v-deo.html

    • @aiLoveE
      @aiLoveE 5 днів тому +1

      any solution for the lower tf reverse yet?