NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 09-15-2010, 10:36 AM   #1
michi08
Senior Member
 
Join Date: Aug 2010
Location: MX
Posts: 109
Thanks: 16
Thanked 3 times in 1 post
Default Market Analyzer Indicator

hi
a short crazy question. For example STOCHASTICS: is it possible to show the crossover from the Period D and the Period K indicator, (so I can see that the Instrument is changed course)
sorry, I know its a weird question.

thx
michael
michi08 is offline  
Old 09-15-2010, 11:12 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Michi08,

Yes, this is possible with custom programming. The market analyzer can display numeric values of plots, so a common approach is to assign a value of 1 during crossovers, and 0 otherwise. Below is a snippet that evaluates D crossing above K and assigns a value of 1.


Code:
 
if (CrossAbove(Stochastics(PeriodD, PeriodK, Smooth).D, Stochastics(PeriodD, PeriodK, Smooth).K, 1))
Plot0.Set(1);
 
else
Plot0.Set(0);
NinjaTrader_RyanM is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Market Analyzer Indicator Problems joegwest1 Market Analyzer 8 06-29-2009 04:29 PM
Three Market Analyzer Questions: Market Time and Indicator tradinginzen Market Analyzer 1 02-16-2009 04:43 AM
Is an indicator in a chart or market analyzer pkinoc Indicator Development 2 06-11-2008 02:37 PM
Required Indicator Changes for use with Market Analyzer rcsingleton Market Analyzer 1 02-01-2008 12:14 PM
Market Analyzer and indicator column Greg1 Market Analyzer 2 03-21-2007 01:34 PM


All times are GMT -6. The time now is 09:41 PM.