Creating sound allert for the equality of Kijunsen and Span B in ichimoku indicator

Created at 05 Jul 2022, 14:57
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
SA

safaeianmohsen

Joined 14.04.2022

Creating sound allert for the equality of Kijunsen and Span B in ichimoku indicator
05 Jul 2022, 14:57


Hello . Can anyone guide me? I want to add a code to the Ichimoku indicator so that whenever the values of Kijunsen and Span B are equal to each other, Only on the chart that is open , a sound allert will be generated.

If possible, please send it here. 


@safaeianmohsen
Replies

firemyst
07 Jul 2022, 16:31

RE:

safaeianmohsen said:

Hello . Can anyone guide me? I want to add a code to the Ichimoku indicator so that whenever the values of Kijunsen and Span B are equal to each other, Only on the chart that is open , a sound allert will be generated.

If possible, please send it here. 

You would do something like this (pseudo code) in your indicator's calculate method:

 

if (Kijunsen.Result.Last(0) == SpanB.Result.Last(0))

{

    System.Media.SystemSounds.Exclamation.Play();

}


@firemyst