Playing sound few times and not endless

Created at 08 Oct 2019
SO

social.trading

Joined 06.10.2019

Status

Open


Budget

10.00 USD


Payment Method

Direct Payment

Job Description

Hello all,

what I acuatlly need is to play some sound 2-3 times when price reach certain indicator level. I'm trying a lot but not working.

Actually, I'm trying to modifiy already exisiting indicator: https://ctrader.com/algos/indicators/show/1741

Could any one please have a look into it.

I have some code below:

 if (isCrossBelow())
            {

                SellSeries[index] = MarketSeries.High[index];
                    if (IsLastBar)
                    {
                        ChartObjects.DrawText("text1", "SELL", StaticPosition.Center, Colors.White);
                        Notifications.PlaySound("C:....\action.mp3"); (How to play this only few times?)
                     }
                }

 

Thank you.

Comments
Log in to add a comment.
SA
sascha.dawe · 4 years ago

Contact sascha.coding@gmail.com for help with this.

SO
social.trading · 4 years ago

Any help from some expert here? I think it should be very simple.