Tanman, After looking at a few tickers, your code it working nicely. There were just a few that did not track properly. Disregard the previous post. It looks great. Thanks.by davetrader - Trading Discussion
Tanman, It looks good with one exception. The highs that are plotted are the next days candle not the actual earnings date candle. Looking at your script, you have before and after earnings plotted. I don't know if that is required to make the code work but if it could be omitted that would be great. The before and after has absolutely no bearing in my world of trading. I am just interestby davetrader - Trading Discussion
Tanman, Thank you for all of your help. Who would have ever thought it would be so difficult to plot some straight lines? Trust me, I have been chasing this white whale for some time now. You have been the closest to crack it so far. The code looks great. Thanks again for all the time and effort you have put into this. I appreciate it.by davetrader - Trading Discussion
Tanman, As I started using the script you wrote I noticed there are breaks in the lines. Upon further investigation I went change line thickness on just one of the lines (EH) and noticed every quarter the line shifts instead of a solid line for 252 days. I also notice on the bottom of the chart there is a solid line just over the earnings symbols. This is causing my chart to really condense.by davetrader - Trading Discussion
Tanman, Thanks a million. I have been banging my head around now for weeks trying to figure something out. Fantastic job!!! Thanks!!by davetrader - Trading Discussion
Tanman, Thank you for assistance. It is tricky to code this. Looking at the chart you would think it would be pretty easy but unfortunately that is not the case. Worst case I just continue to manually input my price lines for each stock. It is only time consuming when starting from scratch on new stocks but once I have then in place they stay there until I delete them. Again, I appreciateby davetrader - Trading Discussion
Tanman, I figured out how to attach an image. As you can see from the image that my lines start at the earnings date high and extend for 1 year which gives pretty good support and resistance. I sometimes extend a line for an additional few months if current price is soaring or tanking and exceed current lines. If you or anyone else can help me come up with a script to automatically plot theby davetrader - Trading Discussion
Tanman, Thanks for the script. It is kinda of what I am trying to do. What I have been doing is going back 2 years worth of earnings and drawing a price line from the high of the earnings day and extending it for one year. So my charts have several lines from each earnings day high which in turn become support and resistance lines. After a year for example, the 1st quarter of 2015's line wby davetrader - Trading Discussion
Is there a way to script a horizontal line on the high of the earnings day that will last for at least 1 year? I manually draw this line and use it as support and resistance. It works great for me but it is a pain in the butt at times. Thanks.by davetrader - Trading Discussion