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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
65 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
149 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment