Hello Optuma help,
I have been trying to use the Optuma SCRIPT() function to use previously saved script, but it doesn’t seem to work as expected, I have read your SCRIPT() overview and followed your Optuma AI assistant instructions without success.
The problem is when in Script Manager, I LC on SCRIPT() & navigate to and LC on a chosen pre-saved script the following happens -
-the (SCRIPTNAME=New High Scan) goes blue, then when I LC anywhere on the script or in that box I loose the entered script and it reverts back to just SCRIPT().
I would like some help with how to get this working please.
Thanks for your help,
Brad
Hi,
I think the issue is the use of High in the name, which is also a function, maybe causing an issue in the parser. Try saving the script without spaces “NewHighScan” and see if that works.
Hi Matthew,
Thank you for your reply.
I created a new script called “NewHighScan” using the copied & pasted code as follows -
Unfortunately it gives the same symptom, as with any other previously saved script I have tried, but the other scripts I have tried have also had spaces in their names.
Regards,
Brad
Hi,
Try a totally different name like Test123. If the same issue happens, i need to know what the underlying script is you are trying to reference.
Hi Matthew,
Still the same problem.
Below is the code exactly as is in the script -
// New High
//Use the HighestHigh function for new highs over a specified lookback period, eg 12 weeks, 52 weeks.
HIGH()>HIGHESTHIGH(BACKTYPE=Weeks, BARS=52)
//New 6 month closing high;
//CLOSE()>HIGHESTHIGH(CLOSE(), BACKTYPE=Months, BARS=6)
//New 12 week volume high;
//VOL()>HIGHESTHIGH(VOL(), BACKTYPE=Weeks, BARS=12)
I think this is a default Optuma script.
But it doesn’t matter what saved script script I try, all give the same result.
Brad
Hi,
I setup that script and it worked ok here. My guess is there is another named script saved somewhere which is breaking the selection list.
If you can email [email protected] a copy of your scripts.xml file i can test it further. You should be able to find it in Documents > Optuma > Local > Scripts.