Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Anyone know how to modify an indicator?
Collapse
X
-
Anyone know how to modify an indicator?
I have a tick counter that gives a countdown right next to the bar that's currently forming, but it often covers up part of the bar, so I'd like to find a way to scoot it to the right by 5 or 10 pixels. I've attached a pic of it in action as well as the indicator script fileTags: None
-
Hello EnveousColnago, thanks for your question.
It looks like you could add a " " (blank space) character at the beginning of the display string to fix this. Any other rendering into the future would need to be done with custom text rendering, see the CustomPlotSample for a demonstration of this.
Please let me know if I can assist any further.
Chris L.NinjaTrader Customer Service
-
Originally posted by NinjaTrader_ChrisL View PostHello EnveousColnago, thanks for your question.
It looks like you could add a " " (blank space) character at the beginning of the display string to fix this. Any other rendering into the future would need to be done with custom text rendering, see the CustomPlotSample for a demonstration of this.
Please let me know if I can assist any further.
Thanks!
Comment
-
Hello, thanks for your reply.
Try adding this right after line 58:
sTicCnt = " " + sTicCnt;
Press F5 to compile after adding the line.
Please note that any changes or upgrades that need to be done for a script will usually need to be addressed by the original developer.
Kind regards.Chris L.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChrisL View PostHello, thanks for your reply.
Try adding this right after line 58:
sTicCnt = " " + sTicCnt;
Press F5 to compile after adding the line.
Please note that any changes or upgrades that need to be done for a script will usually need to be addressed by the original developer.
Kind regards.
Comment
-
Originally posted by NinjaTrader_ChrisL View PostHello, thanks for your reply.
Try adding this right after line 58:
sTicCnt = " " + sTicCnt;
Press F5 to compile after adding the line.
Please note that any changes or upgrades that need to be done for a script will usually need to be addressed by the original developer.
Kind regards.
1 Photo
Comment
-
Originally posted by NinjaTrader_ChrisL View PostHello EnveousColnago, thanks for your reply.
Can you tell me exactly what the compile error is saying? I can not see the full message from the screen shot.
Kind regards.1 Photo
Comment
-
code error only exist in Microsoft c# guide product resource has the message . https://docs.microsoft.com/en-us/dot...rp/misc/cs0101
The name class ' Tick-Counter -SB' has been repeated tiwce instead of once. i cannot see your complete code.Last edited by Emma1; 08-08-2020, 09:17 AM.
Comment
-
Originally posted by Emma1 View Posti compiled 'sTicCnt = " " + sTicCnt;' on my NT7 no error not sure what you have.
I keep getting an error that says:
The namespace 'NinjaTrader.Indicator' already contains a definition for 'sbTickCounter'
I've tried renaming the file to sbTickCounter2 and replacing all instances of 'sbTickCounter' in the file with 'sbTickCounter2', but I keep getting the same error
Comment
-
Hello EnveousColnago , thanks for your reply.
That means there is still a duplicate definition for the tick counter indicator. I recommend removing the sbTickCounter2 entirely and making a copy of the original by opening the original in the NinjaScript editor> Right click> Save As> Save under a different name. Make sure this one compiles before editing it.
Kind regards.Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Amedeus, Today, 06:06 AM
|
0 responses
1 view
0 likes
|
Last Post
![]()
by Amedeus
Today, 06:06 AM
|
||
Started by Magzor, Today, 05:42 AM
|
0 responses
4 views
0 likes
|
Last Post
![]()
by Magzor
Today, 05:42 AM
|
||
Started by rgoudie, Yesterday, 08:30 PM
|
3 responses
21 views
0 likes
|
Last Post
|
||
Started by Ousher, Yesterday, 09:24 PM
|
1 response
7 views
0 likes
|
Last Post
|
||
Started by kenz987, Yesterday, 09:23 PM
|
1 response
10 views
0 likes
|
Last Post
|
Comment