Please help. I tried to post this under programming but did not get any help. I'm not C# programmer. I'm trying to write simple logic for Stoch indicator to play sounds when it crosses from below to above 20 or from above to below 80 lines.
Long example:
If (CrossAbove(k, 20, 1)... then play alert. The problem is it plays the sound when k <= 20. I expect this to work differently - if %k equals or above 20, e.g. crosses the 20 line from below up then play sound... In perfect world I would like to play the sound only if %k is between 15 and 21, e.g. when %k>15 but %k<22 when long, and no sounds when %k < 15 or %k >22. But I do not know how to write this and having problems with simpler idea of playing sound only when %k crosses 20 from below up... Any ideas and help please? Maybe you have some examples? Ninja support does not open my eyes so to speak, not enough info... Is there any other way to make this work? Is there other method I can use to write this simple logic?
And another thing. I also try to put the marker on the chart at the same time when alert plays. But for some reason DrawArrowUp/Down stopped working. It worked then it stopped... Maybe there is some conflict in that logic I wrote...???
Thank you very much.
Comment