Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Questions about CustomPlotSample indicator
Collapse
X
-
Hello agafon2,
This would require overloading the Plot method which we would not be able to support, but you may view the source code of the "CustomPlotSample" Indicators and see how they are drawing the box. There is comments to help understand what is being done as well. To view the source code of the "CustomPlotSample" indicator you may go to Tools -> Edit NinjaScript -> and double click on the "CustomPlotSample".JCNinjaTrader Customer Service
-
How to draw a rectangle no on chart exactly, but in separate indicator window (New Panel)
SaveImg позволит вам загрузить фото или картинку бесплатно и без регистрации
Comment
-
Look up DrawOnPricePanel() in NT Help.Originally posted by agafon2 View PostHow to draw a rectangle no on chart exactly, but in separate indicator window (New Panel)
http://saveimg.ru/show-image.php?id=...0f29879fae27f0
Comment
-
This code doesn't work:
Why?Code:protected override void Initialize() { DrawOnPricePanel = false; Overlay = false; CalculateOnBarClose = false; } /// <summary> /// Called on each bar update event (incoming tick) /// </summary> protected override void OnBarUpdate() { if(Historical) { DrawRectangle("1"+CurrentBar.ToString(), true, 1, 0, 0, 0.2, Color.Red, Color.Empty, 0); } //DrawRectangle("2"+CurrentBar.ToString(), false, 1, 0.2, 0, 0.4, Color.Red, Color.Empty, 0); //DrawRectangle("3"+CurrentBar.ToString(), false, 1, 0.4, 0, 0.6, Color.Red, Color.Empty, 0); //DrawRectangle("4"+CurrentBar.ToString(), false, 1, 0.4, 0, 0.6, Color.Red, Color.Empty, 0); // Use this method for calculating your indicator values. Assign a value to each // plot below by replacing 'Close[0]' with your own formula. }
Comment
-
What is the error in your log?Originally posted by agafon2 View PostThis code doesn't work:
Why?Code:protected override void Initialize() { DrawOnPricePanel = false; Overlay = false; CalculateOnBarClose = false; } /// <summary> /// Called on each bar update event (incoming tick) /// </summary> protected override void OnBarUpdate() { if(Historical) { DrawRectangle("1"+CurrentBar.ToString(), true, 1, 0, 0, 0.2, Color.Red, Color.Empty, 0); } //DrawRectangle("2"+CurrentBar.ToString(), false, 1, 0.2, 0, 0.4, Color.Red, Color.Empty, 0); //DrawRectangle("3"+CurrentBar.ToString(), false, 1, 0.4, 0, 0.6, Color.Red, Color.Empty, 0); //DrawRectangle("4"+CurrentBar.ToString(), false, 1, 0.4, 0, 0.6, Color.Red, Color.Empty, 0); // Use this method for calculating your indicator values. Assign a value to each // plot below by replacing 'Close[0]' with your own formula. }
Comment
-
DefaultOriginally posted by koganam View PostWhat is the error in your log?
Look at this picture:
SaveImg позволит вам загрузить фото или картинку бесплатно и без регистрации
Comment
-
Sorry, that does not tell me anything. Please tell us the text of the error message.Originally posted by agafon2 View Post
Comment
-
The logs show what the issue is, if any. If you have to resize the columns in order to read the text, then that is what you have to do, though actually on my screen, the text of the logged message is already, and has always been, the largest column.Originally posted by agafon2 View PostHow to get this text? Is it in Log window or not?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
647 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
368 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
571 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment