little help please, thanks!
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
Indicator Called by Strategy Not Working
Collapse
X
-
Indicator Called by Strategy Not Working
Hi, i have a strategy that calls two indicators, the indicators are the same but one plots on Daily the other one on 4 hours and the chart is a 40 Rjay Hybrid, the first called indicator works properly, the second doesn't, i tried it without the strategy and plots correctly, nothing on the logs either, you can see the second indicator lines collapsed over the price bars:
little help please, thanks!Tags: None
-
Hello kabott,
Thank you for your post.
Are the indicator instances added through code or through the indicators menu?
If through code, can you provide the indicator or strategy that adds the indicator?
If not through code, can you provide the indicator so I may investigate further?
You can attach your indicator to your response by going to File > Utilities > Export NinjaScript > Export selected source files > select your Indicator > select the right arrow > Export. The file will be located under (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript.
-
Hi Patrick, sorry the delay to respond, i was at work, the indicators are called trough code like this:
private KBT_Sys_SPXi_V2 _MacroX;
private KBT_Sys_SPXi_V2Bis _Microx;
protected override void Initialize()
{
_MacroX = KBT_Sys_SPXi_V2( macroTimeframePeriods, macroOuterMulti, ActingTimeFrame.HybridRenko , Color.Yellow, Color.Red, Color.SteelBlue, macroSpLength, macroSpMidLineOffsetPer, macroSpMultiplier);
Add ( _MacroX );
_Microx = KBT_Sys_SPXi_V2Bis( microTimeframePeriods, microOuterMulti, ActingTimeFrameBis.HybridRenko , Color.White, Color.Magenta, Color.Cyan, microSpLength, microSpMidLineOffsetPer, microSpMultiplier);
Add ( _Microx );
They are exactly the same indicator duplicated and renamed, cause i didn't knew how to change the global "ActingTimeFrame.HybridRenko" within the strategy without renaming the original, so i just cloned the indi and renamed the conflicting globals,
Thanks you!Last edited by kabott; 10-14-2015, 07:31 AM.
Comment
-
Hello,
Thank you for posting the files.
Unfortunately it looks like just these two files would not be enough to compile ant test what is happening.
Could you instead please do an Export so all files needed are included? You can do this by going to File -> Utilities -> Export NinjaScript and include your test script that demonstrates the issue.
If you do not already have a test script, please create a empty strategy and only add the Prints that demonstrate the issue or mainly shows the one instance that Prints and the other indicator that does not Print and how you are calling them.
This would help in finding the cause and also I could import and compile for testing.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by frslvr, 04-11-2024, 07:26 AM
|
9 responses
123 views
1 like
|
Last Post
by caryc123
Today, 03:12 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
4 responses
16 views
0 likes
|
Last Post
by rocketman7
Today, 02:56 PM
|
||
Started by selu72, Today, 02:01 PM
|
1 response
9 views
0 likes
|
Last Post Today, 02:17 PM | ||
Started by WHICKED, Today, 02:02 PM
|
2 responses
16 views
0 likes
|
Last Post
by WHICKED
Today, 02:15 PM
|
||
Started by f.saeidi, Today, 12:14 PM
|
8 responses
21 views
0 likes
|
Last Post
by f.saeidi
Today, 01:55 PM
|
Comment