![]() |
|
|
#1 |
|
Member
Join Date: Nov 2008
Posts: 59
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
check the attached, I want to identify Higest bar in the given time. I tried the logic but it is not working check the attached and let me know what is worng with it. awaiting |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
That will not work. To check the highest bar within that time you need to set your condition to run the check once at 7:50 PM. You need to then move HighestBar to an Action. You want to set Variable0 to take on the value as deterined by HighestBar. In HighestBar you need to pass in a period that would correlate with the number of bars that it would take to bring it back to 7:25 PM. I.e. A period of 25 if you are on 1min charts. Then you can take the value of Variable0 and then use that to plot where you want your diamond.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Nov 2008
Posts: 59
Thanks: 0
Thanked 0 times in 0 posts
|
Hi Josh,
Problem with Highest/Lowest bar using is that they donot look back after X number of bars for example lets say i want to see 6 bars high/low so they will not be trigered until after 6 bars we get some high/low. suppose by 7:50 PM there is NO lower low bars then it cannot identify Lower bars. Check the attached today market open pic i attached. The above blue Triangles high light is showing the time and bars when we are going to find out the high and low. and the Red bar are showing highest bars. did you get the point? awaiting |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Sorry I do not follow. HighestBar has a period as defined by the user. When you move forward a few more bars your period remaining the same will result in a comparison for highest bar across a different range. For sure you will experience a lowering of your dots because you are not including those prior higher bars in your analysis.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Nov 2008
Posts: 59
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
Ok I have done,, code is bit length as i have no other choice and I checked on each bar if it is higher then other bars. thanks |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| current bar previous bar | frankvdplas | General Programming | 4 | 12-08-2008 07:59 AM |
| Bar index from the session or plot bar number on an intraday chart | eneratom | General Programming | 1 | 02-27-2008 06:48 AM |
| change bar time to start of bar interval | bi9foot | Charting | 3 | 01-18-2008 01:51 AM |
| Stop Loss @ Low/High of Entry Bar minus one Bar | SamIam | Strategy Development | 5 | 08-29-2007 03:55 AM |
| CrossBelow previous bar and omit current bar | ct | General Programming | 1 | 06-03-2007 02:54 AM |