View Full Version : bar
01-09-2009, 02:19 AM
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.
01-09-2009, 07:18 AM
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.
01-09-2009, 08:43 AM
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?
01-09-2009, 08:52 AM
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.
01-09-2009, 11:18 AM
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.