NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-14-2012, 03:39 AM   #1
to_ankit
Junior Member
 
Join Date: Jan 2012
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Question Price Target (target 1/2/3) and StopLoss Indicator

Hi guys,

I'm from India and I have been using Ninja trader for past 1 year. I have few indicator incorporated on my charts which helps me to enter in a trade (buy or sell), however, one important thing missing is the TARGET PRICE AND STOP LOSS indicator.

I have seen few posts which indicates some calculation like
TARGET = ATR(14)*2 or similar . Will anybody help me out?

Looking for an answer! Thanks!
to_ankit is offline  
Reply With Quote
Old 02-14-2012, 03:45 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 25,113
Thanks: 408
Thanked 1,528 times in 1,494 posts
Default

Welcome to our forums here - have you looked already through our sharing section where users post custom developed scripts? There's an ATR trailing indicator for example that could be likely modified to suit your needs - http://www.ninjatrader.com/support/f...rch=ATR&desc=1
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 02-14-2012, 04:28 AM   #3
to_ankit
Junior Member
 
Join Date: Jan 2012
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

Dear Bertrand,

Yes, I did some research in finding some pre-built indicator for Target and Stoploss, however, couldn't find any.

Would appreciate if you could help me out finding the one!
to_ankit is offline  
Reply With Quote
Old 02-14-2012, 04:34 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 25,113
Thanks: 408
Thanked 1,528 times in 1,494 posts
Default

Quote:
Originally Posted by to_ankit View Post
Dear Bertrand,

Yes, I did some research in finding some pre-built indicator for Target and Stoploss, however, couldn't find any.

Would appreciate if you could help me out finding the one!
The ATR Trailing stop one would be for example one you can check out.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 02-14-2012, 04:48 AM   #5
to_ankit
Junior Member
 
Join Date: Jan 2012
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

Pls post the link
to_ankit is offline  
Reply With Quote
Old 02-14-2012, 04:50 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 25,113
Thanks: 408
Thanked 1,528 times in 1,494 posts
Default

Please click on my link shared in post 2 - the ATR trailing indicator is then found under the 2nd entry in the list you would see.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 02-14-2012, 06:04 AM   #7
to_ankit
Junior Member
 
Join Date: Jan 2012
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for the link!

But ATR trailing SL indicator shows only stoploss... Is there any indicator which can show the target price based on ATR(14) (lets say for last 20 candle).
to_ankit is offline  
Reply With Quote
Old 02-14-2012, 06:12 AM   #8
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 25,113
Thanks: 408
Thanked 1,528 times in 1,494 posts
Default

You're welcome - I would not be aware of an indicator specifically designed for ATR profit targets shared, you can though use the one provided as starting point for your own works. Another might be looking into Bollinger Bands or Keltner Channels - these studies can help giving your targets as well, Keltner Channels would be based on the ATR, so a multiple of that figure would be added to an Moving Average to arrive at an upper range estimate.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 02-16-2012, 06:57 AM   #9
wldman
Junior Member
 
Join Date: Feb 2012
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
Default

For primary targets I use a modified Keltner Channel. Take a look at the 36 period Keltner Channel using a factor of 3 times the 36 period ATR.

I imagine someone could code that as a hard exit if that is what you like.
wldman is offline  
Reply With Quote
Old 02-25-2012, 12:19 AM   #10
to_ankit
Junior Member
 
Join Date: Jan 2012
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello Wldman,

Can you pls share the Keltner channel indicator that you use for Profit Tgts?

Will be a gr8 help!

Thanks in advance.
to_ankit is offline  
Reply With Quote
Old 02-25-2012, 11:13 AM   #11
wldman
Junior Member
 
Join Date: Feb 2012
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
Default

Sure.

The specific indie I use for that is available at another website. I am not sure If I am allowed by NT to post it here or if I'm allowed by the author to share it.

But, it is a straight forward Keltner Channel with the settings referenced earlier.

For some reason I can not log in to NT right now to grab some pics...but I will post those for you with an explanation of my typical use. DB
wldman is offline  
Reply With Quote
Old 02-25-2012, 11:42 AM   #12
wldman
Junior Member
 
Join Date: Feb 2012
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
Default

here are the nt settings for the 2 instances of anakeltnerchannel that I use on this method to target exits.

http://screencast.com/t/7k8A5LLlk1R

You can see those on the chart as the blue-ish dashed line and the grey dotted line.

http://screencast.com/t/Gv2ka8Xfs

One way you could use this is demonstrated here.

http://screencast.com/t/HUeLxYVv

Where the green arrows designate long entry and the blue boxes show potential exits at the modified keltner. The 2nd and 3rd example show what could be a primary at the inner band and a secondary exit at the outer band.

Is that what you are asking?
wldman is offline  
Reply With Quote
Old 02-26-2012, 10:49 AM   #13
to_ankit
Junior Member
 
Join Date: Jan 2012
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi Wldman,

Thanks for your prompt reply!

I'm really a non-technical guy. I just need an indicator which tells me the target 1 and target 2 whenever a buy or sell signal generated. I use "SuperTrend V2.4" for buy and sell signal and this indicator tells me the SL and trailing SL but not the targets.

If this is what you are referring to, then YES I'm looking for it.

Can you pls post the indicator so that I can test the results?

Thanks again !
to_ankit is offline  
Reply With Quote
Old 02-27-2012, 01:38 PM   #14
to_ankit
Junior Member
 
Join Date: Jan 2012
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi,

I'm not sure whether I can post Amibroker indicator here or not.

But regarding my Profit target indicator, I have Amibroker (AFL code) indicator which is used for profit 1 & 2.

Can anyone help me here to convert AFL code to NinjaCode? If yes, pls let me know. I'm seeking a sincere help here.

Thanks & Regards
to_ankit is offline  
Reply With Quote
Reply

Tags
stoploss, target price

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Price Target Indicator? maxreturn Charting 1 01-16-2011 09:05 PM
Stoploss/Profit Target backtesting possible? BerndS Strategy Analyzer 3 05-17-2010 06:30 AM
Session, StopLoss, Profit target Baruch Strategy Development 7 04-07-2009 07:13 AM
Profit Target and Stoploss Razor_Trader Strategy Development 2 06-10-2008 02:51 PM
Stoploss and target - on MB trading brad Miscellaneous Support 1 08-30-2005 07:52 AM


All times are GMT -6. The time now is 12:14 AM.

FULL RISK DISCLOSURE: Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.