Specifically, if the ATM strategy called contains a 3-level stop-loss scheme, does it operate in tick x tick basis if called from a strategy operating in OnBarUpdate mode?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Calling an ATM Strategy Within NinjaScript
Collapse
X
-
Calling an ATM Strategy Within NinjaScript
When an existing ATM strategy is called within a Ninja Script strategy which is set to Update OnBarClose=True, does the ATM strategy operate in tick x tick mode or in 'bar' mode?
Specifically, if the ATM strategy called contains a 3-level stop-loss scheme, does it operate in tick x tick basis if called from a strategy operating in OnBarUpdate mode?Tags: None
-
-
Please see this link here for more info - http://www.ninjatrader-support.com/H...trategies.html
A complete coding example can be found in the per default installed 'SampleAtmStrategy' in NinjaTrader.
Comment
-
Help please....
Anyone there that could me in this problem. I already build an ATM strategy template in the Super Dom and then I want to call this into my ninja script strategy. But when I tried to backtest this strategy it will worked properly. Here is my code below:
if (CrossAbove(SMA(SMA1), SMA(SMA2), 1))
{
if (orderIdL.Length == 0 && atmStrategyIdL.Length == 0)
{
atmStrategyIdL = GetAtmStrategyUniqueId();
orderIdL = GetAtmStrategyUniqueId();
orderBarL = CurrentBar;
AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Market, 0, 0, TimeInForce.Day, orderIdL, "CL_Scalp", atmStrategyIdL);
}
}
else if (CrossBelow(SMA(SMA1), SMA(SMA2), 1) )
{
if (orderIdS.Length == 0 && atmStrategyIdS.Length == 0)
{
atmStrategyIdS = GetAtmStrategyUniqueId();
orderIdL = GetAtmStrategyUniqueId();
orderBarS = CurrentBar;
AtmStrategyCreate(Cbi.OrderAction.Sell, OrderType.Market, 0, 0, TimeInForce.Day, orderIdS, "CL_Scalp", atmStrategyIdS);
}
}
Thanks in advance....
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
67 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
60 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment