• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

what does this error mean?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    what does this error mean?


    and how do I fix it?
    here is the alert code..,
    Code:
     private void Account_ExecutionUpdate(object sender, ExecutionEventArgs e)
            {
    
    
                Print(String.Format("Execution triggered for Order {0}", e.ToString()));
    			 NinjaTrader.Core.Globals.SendMail( "[email protected]", "[email protected]", "trade ", e.ToString(),null) ;
    			NinjaTrader.NinjaScript.Alert.AlertCallback(e.Execution.Instrument, this, DateTime.Now.ToString(), NinjaTrader.Core.Globals.Now, Priority.High, e.ToString(), [email protected]"\sounds\Alert1.wav", new SolidColorBrush(Colors.Blue), new SolidColorBrush(Colors.White), 0);
    			//PostMessage(e.ToString(),true,e.Execution.Instrument);
                 
            }

    #2
    Hello junkone,

    I believe the simple solution for this would be to use a brush, or the following:

    Code:
    NinjaTrader.NinjaScript.Alert.AlertCallback(e.Execution.Instrument, this, DateTime.Now.ToString(), NinjaTrader.Core.Globals.Now, Priority.High, e.ToString(), NinjaTrader.Core.Globals.InstallDir+...nds\Alert1.wav", Brushes.Blue, Brushes.White, 0);
    If you are creating a totally new brush, I would suggest to review the items on this page about working with Brushes: http://ninjatrader.com/support/helpG...lightsub=brush

    Using the Standard colors like White or Blue you should be able to use the pre-defined system brushes, if you are creating a new brush you could use the SolidColorBrush example in the help guide.

    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by chazyang, Today, 08:11 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by Erwin Beckers, 11-04-2018, 02:39 AM
    6 responses
    78 views
    2 likes
    Last Post koganam
    by koganam
     
    Started by sergey_z, Today, 02:34 AM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by frankduc, Today, 05:24 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by shmarola, Today, 01:01 AM
    0 responses
    4 views
    0 likes
    Last Post shmarola  
    Working...
    X