![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Jul 2011
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
How can i use the standard Swing indicator in a strategy? I am trying to say if a dot is painted, do or don't do something. When I try to use True== it gives me a boolean error with that indicator in the strategy wizard. Thanks. |
|
|
|
|
|
#2 | |
|
Senior Member
|
Quote:
ref: http://www.ninjatrader.com/support/h...html?swing.htm
Last edited by koganam; 09-02-2011 at 02:03 PM.
Reason: Corrected spelling
|
|
|
|
|
|
The following user says thank you to koganam for this post: |
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2011
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
|
So no way to do this without opening up the code?
Not a coder here so if anyone can assist, it would be GREATLY appreciated! |
|
|
|
|
|
#4 | |
|
Senior Member
|
Quote:
Be a bit more specific on what you want to do, and I may be able to post a few snippets. Unfortunately, " ... I am trying to say if a dot is painted, do or don't do something." says nothing actionable. What is the action that you seek to act on? The dot is but a visual artifice. Once the condition is met, do something with what? |
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2011
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks for the assist.
I've noticed that the indicator basically places the swinghigh and swinglow dots to form a pseudo-channel. Occasionally, it only places the high OR the low (i.e. the channel opens up). In those instances I want to execute a trade. |
|
|
|
|
|
#6 |
|
Senior Member
|
At any time, the indicator can place only the swing high or swing low. So what condition do you seek to determine that the channel has opened up? That is the unfortunate thing about coding. You have to provide a very precise description of what you mean, otherwise, nothing is actionable.
|
|
|
|
|
The following user says thank you to koganam for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Swing indicator | Dervakon | General Programming | 3 | 05-03-2011 03:07 PM |
| Swing indicator | Stephan123 | Indicator Development | 1 | 05-02-2011 09:41 AM |
| strategy that shows broken Swing high and Swing low? | MoreYummy | Strategy Development | 1 | 06-06-2010 10:16 PM |
| Swing Indicator | wcmaria | Indicator Development | 1 | 12-04-2008 10:48 AM |
| Howard Indicator and Pesavento Pattern Swing Indicator | DORAIRAJ_S@HOTMAIL.COM | Indicator Development | 1 | 11-12-2007 12:28 AM |