Hi Matt, why did you use the "for" loop instead of ta.highest or ta.lowest function? Any particular reason? Thanks for the lesson, always following your courses.
A cool one I am thinking of as well as having a trailing stop loss, have a take profit, that stays a certain distance ahead of the smaller of the smaller moving average value, that can be triggered by freakishly large bars or a couple, then wait for a retracement back to the smaller average ,and buys back in. Thanks for your efforts.
Great Teaching. I am learning through your videos after my retirement from Non-IT background. Thanks a lot for your efforts. How can I add the location concept in the code. ( distance between the MA and the cross over price) and exit if the subsequent candle closes below the low of the cross candle in the case of buy and high of the cross candle in the case of short entry. Just give me an idea and I will try myself to code. Thanks again
Matt, I have 2 comments, I have had problem of repainting with de ta. cross in the past, so I dont use It. The second is, why didn t you use highest(high)?
Is there a way to check and enter a trade only if there is no wick to the candle of the cross and the following 10 candles if the condition is not met on the cross? For example when there is a buy cross only enter when there is no lower wick of the candle at the moment of the cross and if there is then check the next 10 candles for this to be valid and then enter the buy?
one more doubt. For example, i created two moving averages with selection criteria for time frame for each. How can i create a strategy for the crossover of MA in different time frames. Thanks
Hi, I would like to ask how I can code to know which is the lowest moving average. More specifically I would like to visualize each candle that hits the lowest moving average. Then, I would like to code that if in the last 20 candles the lowest moving average was hit and broke the rest of the moving averages to the upside, there is an entry on the next time it hit the 21 moving average. This is to give some context but I am just asking how to code to mark the touches with the lowest moving average. Thanks a lot in advance!
Can this conditional exit be transmitted to PineConnector? Just wondering if an auto-trader could be implemented with this exit strategy. And could you potentially create an input for the number of bars back to be adjusted? like i = 1 to (bar_length)??
Hi, I try to use your script with MA5 and MA13. But it makes a lot of sells between 2 buys. How can we modify this script to have only 1 buy and 1 sell at each action ? Thanks for your help
Thank you for this lesson. As usual, you are an excellent instructor and programmer. If I had your Pine Script knowledge, I would test strategies of the ICT type or the DR/iDR type with the FVG and OB indicators. Indicators are candy, while price action concepts are chess. Today I pasted your script in my TV chart and believe it will help me. Thanks again. Keep up the great work. Tom
Thank you so much for preparing such invaluable videos. I would be greatly appreciate if you guide us in developing pine script to determine divergence based on MACD or RSI indicators.
🚩 Source Code: courses.theartoftrading.com/pages/simple-moving-average-cross-strategy
🚩 My Socials & Free Weekly Newsletter: theartoftrading.com
🚩 FREE Pine Script Basics Course: courses.theartoftrading.com/courses/pine-script-basics-course
🚩 Pine Script Mastery Course: courses.theartoftrading.com/courses/pine-script-mastery
Thanks Matt, as always a great lesson. Appreciate your style of teaching!
Great video and code developing. Many thanks.
Hi Matt, why did you use the "for" loop instead of ta.highest or ta.lowest function? Any particular reason? Thanks for the lesson, always following your courses.
A cool one I am thinking of as well as having a trailing stop loss, have a take profit, that stays a certain distance ahead of the smaller of the smaller moving average value, that can be triggered by freakishly large bars or a couple, then wait for a retracement back to the smaller average ,and buys back in. Thanks for your efforts.
Really enjoy your posts! Thanks so much and greetings from the Netherlands 🙌
Another great lesson, TY!
Thanks Matt!👏
Thank you for your video.
Great Teaching. I am learning through your videos after my retirement from Non-IT background. Thanks a lot for your efforts. How can I add the location concept in the code. ( distance between the MA and the cross over price) and exit if the subsequent candle closes below the low of the cross candle in the case of buy and high of the cross candle in the case of short entry. Just give me an idea and I will try myself to code. Thanks again
Matt, I have 2 comments, I have had problem of repainting with de ta. cross in the past, so I dont use It. The second is, why didn t you use highest(high)?
Is there a way to check and enter a trade only if there is no wick to the candle of the cross and the following 10 candles if the condition is not met on the cross? For example when there is a buy cross only enter when there is no lower wick of the candle at the moment of the cross and if there is then check the next 10 candles for this to be valid and then enter the buy?
one more doubt. For example, i created two moving averages with selection criteria for time frame for each. How can i create a strategy for the crossover of MA in different time frames. Thanks
Enjoyed your video. Can Pinescripts be used to create custom scans?
Excellent, as always
Thank you. It helps a lot.
I really want to just highlight the candle and not have the line through the whole column. How can we just highlight the candle itself?
Hi, I would like to ask how I can code to know which is the lowest moving average. More specifically I would like to visualize each candle that hits the lowest moving average. Then, I would like to code that if in the last 20 candles the lowest moving average was hit and broke the rest of the moving averages to the upside, there is an entry on the next time it hit the 21 moving average. This is to give some context but I am just asking how to code to mark the touches with the lowest moving average. Thanks a lot in advance!
Marvelous Matt !!!
Can this conditional exit be transmitted to PineConnector? Just wondering if an auto-trader could be implemented with this exit strategy. And could you potentially create an input for the number of bars back to be adjusted? like i = 1 to (bar_length)??
can i ask, where did you learn to code pinescript?
Hi, I try to use your script with MA5 and MA13. But it makes a lot of sells between 2 buys. How can we modify this script to have only 1 buy and 1 sell at each action ? Thanks for your help
Thank you for this lesson. As usual, you are an excellent instructor and programmer. If I had your Pine Script knowledge, I would test strategies of the ICT type or the DR/iDR type with the FVG and OB indicators. Indicators are candy, while price action concepts are chess. Today I pasted your script in my TV chart and believe it will help me. Thanks again. Keep up the great work. Tom
Thank you so much for preparing such invaluable videos. I would be greatly appreciate if you guide us in developing pine script to determine divergence based on MACD or RSI indicators.
awesome
A strategy without the ATR means nothing to me.
😂
True af!!!
ATR is the real game changer.
@@amanchaure5584 Yes, it is!!
@@amanchaure5584 and you use it to put the stop 1 ATR below "a level"? or do you use it for something else?
How are you guys using it?