Need help creating study that will plot high and low of FIRST Day of Month on chart
Im trying to write a study that will plot the high and low of the 1st trading day of each month. Ive been playing around a bit and thought using SetRst was the correct route to go so I tried converting an Opening Range indicator I use. So far I have this for the high plot ....
A:=time+ (time=0 AND time[-1]=1);
......It starts plotting on the 1st trading day and continues for about 6 more trading days but then it just stops plotting. I really dont know the "A" variable from my Opening Range indicator is doing therefore im not sure if i should be using it as is from the original study. Also, if someone has a different approach im open to all suggestions. Any help would be appreciated.