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.
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.
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
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!
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)?
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
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?
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
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.
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