If you need to add a price alert from the chart, the most efficient way is to do it with a script like this.
Name the chart window where you usually click the price. In this case, it is called MY1MIN and name the montage window MONTAGE1
$MY1MINWINDOW=getwindowobj("MY1MIN");
$MYSYMB=$MY1MINWINDOW.SYMBOL;
FOCUSWINDOW MONTAGE1;
$MYALERT=NewAlertObj();
$MYALERT.name="Price Reached";
if(PRICE<LAST)
{
$MYALERT.AddItem("Last Sale","<",PRICE);
}
else
{
$MYALERT.AddItem("Last Sale",">",PRICE);
}
$MYALERT.Speak=1;
$MYALERT.SYMB=$MYSYMB;
$MYALERT.PlaySound=0;
$MYALERT.Autodelete=1;
$MYALERT.Loop=0;
$MYALERT.save();
You can tune the needs for autodelete or speak by changing the 1 to 0 as needed. It will create an alert like this.
Just click to the chart and press the hotkey/hot button.
It automatically detects if the price you clicked is above or below the current price and will create a corresponding alert.
The alert will delete itself once triggered, so no need to do cleanup. For more visibility, keep your Alert & Trigger window opened.
Hi Peter, great stuff. Is there a way to include the symbol in the name of the price alert? I'd like the system to speak the symbol as I trade multiple stocks at the same time. TIA Hank