• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.


No announcement yet.

Partner 728x90


Help:toggle button indi need to switch logic to ref. dataseries

  • Filter
  • Time
  • Show
Clear All
new posts

  • Help:toggle button indi need to switch logic to ref. dataseries

    Hi.. description for this indicator is located on last post of page 2 in NinjaScript file sharing>Version 7 miscellaneous

    What it does is plots buttons/tabs on your chart as a indicator, you then link the buttons to your workspaces so you can toggle thru your workspaces quickly.

    I want to change workspaces to data series(bar types)

    I use some custom bar types so when toggling thru time frames I have to manually go to data setting to switch to my custom bar types. Where if I could convert the logic of how this indicator references workspaces over to data series then I could use buttons to reference my custom bar types along with standard data series meaning min>tick>range etc. Its a slick way of toggling time frames. I know of no other way to reference my custom bar types thru a hotkey. Plus everyone knows if you type 1T instead of 1M in NT7 on chart function what happens(locks up NT7). Having these buttons preset would eliminate typing errors plus allow custom bar types to easily toggle thru time frames while watching for setups.

    suggestions on code, Im not a coder so if someone could switch over to make a new indicator this would be awesome, If not if I know code logic thru snippet I ll try to do it myself. I dont think it will require much effort.

    thx for suggestions and replies in advance
    Attached Files
    Last edited by Rad4633; 07-08-2015, 11:00 AM.

  • Rad4633
    Sorry for the confusion Paul, to clarify i have no problem switching from 1 minute to a tick chart where I have a issue is when I use shortcut on chart popup to select(1M-1minute,2000T-2000tick,etc). Meaning if I want to look at a 1 minute then switch to a 1000tick but I accidentally type 1T =1tick then NT7 cant process this much data on that small time frame so a restart is fastest way to fix. If I had buttons (1000ticks) (1minute) (5 minute) (Rjaynogap10range) (30Minute) (1day) that was connected to that bars data series I could simply toggle button push and no worries with a typo. and I would also have a shortcut button for custom bar types

    thx for the reply and I knew this was outside normal support was hoping a coder could give some input....

    Leave a comment:

  • NinjaTrader_PaulH
    Hello Rad4633,

    Thanks for your post.

    I'm not familiar with the 1M 1T issue and have no issue switching from one to the other. For reference with 5 days of 1 minute data to change to 1 tick took less than 1 second, same going back. If you have a lot of days of data and a several indicators that need to recalc that could certainly add time.

    As far as the code, regrettably this is unsupported code work.

    Perhaps other in the community will participate in this project.

    Leave a comment:

Latest Posts


Topics Statistics Last Post
Started by rickyblah12, Today, 01:01 PM
1 response
Last Post Erwin Beckers  
Started by dadarara, Today, 12:18 PM
0 responses
Last Post dadarara  
Started by joemiller, Today, 07:33 AM
2 responses
Last Post joemiller  
Started by TheGameOfProbabilities, 07-18-2019, 06:56 AM
7 responses
Last Post DaveS
by DaveS
Started by claxxical, Yesterday, 10:00 PM
0 responses
Last Post claxxical