Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ATM Strategy, Stop Strategy -Trailing Stop - Auto BE
Collapse
X
-
ATM Strategy, Stop Strategy -Trailing Stop - Auto BE
Does anyone have a strategy with all these working together. I need to understand the logic behind the numbers to use (preferable Forex, but any logical explanation in any market will do). Are there any limitations?Last edited by FredMorgan; 09-27-2009, 06:00 AM.Tags: None
-
Did you ever get one? There are no samples of actual working strategies that have ATM code and order conditions attached. If you did could I see the code please?Originally posted by FredMorgan View PostDoes anyone have a strategy with all these working together. I need to understand the logic behind the numbers to use (preferable Forex, but any logical explanation in any market will do). Are there any limitations?
Comment
-
Hello,
Unfortunately we don't have an article that covers all the logic behind ATM strategies.
We do have the built in SampleATMStrategy which provides help on integrating an ATM strategy into your NinjaScript automated strategy.
When going this route, the reference sample below can help:
Getting PnL from an ATM strategy.Ryan M.NinjaTrader Customer Service
Comment
-
Hello, thanks for the response. I was looking for an actual example of a working strategy with an ATM buy condition in it. I've used the in built sample to cobble together some strategies but I usually get various errors in the log. It runs the strat but it's not clean. Was hoping to get code for one that works with no errors and then just modify it with my buy conditions.Originally posted by NinjaTrader_RyanM View PostHello,
Unfortunately we don't have an article that covers all the logic behind ATM strategies.
We do have the built in SampleATMStrategy which provides help on integrating an ATM strategy into your NinjaScript automated strategy.
When going this route, the reference sample below can help:
Getting PnL from an ATM strategy.
I appreciate the response and your time though! Thanks.
Comment
-
Here's a reference sample that discusses how to code some of the ATM strategy concepts:
Modifying the price of stop loss and profit targets.Ryan M.NinjaTrader Customer Service
Comment
-
Help please....
Does anyone there who could help in this problem. I want to call ATM strategy template in a ninja script and I have already a ATM template in the Super DOM now my problem is it will work I try to backtest it. Here is my code below:
if (CrossAbove(SMA(SMA1), SMA(SMA2), 1) && orderIdL.Length == 0 && atmStrategyIdL.Length == 0)
{
atmStrategyIdL = GetAtmStrategyUniqueId();
orderIdL = GetAtmStrategyUniqueId();
AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Market, 0, 0, TimeInForce.Day, orderIdL, "CL_Scalp", atmStrategyIdL);
}
else if (CrossBelow(SMA(SMA1), SMA(SMA2), 1) && orderIdS.Length == 0 && atmStrategyIdS.Length == 0 )
{
atmStrategyIdS = GetAtmStrategyUniqueId();
orderIdS = GetAtmStrategyUniqueId();
AtmStrategyCreate(Cbi.OrderAction.Sell, OrderType.Market, 0, 0, TimeInForce.Day, orderIdS, "CL_Scalp", atmStrategyIdS);
}
Thanks in advance.Last edited by luxurious_04; 08-26-2010, 02:03 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
657 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
373 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment