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 > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-07-2012, 08:57 AM   #1
Tzachi
Member
 
Join Date: May 2008
Posts: 49
Thanks: 0
Thanked 2 times in 2 posts
Default ChikoSpan cross

Can anyone help me with a code to place a mark/arrow/dot on the current bar when the ChikoSpan cross outside below/above the ichimoku cloud? (I know the cross is lagging 26 bars but I still need to know about the cross on current bar that)

Thanks in advance.

Tzachi
Tzachi is offline  
Reply With Quote
Old 08-07-2012, 09:02 AM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Tzachi,
Unfortunately we do not do custom NinjaScript coding.

I will however leave the thread open for any of our forum member for their valuable inputs.

You can also contact any of our NinjaScript consultants. You can get the list of our NinjaScript consultants from here http://www.ninjatrader.com/partners#...pt-Consultants
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-08-2012, 08:30 AM   #3
Tzachi
Member
 
Join Date: May 2008
Posts: 49
Thanks: 0
Thanked 2 times in 2 posts
Default

Joydeep,

Thx. I hope some members here will be able to help with my request.
Tzachi is offline  
Reply With Quote
The following user says thank you to Tzachi for this post:
Old 08-09-2012, 07:01 PM   #4
Tzachi
Member
 
Join Date: May 2008
Posts: 49
Thanks: 0
Thanked 2 times in 2 posts
Default

That what I try to do - have a signal on current bar when Chikou cross out from the cloud (26 bars back) but it does not work.

if (CrossAbove(TSIchimoku(9,26,52).ChikouSpan,IchiCloud(9,26,52).SenkouSpanA,1))

DrawDot.......

Any ideas why its not working?
Tzachi is offline  
Reply With Quote
Old 08-10-2012, 02:18 AM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
Default

We're unfortunately not really familiar with these custom indicators and how they would be designed to work / return their values, but if you say you're dealing with lagged values, would the lookback period for the cross perhaps be needed to increased?
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 08-10-2012, 05:50 AM   #6
Tzachi
Member
 
Join Date: May 2008
Posts: 49
Thanks: 0
Thanked 2 times in 2 posts
Default

Thx Berrtand. How about just a signal when the ChikouSpan line crosses above or below the cloud at the regular Ichimoku indicator? Any tips?
Tzachi is offline  
Reply With Quote
Old 08-10-2012, 06:13 AM   #7
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Tzachi,
A crossover code using the Ichimoku cloud indicator as found in the below link, will be like
http://www.ninjatrader.com/support/f...hp?&linkid=455

Code:
if (CrossAbove(IchiCloud(9,26,52).SenkouSpanA, IchiCloud(9, 26, 52).SenkouSpanB, 1 ))
	this.DrawDot("dot" + CurrentBar, false, 0, Low[0], Color.Blue);
Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-10-2012, 06:31 AM   #8
Tzachi
Member
 
Join Date: May 2008
Posts: 49
Thanks: 0
Thanked 2 times in 2 posts
Default

Joydeep,

Many thanks but I am looking for a signal on current bar when the ChikouSpan line cross of the cloud (above and below) not the cross of the Span A&B.

Any idea?
Tzachi is offline  
Reply With Quote
Old 08-10-2012, 06:36 AM   #9
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Tzachi,
Can you please send the indicator to support[AT]ninjatrader[DOT]com

Also please send a screenshot depicting where exactly you want to signals to be.

I look forward to assisting you further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-10-2012, 03:33 PM   #10
Tzachi
Member
 
Join Date: May 2008
Posts: 49
Thanks: 0
Thanked 2 times in 2 posts
Default

Joydeep,

Can we mark a dot under the current bar when the ChikouSpan line cross out the cloud lines(above and below, 26 bars back) using the NT7 ichimoku indicator?
Tzachi is offline  
Reply With Quote
Old 08-11-2012, 08:55 PM   #11
Tzachi
Member
 
Join Date: May 2008
Posts: 49
Thanks: 0
Thanked 2 times in 2 posts
Default

Any ideas?
Tzachi is offline  
Reply With Quote
Old 08-13-2012, 04:09 AM   #12
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Tzachi,
Unfortunately I do not have access to the indicator ChikouSpan. Can you send it to support[AT]ninjatrader[DOT]com

Also please send a screenshot depicting where exactly you want to draw the dot.


Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

I look forward to assisting you further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-14-2012, 04:44 PM   #13
Tzachi
Member
 
Join Date: May 2008
Posts: 49
Thanks: 0
Thanked 2 times in 2 posts
Default

Joydeep,

Applied your input and advice. PERFECT. Great job and exactly what I was trying to do for over 10 days. Well Done. GREAT customer service.

Tzachi.
Tzachi is offline  
Reply With Quote
The following user says thank you to Tzachi for this post:
Old 01-09-2013, 09:56 PM   #14
edward_bell
Member
 
Join Date: Aug 2012
Location: Chicago
Posts: 61
Thanks: 2
Thanked 1 time in 1 post
Default

Someone could help me in Ichimoku cloud to plot 2 bars in advance? For example, if we are going to scroll our mouse forward then there will be a plot of the indicator?
edward_bell is offline  
Reply With Quote
Old 01-10-2013, 03:55 AM   #15
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello edward_bell,
If you try setting the displacement property to 2 then are you able to plot the values in future.

Please refer to the attached screenshot which further demonstrates the Displacement property.
Attached Images
File Type: png Displacement.png (108.0 KB, 16 views)
NinjaTrader_Joydeep is offline  
Reply With Quote
Reply

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
cross over cross under ohjob General Programming 1 09-29-2011 09:36 AM
Cross Above malej.gregy General Programming 1 05-25-2011 02:05 PM
Price at Cross Above / Cross Below sgordet Indicator Development 7 01-11-2011 02:58 PM
Cross Above / Cross Below for NT7? Elliott Wave Market Analyzer 12 11-20-2010 05:27 PM
what the difference between global cross hair and cross hair? hanzahar Miscellaneous Support 3 12-16-2008 07:36 AM


All times are GMT -6. The time now is 10:27 AM.