NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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 06-25-2012, 10:57 AM   #1
firstbrain
Junior Member
 
Join Date: Feb 2008
Posts: 5
Thanks: 0
Thanked 1 time in 1 post
Default Parallel Indicator Lines

Hi,
since I'm don*t have any experience regarding programming I'm looking for help (code if possible) for the following problem:
I want to draw parallel lines (as much as I like) in equidistance (i. e. all lines are 10 ticks apart) to an indicator like the sma, ema etc. and to each other.
So basically the code should do the following: draw 5 (variable 1 or input 1) lines on each side of the sma (14) (14 = variable 2 or input 2) in the distance of 10 (variable 3 or input 3) ticks to the sma, means line 1 is 10 ticks away either side, line 2 is 20 ticks away either side, line 3 is 30 ticks awy either side etc.
Any help/code is highly appreciated.
Thank you,
firstbrain
firstbrain is offline  
Reply With Quote
Old 06-25-2012, 11:50 AM   #2
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

firstbrain,

I would suggest going through some of our educational resources here.

http://www.youtube.com/watch?v=JZpo01eSO9c

http://www.ninjatrader.com/support/h..._resources.htm
NinjaTrader_AdamP is offline  
Reply With Quote
Reply

Tags
lines, parallel

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
Parallel optimization jjmmg Strategy Development 1 11-12-2010 05:20 AM
Parallel Trendlines rtj4201 Charting 3 12-17-2009 04:56 AM
parallel line zaelias Charting 2 09-23-2009 02:42 AM
How to keep trend lines parallel Truth Charting 1 12-01-2008 05:12 AM
Drawing parallel lines DORAIRAJ_S@HOTMAIL.COM Indicator Development 5 11-25-2007 04:49 PM


All times are GMT -6. The time now is 08:26 AM.