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 > Strategy Development

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

Reply
 
Thread Tools Display Modes
Old 11-12-2009, 04:08 AM   #1
Trader61
Member
 
Join Date: Aug 2009
Posts: 52
Thanks: 0
Thanked 0 times in 0 posts
Default Variable to hold crossover?

I want to be able to tell that a crossover has taken place, but it may not have happened in this bar or last several bars. How would I do this? Can I do this with the Strategy Wizard?

I basically want to flag that a crossover has taken place that I could check. Could I set a variable when a crossover takes places and then check this variable later?
Trader61 is offline  
Reply With Quote
Old 11-12-2009, 04:15 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,384
Thanks: 252
Thanked 967 times in 950 posts
Default

Trader61, yes user variables are ideal for this task -

http://www.ninjatrader-support2.com/...ad.php?t=15417
NinjaTrader_Bertrand 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
buy and hold alexnj Strategy Development 3 09-25-2009 01:42 PM
BUY and HOLD strategy Helicopter Miscellaneous Support 1 08-06-2009 03:34 AM
Best Way To Hold Positions Overnight? tshirtdeal SuperDOM and other Order Entry Windows 1 03-17-2009 04:05 AM
Where does Dorman hold the orders zq655 SuperDOM and other Order Entry Windows 1 02-07-2008 06:50 AM
'Hold' function in sim djayw Miscellaneous Support 2 01-18-2008 02:40 PM


All times are GMT -6. The time now is 01:45 PM.