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
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
-
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:
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
-
Originally posted by agafon2 View PostThis code doesn't work:
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
-
Originally posted by koganam View PostWhat is the error in your log?
Look at this picture:
SaveImg позволит вам загрузить фото или картинку бесплатно и без регистрации
Comment
-
Originally posted by agafon2 View Post
Comment
-
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 rocketman7, Today, 01:00 AM
|
0 responses
1 view
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
||
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
27 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
32 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:33 PM
|
||
Started by wzgy0920, 04-23-2024, 09:53 PM
|
2 responses
74 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:29 PM
|
||
Started by Kensonprib, 04-28-2021, 10:11 AM
|
5 responses
193 views
0 likes
|
Last Post
by Hasadafa
Yesterday, 10:19 PM
|
Comment