I just programmed this alert indicator for my own system and I thought I would share it.
Install
Go to File-> Utilities-> Import NinjaScript and select the attached file.
Parameters:
TrendLineTag: trigger
AlertSound: CompiledSuccessfully.wav
Description:
When price crosses one trend line (a line, extended line, or ray), trigger an alert with the alertsound. Then, it is disabled until you move, change, or delete the trend line. If you delete the trend line, it will wait until another trend line with the same tag is created and then it will use that.
If the trend line is below the bid price, it will trigger when the bid price is <= the trend line. If the trend line is above the bid price, it will trigger when the bid price is >= the trend line.
Let me know if it works, I just tested it shortly with all 3 trend line types and directions.
Comment