Is it possible to return a text in if statement in optuma. For example lets say i have a buy signal which is whenever close crosses above 52 week high i should buy. So is it possible to return “BUY” in the watch list with help of scripting.
The reason i have put this here is lets say i have following three strategies
Buy a 52 week High
Buy a 10 Day High
Buy a 20 day high
so i will be able to get all the results in one single column as follows.
if (close() crossesabove highesthigh(52 weeks),"Buy 52 week High", False)
or
if (close() crossesabove highesthigh(10 Days High),"Buy 10 Day High", False)
or
if (close() crossesabove highesthigh(20 days high),"Buy 20 day High", False)