Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Current Position indicator
Collapse
X
-
Tags: None
-
Hello designer01,
Thanks for your post.
You could modify the indicator script to draw the account's quantity on the chart instead of the account's PnL value. You could assign e.Quantity to a variable in PositionUpdate, then you can use that variable in your SharpDX RenderTarget.DrawTextLayout() method.
There is no method or object that would allow drawing on a different panel. The render target provided to the indicator namespace is clipped to the panel of the indicator.
See this help guide page about PositionUpdate and sample code for getting the quantity from PositionUpdate: https://ninjatrader.com/support/help...tionupdate.htm
See the help guide page below for more information about working with SharpDX and sample code.
Using SharpDX to Custom Render Objects: https://ninjatrader.com/support/help..._rendering.htm
RenderTarget.DrawTextLayout(): https://ninjatrader.com/support/help...textlayout.htm
Let me know if I may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
Hello BrandonH
This indicator created by Ninjatrader_Jim
This indicator provides a customizable text box which displays a position’s UnRealized PnL, Realized PnL of a selected account, and the overall cash value of the account.
I have Position indicator working fine till last week but now stop show up the balance for my Live account and show only for the other account as Apex or Sim account.
When I disable Multiprovider from the option menu the indicator show up my live account balance but when I disable Multiprovider option, I don't have access to other account on account data window other of my live one.
is any help please or any other indicator show up position plus margin used for the position/s
Thank you
MikeLast edited by Mike.A; 07-26-2023, 08:22 AM.
Comment
-
Hello Mike,
Thanks for your notes.
To have access to the Apex account and Sim101 account the Multi-provider option needs to be enabled.
See this help guide page for more information about Enabling/Disabling Multi-provider option: https://ninjatrader.com/support/help...ulti-provi.htm
When you have the Multi-provider option enabled, are you also connecting to your NinjaTrader account connection?
See this help guide page about connecting to Multi-provider connections: https://ninjatrader.com/support/help...provider-c.htm
If you are having trouble connecting to your NinjaTrader account connection when the Multi-provider option is enabled, please write in to support[at]ninjatrader[dot]com and one of our Support technicians will be happy to assist you.
I am not aware of any existing indicators that show position plus position margin. However, you could search the NinjaTrader Ecosystem User App Share for a possible solution.
Ecosystem User App Share: https://ninjatraderecosystem.com/user-app-share/
This forum thread will also be open for other community members to share their insights on a possible existing indicator that accomplishes this.
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Hello BrandonH
Thank you for your reply
https://ninjatraderecosystem.com/use...lay-indicator/
This is the shortcut to the indicator which I downloaded from the NT apps
and was working fine till last week before the last NT upgrade.
Yes I am connected to My NT live account and also connected to Apex Rithmic in the same time.
Yes Multi-Provider option is enabled
This is the line on the code for long time was working till I upgrade
DrawTextLayout(RenderTarget, ChartPanel, ChartPanel.X + HorizontalOffset, ChartPanel.Y + VerticalOffset, cashValuestring, new SimpleFont("Arial", 16f) { Bold = false,Italic = false} , cashValue < 0 ? negativeBrush : positiveBrush);
the result in the chart that the code give me balance for Sim 101 or 102 or any sim which is connected to Ninjatrader live account or Apex which is connected to Rithmic but not my live account balance which is connected to NT. balance is shown balance $0.00 ( Note.: in the account data window show up my real balance correctly )
Thank you for your help
Mike
Comment
-
Hello Mike,
Thanks for your notes.
What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.0.?.?)
To clarify, you have configured a NinjaTrader connection in the Connections menu and are connected to that connection. Is that correct?
Have you modified the indicator in any way?
Do you have the indicator 'Account' property set to your NinjaTrader account when applying the indicator to a chart?
When testing the indicator on my end I am seeing the correct Account Balance displayed in the indicator for the account that I have the indicator Account property set to use. Note I am testing this on NinjaTrader 8 (8.1.1.7). See the demonstration video below.
Demonstration Video: https://brandonh-ninjatrader.tinytak...Ml8yMTgxNDQzNg
<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Hello BrandonH
What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.0.?.?)
8.1.1.7 64-bit
To clarify, you have configured a NinjaTrader connection in the Connections menu and are connected to that connection. Is that correct?
Yes and my live account balance show up correctly on Account Data Window plus the sim/s account show up correctly and I am able to reset the sim and still show the correct.
The indicator has option to show the balance for my choice account, it does show up any sim or any account accept my live account from NT.
Have you modified the indicator in any way?
The indicator was working fine for last couple years and start to show $0.00 balance after upgrade NT to the last version.
Do you think if I uninstall NT and install it again will fix the problem?
And would you please let me know how to install everything related to NT accept my backups file to start from install from scratch just in case any conflicts caused the indicator to do so or form the upgrade??
Thank you so much
Mike
Comment
-
Hello Mike,
Thanks for your notes.
Creating a clean environment could possibly resolve the behavior.
Creating a clean environment can be done by following the steps below:- Close NinjaTrader 8, and rename the "NinjaTrader 8" folder in My Documents to something like: "NinjaTrader 8 OLD"
- Uninstall NinjaTrader from the Windows Control Panel and reinstall using the installer from account.ninjatrader.com
- Import the indicator and test its' behavior.
For example, Close NinjaTrader and rename the new "NinjaTrader 8" folder to "NinjaTrader 8 NEW" and the "NinjaTrader 8 OLD" folder to "NinjaTrader 8." Then restart the platform. Simply put: NinjaTrader 8 will always load the "NinjaTrader 8" folder in My Documents.
Something you could consider before creating a clean environment is to create a backup file that does not include your NinjaScript files in the backup. Then, you could import your backup by going to Tool > Import > Backup file and import your NinjaScript files separately by going to Tools > Import > NinjaScript AddOn.
Here is a help guide page for more information about exporting a backup file: https://ninjatrader.com/support/help...up_archive.htm
Here is a help guide page for more information about importing a backup file: https://ninjatrader.com/support/help...up_archive.htm
Here is a help guide page about importing NinjaScripts: https://ninjatrader.com/support/help...ort.htm<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Hello BrandonH
I did every step you told me and installed NT 8 last version from scratch and import only this indicator just in case of conflict between indicators and still not working and gave me Balance $0.00 for my live account but for the other gave me the correct balance (Sim and Apex).
It is look like something wrong with NT update or something wrong with my account because the indicator working fine with different account/s ?????
And I think some other trader has a problem with this indicator also which is not update the PnL or Position
https://ninjatraderecosystem.com/use...lay-indicator/
Thank you for your help as always
MikeAttached FilesLast edited by Mike.A; 07-27-2023, 01:46 PM.
Comment
-
Good morning BrandonH
In my last message I attach the indicator and the original one shortcut by Ninjatrade_Jim.
It is very strange why the indicator show up any other account as sim or Apex correct balance but my live account is show $0.00 on the chart only but account data window live account is correct amount.
Do I need to get in touch with client service regarding my account to be checked?
Thank you
Mike
Comment
-
Hello ChelseaB
Thank you for your note
Sorry Just I saw this note.
Yes and Yes is only specific live account is selected in the account drop-down in the indicators window in the indicator settings.
When you turn off the multi-provider from the option menu the indicator work correctly and show up the correct amount for the live account in discuss.
it is very strange and don't know how to figure it out.
is something wrong with my live account or something wrong with my lifetime license or something wrong with the indicator itself??
Please help
Mike
Comment
-
Hello Mike,
Thanks for your notes.
Please write in to support[at]ninjatrader[dot]com to provide us with the information requested below so we may look into this matter further.- A screenshot of the Connections menu showing what connection you are connected to.
- A screenshot of the indicator settings you are using showing the account that is selected in the Account drop-down menu of the indicator's properties.
- A screenshot of the Chart window showing the indicator displaying the Account balance of the selected account.
- A screenshot of the Accounts tab of the Control Center so we can compare the output of the indicator to the selected account.
To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.I look forward to assisting further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Hello Bullero,
This no longer uses the Account drop-down in the indicator settings. Your change will instead use the Chart Trader Account.
You may have some confusion on how this indicator was intended to work. It was not intended for the Account to be selected in Chart Trader and instead meant to show the Account selected in the Indicator parameters window.
With the account selected in the Indicator parameters I am showing this is working as expected.
Below is a link to a video of the test.
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by gustavobp, Yesterday, 05:30 AM
|
2 responses
19 views
0 likes
|
Last Post
![]()
by gustavobp
Today, 07:02 AM
|
||
Started by preqc, 04-10-2022, 01:26 PM
|
2 responses
206 views
0 likes
|
Last Post
![]() |
||
Started by defa0009, 12-13-2024, 09:19 AM
|
23 responses
256 views
1 like
|
Last Post
![]()
by marcus2300
Today, 02:52 AM
|
||
Started by srtrader, 02-12-2025, 09:01 PM
|
3 responses
28 views
0 likes
|
Last Post
![]()
by rockmanx00
Yesterday, 10:21 PM
|
||
Started by bertochi, 02-14-2025, 05:25 PM
|
2 responses
33 views
0 likes
|
Last Post
![]()
by bertochi
Yesterday, 09:35 PM
|
Comment