MessageBox PopUp- Alert - NinjaTrader Programming | futures io social day trading
futures io futures trading


MessageBox PopUp- Alert
Updated: Views / Replies:4,572 / 5
Created: by max-td Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

MessageBox PopUp- Alert

  #1 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

MessageBox PopUp- Alert

Here is the trick with using the Windows PopUp MessageBox as an alert i talked about with perry.

this win-popup-window comes as a "always on top-popup" in the middle of your sreen if your signal is valid + you have to klick it away / klick OK to proceed with your trading-stuff. But it does not freeze or stop NT working somehow - no problems with this.
it can be very good to catch your attention but can also be annoying, depending on how fast your charts + signals are.

its a while back i used it - so i dont rember all details - but this if (!Historical) is important as far as i know.

it can be used in all kind of indicators / conditions but it should be used with a kind of cross-over conditions or something like this that is valid only in 1 or 2 Bars --
otherwise (iE if you code something like : if (EMA10 > EMA 50) ) you get a popup every single bar this condition is true !

 
Code
                            
        if   (  your condition  )

        
        { 

                    
if (!
Historical
MessageBox.Show("#########  NQ  NQ NQ   #########!   DOT Alert !!   
#########\n!   Ready to Enter the Market !  ******#########!"
);   

    
        } 
The red stuff comes up as text in the box.

Idea :
Maybe there is also remove-comand working / available for this, like for the other drawobjects - but i dont know.

Have Fun with it !

BTW - as said yet : this is NOT an offical NT-function - so its not supported from the NT-forum- guys - whatever this means ....


max-td
Reply With Quote
The following 5 users say Thank You to max-td for this post:
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 786 received


You might need to add using System.Windows.Forms to that... but check it first.

Reply With Quote
The following 3 users say Thank You to MXASJ for this post:
 
  #4 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

Hey MX,
you are right , thanks a bunch for remembering that !

so folks, to make the popup work please add this :
using System.Windows.Forms;

to the very first section in the indicator-codes -
example here :

 
Code
                            
 #region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;

using System.Windows.Forms;
#endregion 
max
-

max-td
Reply With Quote
 
  #5 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received

Great thread, quite helpful for people who want to create a message pop-up.


max-td View Post
Hey MX,
you are right , thanks a bunch for remembering that !

so folks, to make the popup work please add this :
using System.Windows.Forms;

to the very first section in the indicator-codes -
example here :

 
Code
                            
 #region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
 
using System.Windows.Forms;
#endregion 
max
-

Indeed. Here's how I implemented it some time ago (just as an example for other people, I don't want to show off my non-existing programming skills. )

 
Code

// Showing the popup (if on)
if( popup == true && !Historical)
{
System.Windows.Forms.MessageBox.Show(DateTime.Now.ToString() + "\n\nThe MACD just crossed above it's average above \nthe " + bullishZone + " level,"
+ "in instrument " + Instrument.FullName + ".", Instrument.FullName + " MACD Alert!");
}
Regards,

Reply With Quote
The following 3 users say Thank You to Jura for this post:
 
  #6 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 786 received

More usage details here:

MessageBox.Show Method (System.Windows.Forms)

I've just added this to an indicator I'm working on:

 
Code
                            
MessageBox.Show("Hedge Instrument field is blank or the same as the Quoted instrument. This will create Overflow errors.""Warning!"MessageBoxButtons.OKMessageBoxIcon.Exclamation ); 

Probably not something you want to use all the time but useful in some situations.

Reply With Quote
The following 4 users say Thank You to MXASJ for this post:

Reply



futures io > > > > > MessageBox PopUp- Alert

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Volume alert indicator gain247 The Elite Circle 160 September 11th, 2015 07:46 PM
EMA with Price Alert jsengxx NinjaTrader Programming 9 October 11th, 2013 09:07 AM
MT4 Always On-Top Popup question Overview MetaQuotes MetaTrader MQL Programming 4 March 5th, 2013 03:11 AM
Supertrend alert vesion neilzep NinjaTrader 2 May 5th, 2011 11:04 AM
Alert coding request jtrade The Elite Circle 2 October 6th, 2010 11:47 AM


All times are GMT -4. The time now is 03:28 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-18 in 0.12 seconds with 20 queries on phoenix via your IP 54.163.209.109