NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 11-17-2010, 09:47 AM   #1
Indtrader
Junior Member
 
Join Date: Sep 2010
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default Ichimoku Strategy - Need help!

Hi

I'm using the 2 attachments as my Ichimoku indicators:

(1) IchiCloud - to plot the Senkou Span A & Senkou Span B, which collectively form the Kumo (cloud)

(2) Ichilines - to plot the Tenkan Sen, Kijun Sen & Chikou Span

Once these indicators are active on the chart, I've created the following 3 strategies (via Tools>New NinjaScript>Strategy)

(a) Tenkan/Kijun Cross - Go long when the Tenkan Sen Crosses above the Kijun Sen above the Kumo - This strategy works fine & plots a vertical line at the bar where the conditions are met.

(b) Senkou Span Cross - Go long when the Senkou Span A crosses above the Senkou Span B, and the price is above the Kumo. This strategy works fine & plots a vertical line at the bar where the conditions are met.

(c) Kumo Breakout - Go long when the Price breaks out above the Kumo. Now it is here where I'm having the problem. The most basic function I am using is - "If the closing price crosses above the Senkou Span A, then plot Vertical line." However, I don't get the correct result and get many vertical lines in the wrong places. I've also tried different options for "Offset" and "Bars Ago" (as the Kumo is plotted 26 bars ahead of the price) but still no luck. The screenshot of the Condition builder is attached.

As I was able to get the first two strategies to work fine - Can anyone please suggest what I may be doing wrong for the last strategy?

Many thanks
Attached Images
File Type: jpg New Picture (2).jpg (55.3 KB, 80 views)
Attached Files
File Type: zip IchiCloudExp.zip (7.8 KB, 80 views)
File Type: zip IchiLinesExp.zip (6.2 KB, 70 views)
Indtrader is offline  
Reply With Quote
Old 11-17-2010, 10:02 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thanks for your forum post.

Can you please send your strategy to support at ninjatrader dot com and reference this forum post so that I may look into this. As with the current information provided I could only guess as to possible reasons this may occur.

Also, I need to know are you running this live, in a backtest, also are you running this with Calculate On Bar Close = True or False?

I look forward to assisting you further.
NinjaTrader_Brett is offline  
Reply With Quote
Old 01-22-2011, 07:58 AM   #3
renkoben
Junior Member
 
Join Date: Aug 2010
Posts: 27
Thanks: 5
Thanked 0 times in 0 posts
Default

NT it appears doesn't have Ichumuko cloud in the standard listing of charting and tech. indicators.

where can I get a download for this?
renkoben is offline  
Reply With Quote
Old 01-22-2011, 08:50 AM   #4
Indtrader
Junior Member
 
Join Date: Sep 2010
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi Renkoben

You can use the attachments earlier in the thread for the Cloud and the Ichi lines.
Indtrader is offline  
Reply With Quote
Old 01-22-2011, 09:44 AM   #5
renkoben
Junior Member
 
Join Date: Aug 2010
Posts: 27
Thanks: 5
Thanked 0 times in 0 posts
Default

I don't know how to use this rar at the top is "ADD, extract to, test, view, delete, find, Wizard, info, Virus Scan.

I did the extract to......to my desktop. where it's in a file (not the piles books). went to import ninja script and the file is empty???
renkoben is offline  
Reply With Quote
Old 01-22-2011, 01:49 PM   #6
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

renkoben, you will have to first extract the file from the .RAR archive. You can use WinRAR to do this. Once you extract the file, go to NinjaTrader and click File -> Utilities -> Import NinjaScript and you'll be able to import the file.

EDIT: Just looked at the first post. The file is a .ZIP not .RAR. There are a variety of applications that will open zip archives. If you are running Windows Vista or something later, there is a built-in unzipper.
NinjaTrader_Austin is offline  
Reply With Quote
Old 02-05-2011, 07:26 AM   #7
renkoben
Junior Member
 
Join Date: Aug 2010
Posts: 27
Thanks: 5
Thanked 0 times in 0 posts
Default ninja script files?

When I try to import ninja script the file on my desktop (three books stacked on each other)

my computer won't do it. It reads:


"ninjascript archive files does not contain any ninja script files"

what is wrong?
renkoben is offline  
Reply With Quote
Old 02-05-2011, 01:29 PM   #8
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

renkoben, both indicators in this thread just imported successfully for me. Please try re-downloading the indicators and importing again.
NinjaTrader_Austin is offline  
Reply With Quote
Old 02-05-2011, 01:45 PM   #9
renkoben
Junior Member
 
Join Date: Aug 2010
Posts: 27
Thanks: 5
Thanked 0 times in 0 posts
Default heiken ashi smooth

Austin

Actually i needed the technique for the smoothed heiken ashi listed on the forum

here

http://www.ninjatrader.com/support/f...ht=heiken+ashi

I couldn't make this down load , does it work for you?

the indicator is from Purelogik, a NT consultant
renkoben is offline  
Reply With Quote
Old 02-05-2011, 02:22 PM   #10
renkoben
Junior Member
 
Join Date: Aug 2010
Posts: 27
Thanks: 5
Thanked 0 times in 0 posts
Default need help

Austin or someone. I need your help. when you press the button the open the attachment a winrar zip or whatever window opens.

then you get three different files. I suppose you highlight the "indicator" entry

then do you press "extract to" or "add" or WHAT

HELP. I've been working on this for 7 hrs today and can't do it.

support @ ninja is out for the weekend apparently.
renkoben is offline  
Reply With Quote
Old 02-05-2011, 02:29 PM   #11
renkoben
Junior Member
 
Join Date: Aug 2010
Posts: 27
Thanks: 5
Thanked 0 times in 0 posts
Default typo

typo- I ment to say

Austin or someone. I need your help. when you press the button to open the attachment a winrar zip or whatever window opens.

then you get three different files. I suppose you highlight the "indicator" entry WHICH ONE

then do you press "extract to" or "add" or WHAT

HELP. I've been working on this for 7 hrs today and can't do it.

support @ ninja is out for the weekend apparently.
renkoben is offline  
Reply With Quote
Old 02-05-2011, 09:24 PM   #12
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

Ben, I responded to you at 1:29pm today, which is definitely during the weekend. We check once in the morning and once at night on both Saturday and Sunday.

I've already responded to your additional email request - in the future, please do not send in more than one message or forum post regarding the same item.

Do not open the archive - save it. Leave them as a .zip archive and then point NinjaTrader to that .zip archive. You were trying to import a MetaTrader indicator into NinjaTrader and that is why it wasn't working.
NinjaTrader_Austin is offline  
Reply With Quote
Old 06-20-2011, 04:55 PM   #13
Loukas
Member
 
Join Date: May 2011
Location: London
Posts: 60
Thanks: 1
Thanked 0 times in 0 posts
Default

Hi Indtrader,

Did you figure out how to creade a strategy to "go long when the Price breaks out above the Kumo"
Could you share with us how did you code the statment - If the closing price crosses above the Senkou Span A-
For EMA is like this (Close[0]>EMA(Fast)[0]) but I have found a solution about SenkouSpanA

Thanks
Loukas 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
Ichimoku Kinko Yuo JC_Fernandes NinjaScript File Sharing Discussion 61 11-29-2011 11:54 AM
Ichimoku Additions cclsys Indicator Development 31 03-30-2011 06:30 AM
Ichimoku Kinko Hyo Trader108 Indicator Development 5 11-05-2010 07:26 AM
Ichimoku werido Charting 1 07-07-2010 11:51 AM
How to change color to ichimoku cloud toddaclark Charting 3 05-15-2009 05:17 AM


All times are GMT -6. The time now is 02:32 PM.