Sam
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Ichimochu Cloud
Collapse
X
-
Ichimochu Cloud
I saw an ichimochu cloud indicator by Ninjatrader_Jim uploaded to the ecosystem and while I can do a basic price comparison with all of the spans, for some reason when I do a basic comparison of the lagging spanner to the cloud span lines at 52 bars ago, it does not work. Every bar meets the condition even though I can clearly see it does not. Any thoughts on why this would happen? Does a 0 bars ago to 52 bars ago comparison not work for any reason I don't know?
SamTags: None
-
Hello Sam,
Thanks for your post.
Please be sure to use prints when checking your work as your condition should be written to use the values the script sees as opposes to what is visible on the chart. (Prints can be viewed in the NinjaScript Output window.) The indicator displaces the cloud forward 26 bars, so conditions should be used to mind this when referencing SenkouSpan plots. The lagging span is also 26 bars behind other plots.
I have attached some examples showing how some conditions can be made.
Print() - https://ninjatrader.com/support/help...nt8/?print.htm
We look forward to assisting.JimNinjaTrader Customer Service
-
Originally posted by NinjaTrader_Jim View PostHello Sam,
Thanks for your post.
Please be sure to use prints when checking your work as your condition should be written to use the values the script sees as opposes to what is visible on the chart. (Prints can be viewed in the NinjaScript Output window.) The indicator displaces the cloud forward 26 bars, so conditions should be used to mind this when referencing SenkouSpan plots. The lagging span is also 26 bars behind other plots.
I have attached some examples showing how some conditions can be made.
Print() - https://ninjatrader.com/support/help...nt8/?print.htm
We look forward to assisting.
Example:
if Chikou[0] > Senkou[0]
EnterLong
//Does nothing
if Chikou[26] > Senkou[0]
EnterLong
//Does nothing
if Chikou[26] > Senkou[26]
EnterLong
//Does nothing
if Chikou[0] > Senkou[26]
EnterLong
//Does nothing
if Chikou[0] > Senkou[52]
EnterLong
//Does nothing
if Chikou[26] > Senkou[52]
EnterLong
//Does nothing
if Chikou[52] > Senkou[26]
EnterLong
//Does nothing
Standard Ichimoku strategy entry depends on the LaggingSpan crossing below or above the cloud but the Senkou Spans and Chikou(Lagging) Span cannot produce a condition by any means. How do I use the Strategy Builder to build a crossover condition that can follow the displaced Chikou Span?
PS: It is only the Chikou Sapn which does not respond.
Comment
-
Hello smcllr,
Thanks for your post.
The example attached tests the following condition using ChikouSpan
Code:if ((IchimokuCloud1.ChikouSpan[27] <= IchimokuCloud1.SenkouSpanA[27]) && (IchimokuCloud1.ChikouSpan[26] > IchimokuCloud1.SenkouSpanA[26]))
If you are not seeing any actions with your strategy logic, debugging prints should be used so you can see how the logic evaluates as it is executing. This will tell you what the values are as they are executing and can tell you why a condition has become true/has not become true so you can make changes.
Debugging in the Strategy Builder - https://drive.google.com/file/d/1mTq...w?usp=drivesdkJimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
47 views
0 likes
|
Last Post Today, 12:28 AM |
Comment