View Full Version : ATM Strategy, Stop Strategy -Trailing Stop - Auto BE
FredMorgan
09-27-2009, 05:57 AM
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?
NinjaTrader_Ben
09-27-2009, 11:29 AM
Hello,
There are always limitations, but generally it takes most inputs. I suggest looking at this link and all of the associated pages:
http://www.ninjatrader-support.com/HelpGuideV6/Overview13.html
The connect to: File>connect>Simulated data feed, and practice.
Also you can go to an online event that goes through all of this:
http://www.ninjatrader.com/webnew/trading_online_events.htm
MrTicks
03-01-2010, 05:05 AM
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?
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?
NinjaTrader_RyanM
03-01-2010, 11:51 AM
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. (http://www.ninjatrader-support2.com/vb/showthread.php?t=19148)
MrTicks
03-01-2010, 12:47 PM
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. (http://www.ninjatrader-support2.com/vb/showthread.php?t=19148)
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.
I appreciate the response and your time though! Thanks.
NinjaTrader_RyanM
03-01-2010, 03:06 PM
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. (http://www.ninjatrader-support2.com/vb/showthread.php?t=3222)
MrTicks
03-01-2010, 03:22 PM
Thanks for the link.
luxurious_04
08-25-2010, 10:25 PM
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.
NinjaTrader_Bertrand
08-26-2010, 04:52 AM
Please post your issues in one thread only, I already replied to others you opend on this topic - thanks.