I'm new at programming and AFL. Have studied tutorials. Managed to write a custom indicator and it plots correctly, (big first step). I can't get the syntax to use it as a buy signal. I have set up all the conditions and parameters of the signal in the code, but I can't figure out what syntax I need for the buy. This is a 1st grade question but I can't find the answer in the help menu. This is a RSI type signal. When todays close is 20 or more points above yesterdays close I want to buy. I tried a hundred things, this is my last effort. Thanks for any help.
Thank you for the heads up. I got that taken care of. Do you know if I need to repost to get the badge to show up on the post. I don't see it on the post above.
Thank you TrendSurfer. I had tried Ref() in my many efforts. I didn't get it to work. Got it now. This is harder than chemistry in college. Thanks again
Thank you all for your help and input. Great community. With folks like you that freely give your time, newbie's like me have a chance to climb the AFL mountain.