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,514 / 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

  #11 (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

hi roonius,
thanks for the info!

will this .cs-file still work also in NT 6.5 ?

how do you handle the different versions now personaly ?
you have some experience i think.

will it make sense to insert _NT7 in the translated indi-file-names ?

i dont work on NT7 yet but i wonder how to keep all this organized on the own PCs over the time
of switching.

what do you think ?

max-td
Reply With Quote
 
  #12 (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

Hi roonius,

Can you tell me how it works?

In Trendline Alert Custom, Zondor wrote code that looks for an extended line with a name defined by the user.

The line is tagged in NT7 by double clicking on the line and entering the tag. This way it is coded into the indicator, see figure.

 
Code
                            
foreach (IDrawObject draw in DrawObjects)
     {
        if ((
draw.Tag.StartsWith("Test1")) &&draw is ILine)
          {
           
ILine drawnLine = (ILinedraw;    
           if(  
drawnLine.DrawType==DrawType.ExtendedLine )
            {
                 
LineName=draw.Tag;
                
currentYdrawnLine.StartY+(drawnLine.StartBarsAgo)/(-drawnLine.EndBarsAgo+drawnLine.StartBarsAgo+.0000001)*(drawnLine.EndY-drawnLine.StartY);
                
Values[0].Set(currentY);
            }  
    
//Price rising above the manually drawn Trend Line        
            
if((Close[0]-currentY>0&&lastprice-currentY<=0))
            {    
Alert("Alert"Priority.HighInstrumentName+": $"+Close[0]+", Rising Above Trendline "+LineNamesoundFileR1Color.BlackColor.Lime);
                Print(
"TrendLineCustom " +InstrumentName+": $"+Close[0]+", Rising Above Trendline "+LineName);
                
            }
              
    
//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 Trendline "+LineName);        
            }   
          }    
    
         }
        } 
When crossed, the alert is triggered.

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Attached Thumbnails
PkPriceAlert2 for NT7 - need help-pk2alert.png  
Attached Files
Register to download File Type: cs TrendLineAlertCustom.cs (9.6 KB, 38 views)

Last edited by ZTR; May 25th, 2010 at 05:37 AM. Reason: added other indy
Reply With Quote
The following user says Thank You to ZTR for this post:
 
  #13 (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


Roonius,

Thanks for the NT7 version of that PKPriceAlert2 indicator!

I'm assuming that with this NT7 version you still need to put 2 of them on your chart - one for uptrend and one for downtrend. Is that correct?

Even though I like this indicator. It has some inefficiencies. Having to add 2 of these to your chart indicator section seems sort of dumb. Could you possibly modify the code so it can handle a move up through a line or a move down thru a line and get rid of the uptrend/downtrend choice box at the top?

Please advise.
Thanks,
Todd

Reply With Quote
 
  #14 (permalink)
 Vendor: www.tradingstudies.com 
Denver, CO
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: TF, ES, CL
 
roonius's Avatar
 
Posts: 132 since Jun 2009
Thanks: 20 given, 272 received


max-td View Post
hi roonius,
thanks for the info!

will this .cs-file still work also in NT 6.5 ?

how do you handle the different versions now personaly ?
you have some experience i think.

will it make sense to insert _NT7 in the translated indi-file-names ?

i dont work on NT7 yet but i wonder how to keep all this organized on the own PCs over the time
of switching.

what do you think ?

Will not work in NT6.5

I am trying not to make any indicators compatible for both versions. For me it is simplier to keep separate versions. But that is just me...

Reply With Quote
The following user says Thank You to roonius for this post:
 
  #15 (permalink)
 Vendor: www.tradingstudies.com 
Denver, CO
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: TF, ES, CL
 
roonius's Avatar
 
Posts: 132 since Jun 2009
Thanks: 20 given, 272 received


ZTrade101 View Post
Hi roonius,

Can you tell me how it works?

In Trendline Alert Custom, Zondor wrote code that looks for an extended line with a name defined by the user.

The line is tagged in NT7 by double clicking on the line and entering the tag. This way it is coded into the indicator, see figure.

When crossed, the alert is triggered.


It does the following:
1. Looks for draw object on the chart which matches specified tag name.
2. From the line start and end coordinates calculates slope.
3. Having slope you can calculate the lines value at each bar and trigger alert if price crosses it.

Reply With Quote
The following user says Thank You to roonius for this post:
 
  #16 (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

It works!

Thanks.

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Attached Thumbnails
PkPriceAlert2 for NT7 - need help-pk2alert_2.png  
Reply With Quote
 
  #17 (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

I want to say "answered" to my original question but there is no "answer" check box... how do I do that?

I think it may be because Mike moved the thread where I originally asked my question.

Reply With Quote
 
  #18 (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

Z,

I've never noticed the alert window. I always just listen for the sound alert. However, the alert window could be useful, if it had a little more info..

Would it be possible to somehow get the chart name (ie CL07-10 4 Range) and indicator name (ie PKPricealert2) to show up in that alert window somewhere?

I just made this suggestion for NT to add these things to their alert window but don't know if or when they will get around to it.

Don't know if there is a way to do it programmatically within an indicator itself or some other way that doesn't involve NT having to re-write their code for that screen.

Todd

PS... I mention this because I had an audio alert go off this morning that said "test". I do have a "test" wav file but I couldn't find where I had it in any of my indicator sets on any of my 15 charts.. If I could have just looked at the alert window to see where that alert came from, that would have been most helpful.

Reply With Quote
 
  #19 (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,

I've never noticed the alert window. I always just listen for the sound alert. However, the alert window could be useful, if it had a little more info..

Would it be possible to somehow get the chart name (ie CL07-10 4 Range) and indicator name (ie PKPricealert2) to show up in that alert window somewhere?

I just made this suggestion for NT to add these things to their alert window but don't know if or when they will get around to it.

Don't know if there is a way to do it programmatically within an indicator itself or some other way that doesn't involve NT having to re-write their code for that screen.

Todd

PS... I mention this because I had an audio alert go off this morning that said "test". I do have a "test" wav file but I couldn't find where I had it in any of my indicator sets on any of my 15 charts.. If I could have just looked at the alert window to see where that alert came from, that would have been most helpful.

I Got PK2 to work this morning, but for some reason it takes a while.

This is what I get with the DoubleZ optimized alert indys.

There is code on alerts all over the place. Need to have a discussion thread on coding alerts into 7, maybe?

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

Last edited by ZTR; May 28th, 2010 at 11:04 AM. Reason: Got alert working updated post
Reply With Quote
 
  #20 (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


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

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)

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
Need help with PKPriceAlert2 indicator Todd NinjaTrader Programming 21 February 26th, 2010 05:04 PM


All times are GMT -4. The time now is 11:37 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-14 in 0.12 seconds with 20 queries on phoenix via your IP 54.227.51.103