NexusFi: Find Your Edge


Home Menu

 





need some ninjascript help


Discussion in Traders Hideout

Updated
    1. trending_up 701 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 hachot 
Ljubljana Slovenija
 
Experience: Master
Platform: NinjaTrader
Broker: NTB
Trading: ES
Posts: 36 since Oct 2014
Thanks Given: 26
Thanks Received: 5

Anyone knows why this ninjascript function that i have in AB tool bar buttons is not working when called from second tab, which is different wfrom which the indicator is on.

private void LineOnCloseFunc()
{
if (ChartBars.Properties.ChartStyleType == ChartStyleType.CandleStick)
{
ChartBars.Properties.ChartStyleType = ChartStyleType.LineOnClose;
}

else if (ChartBars.Properties.ChartStyleType == ChartStyleType.LineOnClose)
{
ChartBars.Properties.ChartStyleType = ChartStyleType.CandleStick;
}
chartWindow.ActiveChartControl.InvalidateVisual();
ForceRefresh();
}

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Server CPUs and Multicharts 14 or 15 limits
MultiCharts
Seeking Insights on Day Trading Options on Futures
Options
Has anyone taken The Mentor Program from The Trading Gam …
Trading Reviews and Vendors
Multi-Data Strategy Questions
MultiCharts
NinjaTrader indicator for last bar percentages
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Vinny E-Mini & Algobox Review TRADE ROOM
8 thanks
Futures spread trading grains education sources?
6 thanks
Just another trading journal: PA, Wyckoff & Trends
4 thanks
Wheres the videos?
3 thanks
Blue wave trading review
2 thanks
  #2 (permalink)
 SamirOfSalem   is a Vendor
 
Posts: 76 since Jan 2020
Thanks Given: 23
Thanks Received: 45


hachot View Post
Anyone knows why this ninjascript function that i have in AB tool bar buttons is not working when called from second tab, which is different wfrom which the indicator is on.

private void LineOnCloseFunc()
{
if (ChartBars.Properties.ChartStyleType == ChartStyleType.CandleStick)
{
ChartBars.Properties.ChartStyleType = ChartStyleType.LineOnClose;
}

else if (ChartBars.Properties.ChartStyleType == ChartStyleType.LineOnClose)
{
ChartBars.Properties.ChartStyleType = ChartStyleType.CandleStick;
}
chartWindow.ActiveChartControl.InvalidateVisual();
ForceRefresh();
}

Hi hatchot.

Something similar was addressed by NinjaTrader Support some time ago.
See if this post on the NinjaTrader forum point you in the right direction.

https://forum.ninjatrader.com/forum/historical-beta-archive/version-8-beta/83991-custom-button-and-a-few-chart-tabs?p=770197

Reply With Quote
Thanked by:




Last Updated on March 27, 2024


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Sitemap - Downloads - Top
no new posts