Support Board
Date/Time: Mon, 03 Nov 2025 03:57:52 +0000
Post From: PlaySound Issue
| [2015-10-18 08:04:33] |
| KhaosTrader - Posts: 128 |
|
Hi, I have implemented the "Playsound function" in my study. It makes a sound every time there is a setup. Because I load several days worth of data, the alert sounds queue up and are played when the chart is loaded. I would like only the alert to play if it occurs in the last 2 bars drawn on the chart. How do I determine this? Is there a LastBarOnChart Number or something I can reference? Then I can see if the sc.Index is within a few bars of the last bar charted on the chart. In Easylangauge they have a "isLasBarOnChart" value, so I can do things like that. Not sure how to approach this problem here.. Any help would be appreciated, thanks. |
