Thank you in advance for any guidance you might provide.
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
Can NinjaScript Strategy Properties be Hidden?
Collapse
X
-
Can NinjaScript Strategy Properties be Hidden?
I'm running NinjaTrader version 8.0.23.2 64-bit connected to Kinetick (via IQFeed) and Interactive Brokers (via IB Gateway). I have a custom NinjaScript Strategy that I run from the Control Center Strategies tab. When adding a New Strategy to the tab, the Strategies form opens and displays a sizeable number of built-in Properties. Re. these built-in Properties, are NinjaScript statements available to remove them from the form? If yes, which Properties are removable, and what are the NinjaScript statements to remove them?
Thank you in advance for any guidance you might provide. -
Hello NtFan,
Thank you for your post.
Yes, that is possible if you know the name of the property you wish to remove from the properties grid. You'd need to use a TypeConverter to do so. I've attached an example that's just a modified version of the built in Sample MA Crossover that removes the default Slippage property from the properties grid. You can also take a look at this example from our help guide for further guidance on using TypeConverters to control how properties are shown: https://ninjatrader.com/support/help...r_to_custo.htm
Please let us know if we may be of further assistance to you.Attached FilesKate W.NinjaTrader Customer Service
-
Hi Kate,
What you demonstrated is simple and powerful; thank you very much! I was able to find the Name for each Property Descriptor that is relevant to my situation, except for one: "Break on EOD." My supposition is that the Property Descriptor for "Break on EOD" isn't exposed at the current time; if you have any insight regarding this, though, I'd much appreciate hearing back from you about it.
In case others have an interest, I've provided below a list of the Property Descriptor Names (and how they're labelled in the Strategies form) that work for me.
Thanks again,
NTFan
***
//Data Series...
PDEX_InstrumentOrInstrumentList //Instrument
PDEX_MarketDataType //Price based on
PDEX_BarsPeriodType //Type
PDEX_Value //Value
//Time frame...
DaysToLoad //Days to load
TradingHoursInstance //Trading hours
//Setup...
Calculate //Calculate
Name //Label
MaximumBarsLookBack //Maximum bars look back
BarsRequiredToTrade //Bars required to trade
StartBehavior //Start behavior
//Historical fill processing...
OrderFillResolution //Order fill resolution
IsFillLimitOnTouch //Fill limit orders on touch
Slippage //Slippage
//Order handling...
IsExitOnSessionCloseStrategy //Exit on session close
StopTargetHandling //Stop & target submission
//Order properties...
TimeInForce //Time in force
***
- Likes 1
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by fx.practic, 10-15-2013, 12:53 AM
|
5 responses
5,406 views
0 likes
|
Last Post
by Bidder
Today, 12:22 AM
|
||
Started by Shai Samuel, 07-02-2022, 02:46 PM
|
4 responses
98 views
0 likes
|
Last Post
by Bidder
Today, 12:11 AM
|
||
Started by DJ888, Yesterday, 10:57 PM
|
0 responses
8 views
0 likes
|
Last Post
by DJ888
Yesterday, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
160 views
0 likes
|
Last Post Yesterday, 10:23 PM | ||
Started by Belfortbucks, Yesterday, 09:29 PM
|
0 responses
9 views
0 likes
|
Last Post
by Belfortbucks
Yesterday, 09:29 PM
|
Comment