draw object is detected by a loop over all draw object in the chart
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
installed indicator as compiled assembly does not detect draw object
Collapse
X
-
installed indicator as compiled assembly does not detect draw object
Hi
I have an indicator working in NT8 build 8
This indicator can detect several draw objects if added to the chart by end user : vertical line , rectangle and Dot .
Those objects are used to direct the indicator to perform some specific action.
All this works just fine in my computer ( windows 7 )
I exported the indicator as compiled assembly
I installed the compiled assembly in another windows 7 computer and another windows 8 computer and the indicator could not detect the draw object
If install the indicator (source ) and compile it in another computer - the indicator does succeed to find the draw objects
draw object is detected by a loop over all draw object in the chart
Last edited by doron; 02-05-2016, 08:58 AM.Tags: None
-
Hello,
Thank you for the post.
I would be uncertain on what may be occurring with what you have provided. Are you getting any errors or do you have any other relevant information that may help?
If not, Have you created a Sample that demonstrates this?
If you can provide a sample with source code that directly shows this occurring, I could certainly look further into this. Outside of that I would not have any guesses on what may be occurring with the logic being used as it is currently unknown.
Please let me know if I may be of further assistance.JesseNinjaTrader Customer Service
-
hi
i prepared a "miniScript" that should demonstrate the problem . But i failed - i.e. with the miniscript it is working .
So i have no idea why in my real indicator which detect the draw object in my computer
does not detect it in other computer in which it was installed as compressed assembly .
I found no errors
so i have no idea how to proceed
Comment
-
Hello,
If you have created a sample version that works, this would indicate a problem in the remaining code that was not put into the sample.
Likely you don't have any actual Syntax errors but something is having an error during runtime.
For this, all I could really suggest at this point would be to slowly migrate more code into the sample until you can reproduce the problem.
You are at a point now where the problem does not exist in the sample, so it should only be a matter of time before you find the error while moving the additional logic over.
Unfortunately this process may be very repetitive but this would be part of any developers process in finding an error that is in an unknown location.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
conversion of DrawObject to DrawingTool fail with compressed script
HiI succeeded to isolate the problemThe problem is that the conversion of DrawObject to DrawingTool is working fine while the script is a "normally" compiled i.e. with code exposed .
However when the script is compressed and installed in another computer as a compressed script the conversion fail i.e. it generate a null object.The command to convert I used are :
if (DrawObjects[DotTag].GetType().Name == "Dot"){Print("DrawObjects of type Dot with Tag " + DotTag + " was found convert it to DrawingTool.Dot");if (DrawObjects[DotTag] != null) Print(" confirmation: draw object was found try to convert it to drawtool ");DrawingTools.DotMyDot = DrawObjects[DotTag] asDrawingTools.Dot;if ( MyDot == null ) MyDot = DrawObjects[DotTag] asDrawingTools.Dot;if (MyDot != null) { Print(" draw object of type Dot was converted to drawingtool of type dot , it is not null"); }if (MyDot == null){Print(" conversion fail the converted drawobject Dot it null");return;}=========When I activated the script "normally" the results are :
found dot with Tag : Dot 44DrawObjects of type Dot with Tag Dot 44 was found convert it to DrawingTool.Dotconfirmation: draw object was found try to convert it to drawtooldraw object of type Dot Dot was converted to drawingtool of type dot , it is not null==========when I activated the compressed script ( in another computer) the results are :
found dot with Tag : Dot 2DrawObjects of type Dot with Tag Dot 2 was found convert it to DrawingTool.Dotconfirmation: draw object was found try to convert it to drawtoolconversion fail the converted drawobject Dot it nullattached script code as compressed and non compressed
Last edited by doron; 02-07-2016, 03:46 AM.
Comment
-
Hello,
Thank you for isolating this.
I do see the difference on my end when running from source versus running from a compiled assembly. This type of sample is exactly what we need to address questions like this related to your custom script.
I will submit this sample to development for further review. if I have further details on this request I will reply back once I do.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
147 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
5 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
4 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,282 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
Comment