Need Help with ProRealTime Indicator Coding

lbz321

Newbie
Messages
6
Likes
0
Hi all,

I am a new forum member and also relatively new to the world of trading. My reason for this post today is that I am trying to find someone with some ProRealTime indicator coding experience. This is most likely an extremely basic question to ask however it would be of much use to me if someone knew how to help.

Basically, I have overlayed a ATR period (Close - 3xATR[14] period) on my price chart, therefore the indicator displays for all bars/candles on my chart. However, what I would like to do is only have the indicator displayed for either the current bar/candle or for (x) number of bars/candles previously. This is essentially so I just get one dot representing my stop loss level under the current bar so I can move the stop if necessary. However, there will not be dots under all the candles making my chart look messy.

The code is currently as follows:

mystop = Close - 3*(AverageTrueRange[14](close))
RETURN mystop

Any help would be much appreciated!(y)

Thanks,

Dave
 
Top