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,376 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

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


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
Click image for larger version

Name:	6E 06-10 (1024 Volume)  6_7_2010_749.jpg
Views:	251
Size:	197.0 KB
ID:	15022   Click image for larger version

Name:	ALert.PNG
Views:	215
Size:	73.2 KB
ID:	15023  
Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
What broker to use for trading palladium futures
Commodities
 
  #22 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 234 since Jun 2009
Thanks Given: 28
Thanks Received: 40

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.

Started this thread Reply With Quote
  #23 (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


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
Click image for larger version

Name:	WorksInReplay.PNG
Views:	240
Size:	146.8 KB
ID:	15746   Click image for larger version

Name:	WorksInReplay2.PNG
Views:	217
Size:	79.1 KB
ID:	15747  
Visit my NexusFi Trade Journal Reply With Quote
  #24 (permalink)
Day Trading Fool
Southwest US
 
Posts: 57 since Apr 2010
Thanks Given: 23
Thanks Received: 95

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)
Day Trading Fool
Southwest US
 
Posts: 57 since Apr 2010
Thanks Given: 23
Thanks Received: 95

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)
 
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

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
Elite Membership required to download: TrendLineAlertCustom.cs
Visit my NexusFi Trade Journal Reply With Quote
  #27 (permalink)
Day Trading Fool
Southwest US
 
Posts: 57 since Apr 2010
Thanks Given: 23
Thanks Received: 95

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)
Day Trading Fool
Southwest US
 
Posts: 57 since Apr 2010
Thanks Given: 23
Thanks Received: 95

Looks like that is the case... bummer.

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

Reply With Quote
  #29 (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 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.
Visit my NexusFi Trade Journal Reply With Quote
  #30 (permalink)
Day Trading Fool
Southwest US
 
Posts: 57 since Apr 2010
Thanks Given: 23
Thanks Received: 95


Is that limited to the displayed instruments as well?

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