need help for email alert on a target and stopLoss - NinjaTrader Programming | futures io social day trading
futures io futures trading


need help for email alert on a target and stopLoss
Updated: Views / Replies:747 / 4
Created: by Jacka777 Attachments:1

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 donít 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
 

need help for email alert on a target and stopLoss

  #1 (permalink)
The way of Seal by Mark D
Utica NY
 
Futures Experience: Intermediate
Platform: NT7, CQG
Favorite Futures: ES/ CL
 
Posts: 56 since Jan 2013
Thanks: 9 given, 53 received

need help for email alert on a target and stopLoss

Hi Everyone,
how do i add a email alert to a my target and my stop loss when its triggered. i did the entery long and i get the email alert for that, but dont know how to do the other 2. \this is what i have so far. thanks all
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #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)
Trading for Fun
College Point, NY (Queens)
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: YM
 
Posts: 63 since Nov 2009
Thanks: 5 given, 20 received


I think you need to use the OnExecution NT function to access the executions you'll get from fireing the target and/or stop loss functions. You will probably need to set the signal name in the target and stop loss orders so that you can determine in OnExecution which execution it has gotten. You would then put your email alert code in the OnExecution function at the point where you determine which execution you've gotten.

Here is some sample code of mine (the NT manual talks about this also:

private void StopLossSet( IOrder iOrder )
{
...
iExitOrder = ExitLongStop( 0, true, DefaultQuantity, exitPrice, "LongStop", "LongEntry" );
...
}


protected override void OnExecution( IExecution iexecution )
{
...
if ( string.Compare( iexecution.Name, "LongStop" ) == 0 )
{
// do something like send alert.
}
...
}


Last edited by kandlekid; March 10th, 2013 at 02:46 PM.
Reply With Quote
 
  #4 (permalink)
The way of Seal by Mark D
Utica NY
 
Futures Experience: Intermediate
Platform: NT7, CQG
Favorite Futures: ES/ CL
 
Posts: 56 since Jan 2013
Thanks: 9 given, 53 received

hey Kndlekid

I did what you said but i keep getting errors message. is this the ony way? and the private is for the variable yes? and the other goes under the onbarstartup too?
Thanks

Reply With Quote
 
  #5 (permalink)
Trading for Fun
College Point, NY (Queens)
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: YM
 
Posts: 63 since Nov 2009
Thanks: 5 given, 20 received

For stop loss orders, I'm fairly certain that you need to call your code from the OnExecution function (really anytime you want to do something on a fill). The reason being that fills are somewhat asynchronous. I'm not as sure about the target, but I believe so also, because it requires something being done on a fill.

The private function was just my wrapper around the ExitLongStop function. It would be good for you to consult the NT manual pages, especially the OnExecution, EnterLongStop, EnterShortStop, etc pages.

Reply With Quote
The following user says Thank You to kandlekid for this post:

Reply



futures io > > > > > need help for email alert on a target and stopLoss

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
stoploss to breakeven to trailing stephenszpak NinjaTrader Programming 13 October 13th, 2014 04:30 PM
Entry, Stoploss, Profit target baruchs Emini Index Futures Trading 15 March 3rd, 2013 10:44 AM
Help on strategy stoploss mea109 NinjaTrader Programming 6 May 2nd, 2012 07:41 PM
Stochastics indicator that sends email alert incoz NinjaTrader 1 February 28th, 2012 07:57 PM
StopLoss as fraction of ATR FArias NinjaTrader Programming 5 February 23rd, 2011 03:45 PM


All times are GMT -4. The time now is 10:54 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-13 in 0.10 seconds with 20 queries on phoenix via your IP 54.227.51.103