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

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

Do not know, as have not tried.

Currently, use only one instrument per workspace.

Don't want to push NT any harder than am now.

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Reply With Quote
 
  #32 (permalink)
Just starting out...
Eninco, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 6 since Jun 2010
Thanks: 0 given, 0 received

I was able to import pkpricealert2.cs after 1st compressing it into a zip file for NinjaTrader 7.0.

I now see an indicator that I can add to my chart as pricealert assuming this is the correct indicator to use. But, I don't see how or where to set an alert for a audio file to be activated.

Does anyone have more specific instructions?

Reply With Quote
 
  #33 (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 they are built in.

 
Code
                            
 // Wizard generated variables

            
            
private DateTime                startTime;
            private 
bool uptrend true;
        private 
string     breakFloor    "BreakFloor.wav";     // Price Breaking Down thru horizontal line alert wav file
        
private string     breakCeiling    "BreakCeiling.wav";     // Price Breaking Up thru horizontal line alert wav file 
Used Here:
 
Code
                            
Print("********************PriceAlert   UP. AlertPrice=" PriceAlert " \t Close[0]=" Close[0] + " \t Close[1]=" Close[1] + " \t Time[0]=" Time[0] );    

                             
//DrawArrowUp("MyArrowUP" + CurrentBar , 0,  Low[0] - .05 , Color.Blue);    
                            
Alert(this.GetType().Name Instrument.FullName,Priority.High,"Price Alert. Ticker=" Instrument.FullName "  Price=" PriceAlert breakCeiling 60Color.Blue,Color.White); 

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Reply With Quote
 
  #34 (permalink)
Just starting out...
Eninco, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 6 since Jun 2010
Thanks: 0 given, 0 received

For example for ES 08-10 current price is 1111.25. In the PriceAlert indicator, it has a parameter for price which is set at 0, I have changed it to 1106, and it then does automatically draw a horizontal line at that price. I then added a 2nd PriceAlert indicator, and set price to 1106 from default 0, and I now have a 2nd line drawn. I don't see anywhere where to put in what sound file to use, but I assume it will make a sound when price hits this line. I will test this on Tue during live trading.



ZTR View Post
Believe they are built in.

 
Code
                            
 // Wizard generated variables
            
            
private DateTime                startTime;
            private 
bool uptrend true;
        private 
string     breakFloor    "BreakFloor.wav";     // Price Breaking Down thru horizontal line alert wav file
        
private string     breakCeiling    "BreakCeiling.wav";     // Price Breaking Up thru horizontal line alert wav file 
Used Here:
 
Code
                            
Print("********************PriceAlert   UP. AlertPrice=" PriceAlert " \t Close[0]=" Close[0] + " \t Close[1]=" Close[1] + " \t Time[0]=" Time[0] );    
                             
//DrawArrowUp("MyArrowUP" + CurrentBar , 0,  Low[0] - .05 , Color.Blue);    
                            
Alert(this.GetType().Name Instrument.FullName,Priority.High,"Price Alert. Ticker=" Instrument.FullName "  Price=" PriceAlert breakCeiling 60Color.Blue,Color.White); 


Reply With Quote
 
  #35 (permalink)
Just starting out...
Eninco, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 6 since Jun 2010
Thanks: 0 given, 0 received

What I would rather have is if someone could add a price alert to this LabelHorizontallines.zip file, so that I would hear an audio file if price were to hit this line.

This indicator allows one to draw a horizontal line and it puts a price label on that line, plus you can then move the line up or down on the chart.

Attached Files
Register to download File Type: zip LabelHorzLines.zip (2.0 KB, 47 views)
Reply With Quote
 
  #36 (permalink)
Just starting out...
Pittsburgh, PA
 
Futures Experience: Intermediate
Platform: NinjaTrader
 
Posts: 5 since Jan 2010
Thanks: 0 given, 1 received

I posted this on the NT site a while ago. It modified the original code by adding the alerts and also allows you to set the font size on the label and fixed a couple of other items on it.

You need to define references to System.Configuration and Accessibility when you import the cs files.

This will only work on the active displayed charts. It will allow you to move the lines around and reset the alerts.

Rich

Attached Files
Register to download File Type: zip LabelHorzLineAlerts.zip (4.5 KB, 79 views)
Reply With Quote
 
  #37 (permalink)
Just starting out...
Eninco, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 6 since Jun 2010
Thanks: 0 given, 0 received

How do I define references to System.Configuration and Accessibility after I import the CS files. Please note I am using NT 7.00.17 Please feel free to give an example of what you are talking about. Thanks.

Reply With Quote
 
  #38 (permalink)
Just starting out...
Pittsburgh, PA
 
Futures Experience: Intermediate
Platform: NinjaTrader
 
Posts: 5 since Jan 2010
Thanks: 0 given, 1 received

Step 1. Edit the indicator
Step 2. Right Click in editor Panel and select references
Step 3. Click on Add..
Step 4. Select Accessibility.dll most likely it will be in C:\Windows\Microsoft.NET\Framework\v2.0.50727 directory
Step 5. Repeat Steps 3 & 4 for System.Configuration.dll

The above path is what I used on my machine which is installed with Windows 7 x64 so the path may be different on your machine so just search for the dlls.

If you need a screenshot let me know it was giving me issues attaching a file

Reply With Quote
The following user says Thank You to nutz505 for this post:
 
  #39 (permalink)
Just starting out...
Eninco, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 6 since Jun 2010
Thanks: 0 given, 0 received

I am using NT 7.0.0.17 (also Windows 7), when I try to import the indicator, I get the message Accessibility, System.configuration have to be added to use the products in the imported assembly.

Next, I get "import failed message". The NinjaScript archive file may contain duplicate names, or there is a required file missing either on your pc or there is a require file missing on your pc or import archive.

The only other thought I have is that I have an indicator called LabelHorzLine, don't know if that is causing the problem and if so how do I remove that indicator and use this one. I also deleted this indicator and tried to re-import the new one and still have the same problem.


nutz505 View Post
Step 1. Edit the indicator
Step 2. Right Click in editor Panel and select references
Step 3. Click on Add..
Step 4. Select Accessibility.dll most likely it will be in C:\Windows\Microsoft.NET\Framework\v2.0.50727 directory
Step 5. Repeat Steps 3 & 4 for System.Configuration.dll

The above path is what I used on my machine which is installed with Windows 7 x64 so the path may be different on your machine so just search for the dlls.

If you need a screenshot let me know it was giving me issues attaching a file


Reply With Quote
 
  #40 (permalink)
Just starting out...
Eninco, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 6 since Jun 2010
Thanks: 0 given, 0 received


I also opened a support question on NT forum, and this was their response:

You will need to go to the original author and inquiry on how to install these indicators properly. To get to editing an indicator you can just go to Tools>Edit NinjaScript and open any file (doesn't have to be these indicators) to add references. Perhaps if you did that on any indicator/strategy file with the required references you will then be able to compile and then import afterwards.

Can not import indicator LabelHorzLineAlerts.zip - NinjaTrader Support Forum

The above link is where you can update this issue with NT staff

Also, I don't know if .17 has restrictions on importing indicators with references to external assemblies or not.

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 09:55 PM.

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-12 in 0.12 seconds with 20 queries on phoenix via your IP 54.221.93.187