| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| reading and useing a price from the screen https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=854 |
Page 2 of 2 |
| Author: | gaheitman [ Fri Oct 05, 2012 8:22 pm ] |
| Post subject: | Re: reading and useing a price from the screen |
For the arrows, since you are not deleting the arrow in advance, the ObjectCreate() will fail if it already exists. If it does fail, it won't change the time/price. You should get error messages in the log, however. Another possibility is that the objects are not appearing because you have something else on the screen like iParamWorktime drawing a rectangle that is higher in the z-order because of it's name so it is on top of the objects you are drawing. I posted somewhere on here about the order of visible objects based on their name. I'll see if I can find it and update this post if you think that might be the case. George |
|
| Author: | jjasper7 [ Wed Nov 07, 2012 4:06 pm ] |
| Post subject: | Re: reading and useing a price from the screen |
i have tried adding ObjectDelete ahead of the calls, but do not notice improvement in the display of the objects. and i am not drawing rectangles, and the objects are small (wingdings or lines), so cannot explain why they do not paint. i have noticed some of the missing display objects are in the Objects List. also having trouble deleting the objects, as if the program is too busy to keep up when i am trying to deinit. can you please explain what might be happening? |
|
| Author: | jjasper7 [ Wed Nov 07, 2012 4:21 pm ] |
| Post subject: | Re: reading and useing a price from the screen |
another big problem i have started having. if i load an indicator i wrote, even on only one chart, it slows the processor drastically. i have throttled the program down to exit without doing anything unless it is a new bar, but even that does not help - my computer is fully busy, and takes 5-10 seconds to respond to me (like rt mouse click on the chart to pull down the options, and other simple things) - even with the indicators start{} commented out so no logic is available to run. any ideas how to find what is loading down the processor? |
|
| Author: | gaheitman [ Wed Nov 07, 2012 7:11 pm ] |
| Post subject: | Re: reading and useing a price from the screen |
If the objects are in the object list, then you created them, but the parameters are incorrect. Have you looked at the time/price information from that list to see that they are correct? The values there should give you a clue as to what is going on. George |
|
| Author: | jjasper7 [ Fri Nov 09, 2012 8:14 pm ] |
| Post subject: | Re: reading and useing a price from the screen |
george, that display problem is still giving me grief. it would be very helpful if i could find a breakpoint debugger to help. do you know of such a program to help find errors? |
|
| Author: | gaheitman [ Fri Nov 09, 2012 8:47 pm ] |
| Post subject: | Re: reading and useing a price from the screen |
That would be nice to have, but I am not aware of any. I spend a lot of time adding Print() and Alert() statements to code.... If might be worth looking at these couple of posts: http://www.stevehopwoodforex.com/phpBB3 ... t=10#p4559 They refer to using a standalone debugger so you can capture debug output to another screen. You still have to add a bunch of logging statements to the code, however. George |
|
| All times are UTC | Page 2 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|