Hello, The logic for this has stumped me for over a week. Would greatly appreciate anyone's insights. I would like to create a indicator to plot a trendline based on the open/close of each candle instead of the low/high using TradeStation EasyLanguage. More specifically, let's say I'm using 3 minute time chart. -1- I'd like to input a value to use for the number of bars to use in the calculation. For example, If I use a value of "5", it will use the first 5 candles to plot my support/resistance trend lines. -2- I'd like to use the highest open of a candle out of the 5 candles for the resistance trendline --> (TL_high) -3- I'd like to use the lowest close of a candle out of the 5 candles for the support trendline --> (TL_low) -4- I'd like to plot a median trendline as well using the average of the resistance and support trendline --> (TL_high + TL_low)/2 -5- beginTime value input parameter (ex. 930 for 9:30am, 1400 for 2:00pm) -6- endTime will be based on input value of #1 in this list I'm a newbie to EasyLanguage and looking for someone to point me in the right direction. Thanks
If your just starting programming EasyLanguage you need a foundation this book of mine would be a big help. http://www.amazon.com/Using-EasyLan...1403649619&sr=8-1&keywords=using+easylanguage