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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 11-15-2008, 03:21 PM   #1
willyv
Junior Member
 
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default Swing high price value

I am keen to know how to code a comparison of current bid price to last swing high value. I want to know when the current bid goes above the most recent swing high price value to use as an AND to place a trade.
Any ideas would be appreciated??

Cheers
Willyv
willyv is offline  
Reply With Quote
Old 11-15-2008, 07:25 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

To get the current bid use, GetCurrentBid() -http://www.ninjatrader-support.com/HelpGuideV6/GetCurrentBid.html

To get the most recent swing high, use the Swing() method - http://www.ninjatrader-support.com/H...eV6/Swing.html
NinjaTrader_Ray 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
HELP to Split Swing(high/low) Indicator Frankriso Indicator Development 4 11-16-2008 09:58 AM
Swing High maninjapan Strategy Development 10 08-12-2008 08:27 AM
How to use Swing(High/Low) indicator cassb Strategy Analyzer 5 03-05-2008 10:56 PM
Swing high low indicator winJR NinjaScript File Sharing Discussion 1 02-06-2008 12:39 AM
Swing Low/High indicator ts888 Indicator Development 10 07-12-2007 07:56 AM


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