I use a commercial product called Total Alert which displays a window box on the chart where an alert is triggered.
I want to reproduce said behavior when a specific condition occurs. By using the following method:
MessageBox.Show(DateTime.Now.ToString() + "EMA cross" + Time[0] + "," + Close[0] + "," + Instrument.FullName , "Alert" , MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
I get the popup window. However, said window shows up on the chart which is currently active (owner of the message box is by default the currently active window).
In the Internet, I´ve seen that the "parent windows" should be somehow referenced within said MessageBox instruction but I don´t know how.
source : https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx
Comment