Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
HH & HL Indicator
Collapse
X
-
Sorry I am just not getting this.
The issue seems to be it only returns the true/false for the current bar. I need it to stay 'true' until it becomes 'false', and vice versa, so if 4 bars ago it was 'true' then it needs to be true 3 bars ago, 2 bars ago, 1 bar ago.. until it becomes 'false'.
Hope that makes sense.
I've attached the code.Attached Files
Comment
-
I believe there are two files in the SamplBoolSeries Example:
1) SampleBoolSeries : Indicator that creates the BoolSeries
2) SampleBoolSeriesStrategy : Strategy that retrieves the values created in the indicator.
Every bar will need to be evaluated to true or false in the indicator so you will need to write your code to accomplish this. Then you can go back and retrieve the value (true/false) from any bar for use in other Indicators or Strategies.Last edited by TAJTrades; 11-24-2008, 05:46 AM.
Comment
-
-
Hello David and aoffers2,
Welcome to the NinjaTrader Support Forums!
This indicator uses Drawing Objects which are going to be drawn on the Input Series panel.
If you want them to be drawn on a different Panel you may change the DrawOnPricePanel to false so it will draw them on the Indicators panel itself.
Here is a our Help Guide that give an example of how this can be added to the script.
JCNinjaTrader Customer Service
Comment
-
thanks for the quick reply - but I still have a question
Originally posted by NinjaTrader_JC View PostHello David and aoffers2,
Welcome to the NinjaTrader Support Forums!
This indicator uses Drawing Objects which are going to be drawn on the Input Series panel.
If you want them to be drawn on a different Panel you may change the DrawOnPricePanel to false so it will draw them on the Indicators panel itself.
Here is a our Help Guide that give an example of how this can be added to the script.
http://www.ninjatrader.com/support/h...pricepanel.htm
Thanks so much for the quick reply but still have a question- I don not see an input "DrawOnPricePanel" where I can change it from true to false and I opened the code and didn't see it there either.
I would like to have the input option to put true or false since I want to place this on BOTH the price and another indicator on 1 chart. How can I do that please? Can you please post the indicator that has both input options?
.
thanks so much.
traderdp
DavidLast edited by traderdp; 04-15-2014, 06:42 PM.
Comment
-
Hello David,
It is a set property that is a defined for all Indicators so you would just have to call object inside of the Script like the Help Guide demonstrates.
To do that, you would create a User Defined Input Parameter that sets DrawOnPricePanel inside of the Initialize() method. You may view the following thread that goes over the details about creating a User Defined Input Parameter.
As for placing this indicator on another Indicators panel, there may be complications with this as the NinjaPriceAction is using the High and Low value of the Data Series to Draw the text so if the Indicator does not have the same price as the Data Series, you may not see the text or are you placing this indicator on a Panel all by itself?JCNinjaTrader Customer Service
Comment
-
Hello caltrader,
Thank you for writing in. You can add the HH, LH, DT text using the following code:
Code:if (curhigh < prevhigh + offset && curhigh > prevhigh - offset) DrawText("DT"+CurrentBar,"DT",barsback, High[barsback] + toffset, Color.Gold); else if (curhigh > prevhigh) DrawText("HH"+CurrentBar,"HH",barsback, High[barsback] + toffset, Color.Green); else DrawText("LH"+CurrentBar,"LH",barsback, High[barsback] + toffset, Color.Red);
Thank you in advance.Michael M.NinjaTrader Quality Assurance
Comment
-
this is the version of indicator I am usingAttached Files
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by f.saeidi, Today, 11:02 AM
|
1 response
2 views
0 likes
|
Last Post Today, 11:08 AM | ||
Started by geotrades1, Today, 10:02 AM
|
4 responses
12 views
0 likes
|
Last Post
by geotrades1
Today, 11:08 AM
|
||
Started by rajendrasubedi2023, Today, 09:50 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 10:57 AM | ||
Started by lorem, Today, 09:18 AM
|
2 responses
11 views
0 likes
|
Last Post Today, 10:55 AM | ||
Started by geddyisodin, Today, 05:20 AM
|
4 responses
30 views
0 likes
|
Last Post
by geddyisodin
Today, 10:45 AM
|
Comment