NexusFi: Find Your Edge


Home Menu

 





PkPriceAlert2 for NT7 - need help


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one ZTR with 12 posts (1 thanks)
    2. looks_two Todd with 8 posts (0 thanks)
    3. looks_3 oraclewizard77 with 6 posts (0 thanks)
    4. looks_4 Day Trading Fool with 5 posts (0 thanks)
    1. trending_up 15,326 views
    2. thumb_up 8 thanks given
    3. group 6 followers
    1. forum 43 posts
    2. attach_file 13 attachments




 
Search this Thread

PkPriceAlert2 for NT7 - need help

  #31 (permalink)
 
ZTR's Avatar
 ZTR 
 
Experience: Advanced
Platform: NinjaTrader7
Broker: Mirus RCG/Zen-Fire
Trading: CL & 6e, looking at ES, ZB and AU again.
Posts: 2,096 since Nov 2009
Thanks Given: 1,099
Thanks Received: 1,393

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.
Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #32 (permalink)
oraclewizard77
Eninco, CA
 
Posts: 6 since Jun 2010
Thanks Given: 0
Thanks Received: 0

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)
 
ZTR's Avatar
 ZTR 
 
Experience: Advanced
Platform: NinjaTrader7
Broker: Mirus RCG/Zen-Fire
Trading: CL & 6e, looking at ES, ZB and AU again.
Posts: 2,096 since Nov 2009
Thanks Given: 1,099
Thanks Received: 1,393


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.
Visit my NexusFi Trade Journal Reply With Quote
  #34 (permalink)
oraclewizard77
Eninco, CA
 
Posts: 6 since Jun 2010
Thanks Given: 0
Thanks Received: 0

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)
oraclewizard77
Eninco, CA
 
Posts: 6 since Jun 2010
Thanks Given: 0
Thanks Received: 0

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
Elite Membership required to download: LabelHorzLines.zip
Reply With Quote
  #36 (permalink)
nutz505
Pittsburgh, PA
 
Posts: 5 since Jan 2010
Thanks Given: 0
Thanks Received: 1

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
Elite Membership required to download: LabelHorzLineAlerts.zip
Reply With Quote
  #37 (permalink)
oraclewizard77
Eninco, CA
 
Posts: 6 since Jun 2010
Thanks Given: 0
Thanks Received: 0

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)
nutz505
Pittsburgh, PA
 
Posts: 5 since Jan 2010
Thanks Given: 0
Thanks Received: 1

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
Thanked by:
  #39 (permalink)
oraclewizard77
Eninco, CA
 
Posts: 6 since Jun 2010
Thanks Given: 0
Thanks Received: 0

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)
oraclewizard77
Eninco, CA
 
Posts: 6 since Jun 2010
Thanks Given: 0
Thanks Received: 0


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 - [AUTOLINK]NinjaTrader[/AUTOLINK] 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




Last Updated on November 22, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts