NinjaTrader Support Forum  

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

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-07-2008, 09:37 PM   #1
fy260498
Senior Member
 
Join Date: Jun 2008
Posts: 107
Thanks: 0
Thanked 0 times in 0 posts
Question Test of difference within limits...

Hi...
Just wonder if someone can help me in the following objective while I am trying to develop a strategy and see how it works.

In simple language this is what I am trying to achieve:

CONDITION:
if Difference of (Indicator A and Indicator B) lies within 0 to maximum 0.5
and if Difference of (Indicator B and Indicator C) lies within 0 to maximum 0.5

ACTION:
Do Something

EXAMPLE:
Indicator A = 137.54
Indicator B = 137.13
Indicator C = 137.08

TEST:
Indicator A - Indicator B = 0.41 (Between 0 and 0.5 so TRUE)
Indicator B - Indicator C = 0.05 (Between 0 and 0.5 so TRUE)

OUTCOME:
Action to be executed

Any help would be highly appreciated.

Thanks,
Yusuf SHAIKH
fy260498 is offline  
Reply With Quote
Old 08-07-2008, 11:01 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

As last resort a certified NinjaScript consultant is at your help: http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

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
Internal Order Handling Rules for Stop Limits wayneFH Strategy Development 7 06-14-2008 06:39 PM
EMA Value Difference dwalls Indicator Development 1 06-05-2008 10:21 PM
What is the difference between the 2 cases? henry.omd Strategy Development 1 12-30-2007 04:25 PM
MAX/MIN limits Richard Von Indicator Development 3 07-30-2007 08:29 AM
IB Historical Data Refresh Limits and Backup Feed Drew Connecting 1 05-10-2007 05:18 PM


All times are GMT -6. The time now is 07:13 PM.