-thanks
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
Programatically pick up result of ATM trade
Collapse
X
-
Hello laparker,
Results of an ATM strategy can only be accessed from within Strategy. You'll then use the GetATM() functions like the one below:
There is a built in Strategy you can use for help on accessing an ATM strategy within a NinjaScript strategy. See the SampleATMStrategy as well as the reference sample below for help with this:
Ryan M.NinjaTrader Customer Service
-
Thanks for the reply. It's not quite what I want to do. I want to enter trades manually and exit with an ATM strat. My ideal right now would be:
1 Trade right off the chart using Chart Trader
2 Use an ATM strategy
3 Update the strat parameters from an indicator
4 Pick up the trade performance and write it to a file.
1 and 2 I can do. 3 I have read is not possible. 4 the GetATM() methods look like they only work in a strategy, not an indicator.
Is there another way of attacking this?
-thanks
Comment
-
Hello,
It sound like you're trying a combination of discretionary entries and automatic exits. The system is not setup for this except for the standard ATM settings that you can modify within the GUI.
You can definitely code in logic that can change the profit targets and stop losses based on an indicator, but combining this with the discretionary entries isn't possible.
You're right that the GetATM() functions can only be used in a strategy.Ryan M.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
4 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
47 views
0 likes
|
Last Post Today, 12:28 AM |
Comment