Hello to all,
I have been using marketscope for a while and i would like to know if you could help me in converting an old indicator of mine into .lua coding for marketscope. In Pro Real Time I had created it as such:
High Peak = ((highest[Y](High))*X - (lowest[Y](Low))*X)+lowest[Y](low)
Low Peak = highest[Y](high)- ((highest[Y](High))*X-(lowest[Y](Low))*X)
Basically i created the two bands (overlayed on the price chart) to show me different highs/lows from Y periods back, reduced by a certain number (X) which goes from 0 to 1 in incremental steps of 0.001. For example, I liked to use 14 as Y and 0.7071 as X but would prefer to be able to choose which values to insert.
Can this be created for Marketscope?
Thank you.
Justin