NexusFi: Find Your Edge


Home Menu

 





need some ninjascript help


Discussion in Traders Hideout

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




 
Search this Thread

need some ninjascript help

  #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?
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Any futures traders in Texas looking to give back to tho …
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
20 thanks
My NQ Trading Journal
19 thanks
Just another trading journal: PA, Wyckoff & Trends
17 thanks
Tao te Trade: way of the WLD
13 thanks
HumbleTraders next chapter
9 thanks
  #2 (permalink)
 SamirOfSalem   is a Vendor
 
Posts: 74 since Jan 2020
Thanks Given: 23
Thanks Received: 44


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 - Downloads - Top
no new posts