Returning Text In If Statement

Hii,

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.

Regards,
Deepak

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)

Hi Deepak

You can’t in the script but you can in the Watchlist column - have a look at this page. https://help.optuma.com/kb/faq.php?id=967

All the best

Mathew