- Topics: 5
- Replies: 310
- Posts: 315
One additional note, if you have access to the current v1.5 beta, there is a new script function available called NEARESTALERT() which maybe of use to achieve the result you are after.
If your buy price is setup in your Alerts you can now make reference to it in scripting.
Here is an example using the Chart Element tool:
You can see the Close is 1.31% away from the Alert line. The script used for this was:
P1 = CLOSE() ;
P2 = NEARESTALERT(TYPE=Lower);
For more information on this feature please refer to the following article: https://help.optuma.com/kb/faq.php?id=1104