Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ATR -Trailing Stops
Collapse
X
-
Thanks PrTester for the indicator. Can you please tell how you use it to trade.
I read about Wilder's volatility but do not understand it totally. Can you point me to any link/resource where I can get some good information on it.
How do you use the other bottom indicators marked on your chart, in combination with the Wilders ?
Thanks
RK
PS: Sorry if I am asking any obvious/basic questions.
-
Originally posted by RK_trader View PostThanks PrTester for the indicator. Can you please tell how you use it to trade.
I read about Wilder's volatility but do not understand it totally. Can you point me to any link/resource where I can get some good information on it.
How do you use the other bottom indicators marked on your chart, in combination with the Wilders ?
Thanks
RK
PS: Sorry if I am asking any obvious/basic questions.
RK_trader,
This indicator would help you to "let your profit run" if your trade is correct you can place your stop order in the ATR Trailing value, it use the(ATR) indicator based in the Wilder's volatility. you can change, the parameters - ATR period (Default = 14) and Times to multiply the ATR (Wilders's)(Default = 3 Times),
Regards
"
Interpretation
Wilder’s Volatility System determines market volatility by calculating a smoothed average of the market price’s true range. True Range, developed by Welles Wilder to deliver a more realistic method to calculate price activity, is an indicator that measures price activity and directional movement and is defined as the distance a price moves per increment of time, e.g. from the lowest price to the highest price in a day. This system measures the trend in volatility in the base instrument, according to the True Range concept. A rising trend line shows a volatility increase in the security. A falling trend line shows a reduction in the instrument’s volatility. The ordinate values are not relevant.
Wilder’s Volatility System alone cannot trigger any trade signals, which means it must be used in conjunction with other indicator systems. A popular use is, for example, the Volatility Breakout System. Average True Range (ATR) represents the foundation for this. The aim of this system is to open a long position, as soon as the base instrument rises above its usual fluctuation margin and a short position as soon as it falls below its usual fluctuation margin.
The Volatility assists the trader in determining the market’s risk potential, as well as buy and sell opportunities. More volatile markets offer a greater risk/reward potential. There are traders who readily take on the risk for the potential of a greater profit, while, at the same time, there are traders who do not want to take such a risk.
"
Comment
-
Thanks PRTester for the information. I appreciate it.
Once you are in a trade, in Ninja can one make this as a "trailing stop strategy", so that in the superdom it automatically trails the stop based on this trailing stop strategy. How can I do this?
Thanks
RK
Comment
-
ATR Stop
I have the same question: How do you create an automated strategy that uses a trailing stop base on the ATR? It could be 1ATR or 0.5ATR, whatever it is, what is the procedure to use it?
I have tried to insert it in the code as user variable but it did not work. Please help
Another question: if you want to use an automated strategy only in real time how do you write the code so that only one open order is sent on the last bart (the active bar of the day in the daily chart) and not in all the other bars?
Thanks
Comment
-
Originally posted by luitom View PostI have the same question: How do you create an automated strategy that uses a trailing stop base on the ATR? It could be 1ATR or 0.5ATR, whatever it is, what is the procedure to use it?
I have tried to insert it in the code as user variable but it did not work. Please help
Another question: if you want to use an automated strategy only in real time how do you write the code so that only one open order is sent on the last bart (the active bar of the day in the daily chart) and not in all the other bars?
Thanks
Hope it help,
Regards
Comment
-
Once you find your entry condition and enter the trade in a NinjaScript Strategy the use of SetTrailStop() will do handle the rest.
In addition to the reference sample please also take note of the documentation on the use of SetTrailStop() here: http://www.ninjatrader-support.com/H...TrailStop.html
To make your order real-time only please use this code snippet at the beginning of the OnBarUpdate() method:
Code:if (Historical) return;
Josh P.NinjaTrader Customer Service
Comment
-
traling stop code
Thanks for your inputs. As I have said I tried to use a variable for the trailing stop but it does not seem to work. I cannot figure out what is wrong below
protected override void Initialize()
{
Variable1 = ((ATR(14)[1] * 0.25) * 100);
SetTrailStop("", CalculationMode.Ticks, Variable1, false);
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (Open[0] < Close[1])
{
EnterLongStopLimit(DefaultQuantity, Close[1]+ (ATR(14)[1]* 0.125), Close[1], "");
Comment
-
When you want to set dynamic trail stops like what you are doing you cannot do it in the Initialize() method. That method is only executed once at the very beginning when you load the indicator and it does not know bar indexing so you cannot refer to indicators from there.
You will need to move your logic into the OnBarUpdate() method. If you don't want it constantly reupdating your SetTrailStop() use a bool variable to only allow it to set itself once and never again.
Code:if (definedTrailStop == false) { Variable1 = ((ATR(14)[1] * 0.25) * 100); SetTrailStop("", CalculationMode.Ticks, Variable1, false); definedTrailStop = true; }
Josh P.NinjaTrader Customer Service
Comment
-
RK_trader,
I don't try it in an ATM strategy, but I have sucess in an automatic ninjascript strategy, This would help you http://www.ninjatrader-support.com/v...ead.php?t=3222
Best Regards
Comment
-
Thanks PrTester.
The link you provided is going out of Ninja. Were you trying to point to this link:
Thanks
RK
Comment
-
Originally posted by RK_trader View PostThanks PrTester.
The link you provided is going out of Ninja. Were you trying to point to this link:
Thanks
RK
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Tim-c, Today, 02:10 PM
|
1 response
7 views
0 likes
|
Last Post Today, 02:52 PM | ||
Started by Taddypole, Today, 02:47 PM
|
0 responses
2 views
0 likes
|
Last Post
by Taddypole
Today, 02:47 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
4 responses
50 views
0 likes
|
Last Post
by chbruno
Today, 02:38 PM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
10 responses
399 views
1 like
|
Last Post
by beobast
Today, 02:35 PM
|
||
Started by lorem, Yesterday, 09:18 AM
|
5 responses
25 views
0 likes
|
Last Post Today, 12:29 PM |
Comment