View Full Version : Please Help with OHLC values in indicators
01-15-2009, 08:49 PM
Please Help!!! i am trying to use High, Low, etc in a simple calculation for an indicator in NT6.5. The problem is the software seems to only recognize the first two places after the decimal whereas i need all four. I am looking for 1.2345 to use in my calculation and i am only getting 1.23. How do i solve this problem?
01-16-2009, 04:57 AM
Hi bwarner, which variable types do you use? Try using the type 'double'. You can also post your code here and we take a look...Thanks!
01-16-2009, 06:41 AM
I added two lines to the modheikenashi indicator equal to the high and low of that bar. When i try to use the two lines i added in modheiken ashi i get the problem i previously described.
01-16-2009, 07:24 AM
How are you determining this is the case? If you are trying to visually justify this it will not work. You need to print the actual line values from your code and look at it from the Output Window.
01-16-2009, 07:33 AM
i am not quite sure what you just told me but it basically sounded like what i have will not work. Basically i just want to know if there is a way to use the line1 and line2 values from modheikenashi in another indicator or strategy the same way one would use HAOpen or HAClose?
01-16-2009, 07:36 AM
What I was trying to convey is that you cannot visually quantify what the line's actual value is from a chart. You need to print out the values from your code.
Print(Plot.ToString()); or something along those lines. Whatever your plot/line name is. Then you need to look in the Output Window and that will inform you as to what the value of the line.