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
Adding TTM Squeeze Into Strategy
Collapse
X
-
Adding TTM Squeeze Into Strategy
I'm trying to have the strategy enter a long when the squeeze is positive so it'd be reading the dots and which direction the bars are in. I'm struggling to get this into code.Tags: None
-
Hello trader_trash,
Welcome to the NinjaTrader forums.
Basically only plots can be used from an indicator in another script. Drawing objects aren't as easy to find or use.
Is this indicator making a plot and setting plot values?
Plots appear in the Data Box when middle mouse clicking or by right-clicking the chart.
Are you receiving errors when calling the indicator?Chelsea B.NinjaTrader Customer Service
-
the script for the squeeze runs perfectly fine, the ttm has alerts built in when it's squeezing. I'm trying to add a custom system so when the squeeze happens do "x" in a strategy. But I can't figure out how to code in to call on something like that. I can only see how to call on fixed integers and not another defined thing.
Comment
-
Hello trader_trash,
So to call an indicator the format is:
IndicatorName(parameters).PlotName[barsAgo index]
For example if I wanted to print the macd avg plot on the current bar:
Print(MACD(12, 24, 16).Avg[0]):
Below is a link to a forum post with helpful information about getting started with NinjaScript.
Have you attempted calling the indicator name in a script?Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pechtri, 06-22-2023, 02:31 AM
|
10 responses
124 views
0 likes
|
Last Post Today, 12:03 AM | ||
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Yesterday, 08:25 PM
|
||
Started by ScottWalsh, Yesterday, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Yesterday, 07:40 PM
|
||
Started by olisav57, Yesterday, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Yesterday, 07:39 PM
|
||
Started by trilliantrader, Yesterday, 03:01 PM
|
2 responses
22 views
0 likes
|
Last Post
by helpwanted
Yesterday, 07:25 PM
|
Comment