Sam
Announcement
Collapse
No announcement yet.
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.
-
I keep coming back to this and I am not sure this has answered my question. I understand that the Lagging Span and the Senkou Span A and B are displaced 26 bars before and after. My problem is that no matter what I do, the Lagging Span does not affect the script at all. If I use the Strategy Builder to create just a simple crossover of the Lagging and Senkou B, it does nothing.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
Please note that because the values are displaced, I use BarsAgo references and check if the current bar (in this case 26 because the value is displaced 26 bars into the future) is greater, and the previous bar value is less than or equal. This creates the same functionality as CrossAbove.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=drivesdk
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
90 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
152 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
80 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
53 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
63 views
0 likes
|
Last Post
|

Comment