PkPriceAlert2 for NT7 - need help - NinjaTrader Programming | futures io social day trading
futures io futures trading


PkPriceAlert2 for NT7 - need help
Updated: Views / Replies:7,503 / 43
Created: by Todd Attachments:13

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
 13  
 
Thread Tools Search this Thread
 

PkPriceAlert2 for NT7 - need help

  #21 (permalink)
 R.I.P. 1960-2010 
 
Futures Experience: Advanced
Platform: NinjaTrader7
Broker/Data: Mirus RCG/Zen-Fire
Favorite Futures: CL & 6e, looking at ES, ZB and AU again.
 
ZTR's Avatar
 
Posts: 2,099 since Nov 2009
Thanks: 1,104 given, 1,390 received


Todd View Post
Z,

Pk2 is working fine for me right now.

I think a thread on alert codes would be great.

I've noticed that pk2 does not work in market replay, at all. Have you noticed that?

Todd

Have not noticed as I am usually practicing flow trading in replay. Not going to look at this until after beta 17 is out.

But the idea of an alert thread is just what is needed to take this to the next level of coding NT7 indicators. I hope Zondor would participate, maybe TheWizard also? His alerts are great, I'm using a modified version of one of his on an MACD of the GOMCD. Has three alerts with cool sounds. Ray guns just went off.

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Attached Thumbnails
PkPriceAlert2 for NT7 - need help-6e-06-10-1024-volume-6_7_2010_749.jpg   PkPriceAlert2 for NT7 - need help-alert.png  

Last edited by ZTR; June 7th, 2010 at 11:53 AM. Reason: Put in Quote & Used a PNG
Reply With Quote
 
  #22 (permalink)
Elite Member
Alpharetta, GA
 
Futures Experience: Intermediate
Platform: ninja
Broker/Data: Mirus / Zenfire
Favorite Futures: ES
 
Todd's Avatar
 
Posts: 257 since Jun 2009
Thanks: 28 given, 40 received

Anyone have an idea with the pk2 doesn't work in market replay in NT 7? I"m still using Beta 16 for now but I'm guessing that whatever is causing this problem in B16 also exists in B17.

Reply With Quote
 
  #23 (permalink)
 R.I.P. 1960-2010 
 
Futures Experience: Advanced
Platform: NinjaTrader7
Broker/Data: Mirus RCG/Zen-Fire
Favorite Futures: CL & 6e, looking at ES, ZB and AU again.
 
ZTR's Avatar
 
Posts: 2,099 since Nov 2009
Thanks: 1,104 given, 1,390 received


Todd,

The new talking indicators in the thread started by Zondor work in Replay with NT7Beta17.

The code in this tread can be adapted to many circumstances that can be described by conditional statements in indicators and strategies.

Just found a problem with this in Replay. If you run it at high speed (500X) the messages are queued up and take a while to clear. Did not cause a crash, but they continued for about 30 seconds after I paused Replay.

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Attached Thumbnails
PkPriceAlert2 for NT7 - need help-worksinreplay.png   PkPriceAlert2 for NT7 - need help-worksinreplay2.png  

Last edited by ZTR; June 19th, 2010 at 01:11 PM. Reason: Added Comment.
Reply With Quote
 
  #24 (permalink)
Member
Southwest US
 
Futures Experience: Intermediate
Platform: NinjaTrader, Trade Ideas
Broker/Data: IB, DTN IQ
 
Day Trading Fool's Avatar
 
Posts: 57 since Apr 2010
Thanks: 23 given, 92 received

Looks like this offers just the alert functionality NT needs.

Is there supposed to be audio when the alert triggers? I don't get the option to browse on the alert parameters, so I am not sure what exactly should be happening.

Thanks.

Reply With Quote
 
  #25 (permalink)
Member
Southwest US
 
Futures Experience: Intermediate
Platform: NinjaTrader, Trade Ideas
Broker/Data: IB, DTN IQ
 
Day Trading Fool's Avatar
 
Posts: 57 since Apr 2010
Thanks: 23 given, 92 received

Never mind - got it figured out.

Great job on this! Hard to believe that NT doesn't have something like this built in.

BTW - I would be interested in hearing the 'original' sound files if someone has them.

Reply With Quote
 
  #26 (permalink)
 R.I.P. 1960-2010 
 
Futures Experience: Advanced
Platform: NinjaTrader7
Broker/Data: Mirus RCG/Zen-Fire
Favorite Futures: CL & 6e, looking at ES, ZB and AU again.
 
ZTR's Avatar
 
Posts: 2,099 since Nov 2009
Thanks: 1,104 given, 1,390 received

There are 4 possible alerts:
  1. Print goes to output window.
  2. Alert goes to alert window
  3. Alert also plays soundFileF (can be a soundless.wav for no alert sound)
  4. Say speaks.
See Let's Teach NT to Talk.

 
Code
                            
//Price falling below the manually drawn Trend Line  
   
if((Close[0]-currentY<0&&lastprice-currentY>=0))
 
   { 
Alert("Alert"Priority.HighInstrumentName+": $"+Close[0]+", Falling Below Trendline "+LineNamesoundFileF1Color.RedColor.Yellow);
    Print(
"TrendLineCustom "+  InstrumentName+": $"+Close[0]+", Falling Below  "+LineName); 
    if(!
under)Say ("crossing BELOW "+LineName);
    
under=true;
   } 

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Attached Files
Register to download File Type: cs TrendLineAlertCustom.cs (10.9 KB, 40 views)

Last edited by ZTR; June 21st, 2010 at 01:33 PM. Reason: Addded .cs & Link so folks can use as template for their indys.
Reply With Quote
 
  #27 (permalink)
Member
Southwest US
 
Futures Experience: Intermediate
Platform: NinjaTrader, Trade Ideas
Broker/Data: IB, DTN IQ
 
Day Trading Fool's Avatar
 
Posts: 57 since Apr 2010
Thanks: 23 given, 92 received

Still messing around with this - does the alert not trigger if the chart/instrument are not active?

E.g., I am using an MA to track several instruments and I have been placing horizontal lines at trigger points. It seems like the alert is not triggering unless the instrument is displayed on the chart when the price crosses the line. Is this correct?

Reply With Quote
 
  #28 (permalink)
Member
Southwest US
 
Futures Experience: Intermediate
Platform: NinjaTrader, Trade Ideas
Broker/Data: IB, DTN IQ
 
Day Trading Fool's Avatar
 
Posts: 57 since Apr 2010
Thanks: 23 given, 92 received

Looks like that is the case... bummer.

I suppose there isn't a way to remedy this is there?

Reply With Quote
 
  #29 (permalink)
 R.I.P. 1960-2010 
 
Futures Experience: Advanced
Platform: NinjaTrader7
Broker/Data: Mirus RCG/Zen-Fire
Favorite Futures: CL & 6e, looking at ES, ZB and AU again.
 
ZTR's Avatar
 
Posts: 2,099 since Nov 2009
Thanks: 1,104 given, 1,390 received

Believe you must have the instrument on the chart, for there to be detection of the price crossing the indicator. But look at the MA cross in Let's Teach Ninja trader to talk thread. That looks at the MA fast/slow cross for the signal.

 
Code
                            
  if (!over && CrossAbove(fEMAsEMA1))

            {
                
Say("For the  " +Instrument.FullName+"  Contract, the "+_fast " Period E M A,   just Crossed Over the " _slow " period E M A" );
                Print(
"MACross "+  InstrumentName+": $"+Close[0]+", Rising Above MA ");
                
                
over=true// only say it once per bar 

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Reply With Quote
 
  #30 (permalink)
Member
Southwest US
 
Futures Experience: Intermediate
Platform: NinjaTrader, Trade Ideas
Broker/Data: IB, DTN IQ
 
Day Trading Fool's Avatar
 
Posts: 57 since Apr 2010
Thanks: 23 given, 92 received


Is that limited to the displayed instruments as well?

Reply With Quote

Reply



futures io > > > > > PkPriceAlert2 for NT7 - need help

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with PKPriceAlert2 indicator Todd NinjaTrader Programming 21 February 26th, 2010 05:04 PM


All times are GMT -4. The time now is 07:46 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-11 in 0.13 seconds with 20 queries on phoenix via your IP 54.226.132.197