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 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.
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?
@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
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?
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?
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?
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..
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.
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.
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
*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
For someone who is an absolute novice at pinescript coding, this explanation of arrays really helped. Thank you!
You are one the best teacher I have ever saw💗
Respect 💯 sir 🙏
Legend. This helped fix issues i had with my indicator and gave me a better understanding of how arrays work. Thanks
You are the best teacher, thanks you very much :D
look who is back
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.
Is this better because you didn't need to learn mql?
What brokerage are you using?
Thanks
@@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.
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?
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
Yes please! I'm interested.
@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
As always love your videos
Is there a vide that goes through getting data from a indicator on a higher timeframe when coding a strategy?
Mateusz, pozdrowienia z Polski! :)
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?
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?
Hey Matt, can you please explain how to use the comment_profit and comment_loss arguments in the strategy.exit()
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?
I am trading in 4hr chart and want to keep stop loss according to 1min candles open close, please explain it if possible.
Regards
so was the issue the gaps in PA ?
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?
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..
Hello bro how can I contact you please just for a script help
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.
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.
Usable, not but not great for backtesting.
Beside the technical pine script code practice with lower time frames, what is the logic to divide ATR with price?
No idea to be honest! The student never mentioned that lol
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.
💥QUESTION: How do I hide the settings on the indicator, I don't want people to change settings on the indicator
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
@@TradingSimplified406 do you maybe know how to fill a line,like support and resistance, only highlight the line ,looks like its glowing
@@TradingSimplified406 do you have discord
4:12 8:09 secutity_lower_tf
Please place a pin on your comment so it will be always the 1st
*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
any solution for the lower tf reverse yet?