Forum

Problem with custom indicator

I am a real new programmer here and i have a custom indicator called Welch Bollinger Band (attached) i am trying to add it to a basic EA but am having no luck. On a website it was said i could use this code for the EA but just cant seem to get it to work. I have attached a very basic EA i am trying

Some help on code

Hi i have some code that buys at either the close plus X pips or the high or low plus a certain amount of pips. What i want it to do is if current price goes above the previous bars high place a limit order at a certain amount of pips below the high or maybe at a moving average for example. This is