Gann Monthly swing up True

Hi
I am trying to write a scrip that tells me when the Monthly Gann Swing Chart turns up with a true or false sign in the column of my watch list, I have written this,
GANNSWING (METHOD=Use Next Bar,DEFAULT = Swing Start), when I apply it it gives me a # in the column, which is correct, but what I am after is true or false signal, I shall keep at it, but does anyone have any Ideas
Cheers
Les

gannswing(month())turnsup

the above is the formulae for identifying when the monthly swing turns up

Thanks Tim for your reply, I did try this script, but It doesn’t seem to work on all occasions, Sometimes if I change the properties from Use outside bar to use next bar,( which I believe is the correct setting for Gann Swing Charts) the swing turs from up to down,
Cheers
Les

Unfortunatley it only registers change at the beginning of a new month, so if a swing is down and then mid month turns up, optuma does not actually see that occuring until a new month starts.