Philb1 / Publications
Forum
ObjectCreate(ChartID(),INFO,OBJ_BUTTON,0,0,0); Problems
Hi When adding objects to a chart via an EA, such as buttons & lines, I've found they're being added to all of the charts object lists, but not to the actual charts. So if I right click another chart I'll see the object listed in the list without the object being on the chart. So if I have 10 charts
OrderClose Won't Work.. It Hates Me
Hi I have the code below, that is a portion of code extracted from my project, which according to other examples I've read as well as the MQL4 documentation I've read, should work without a problem. I have alerts in amongst the code to inform me what is happening & the code appears to be working as
Why is ChartWidthInPixels() giving different results?
Hello Can someone tell me why the chart width is 1628 pixels wide when MT4 is opened, and after compiling, it is 1861 pixels wide using the same code. To see it I'm using Comment(ChartWidthInPixels()); Thanks int ChartWidthInPixels( const long chart_ID= 0 ) // Get chart width in pixels function {
Detect a trade when it's opened
Hello Is there a way to detect when a trade has been opened with the standard MT4 single click buttons? I've looked through the documentation and can't see anything that relates to when trades are placed manually. A bit of code to show me how or a pointer to where I can find out will do nicely
input ENUM_ALIGN_MODE TextAlignment = ALIGN_CENTER; Not Working
Hello I'm trying to left align the text in a label and have tried 2 ways of doing it without any success. The labels are in the top right hand corner and when they're all populated the text looks a mess as it's aligned to the right by default. The first try being a loop I came across. I didn't like
No output from ChartTimePriceToXY and no price from iOpen
Hi.. This is my first post here so apologies if it's in the wrong place I'm a reasonably competent self taught VBA coder & thought that as the syntax is sort of similar to VBA, that I'd have a go at MQL4. I've written some code that places a label on the chart which is dependent on the chart shift