![]() |
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
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Aug 2010
Location: MX
Posts: 109
Thanks: 16
Thanked 3 times in 1 post
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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);
Ryan M
NinjaTrader Customer Service |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |