Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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(), NinjaTrader.Core.Globals.InstallDir+@"\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(), [email]NinjaTrader.Core.Globals.InstallDir+@"\sounds\Alert1.wav[/email]",[B] Brushes.Blue, Brushes.White[/B], 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 BarzTrading, Today, 07:25 AM
    2 responses
    25 views
    1 like
    Last Post BarzTrading  
    Started by devatechnologies, 04-14-2024, 02:58 PM
    3 responses
    20 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by tkaboris, Today, 08:01 AM
    0 responses
    4 views
    0 likes
    Last Post tkaboris  
    Started by EB Worx, 04-04-2023, 02:34 AM
    7 responses
    163 views
    0 likes
    Last Post VFI26
    by VFI26
     
    Started by Mizzouman1, Today, 07:35 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X