Forum

Capture Object name from Chart

Is there a method to capture an objects name from the cursor position? All i seen to be able to capture is the price and time I was thinking something along the lines of placing the cursor at Time1 and Price1 and then iterating through all the chart objects until I find a match for Time1 and Price1

Indicator Visulalization

I am looking for a methodology to restrict the visualization of an indicator's separate window, by code There does not seem to be something like SetIndexVisualization(.... TimeFrame) I can easily restrict the indicator's output to specific Periods. the issue is that on the not required Timeframes

Feature Request - Close Order by Expiry Time

Currently I close my Orders at set times, (or TP/SL whatever comes first) via a simple EA. I would much prefer that this functionality was directly available on the server for open Orders, similar to that of Pending Order Expiry times

Allow Automated Trading after Update

Tools-> Options->Expert Advisors To allow my scripts to run Orders I need to have 'Allow automated trading' selected The issue is that after each MT4 update it is deselected. Is these a way to retain my previous selection after the update? PS the spelling is a little unusual ".. Adviser and

How to Change MessageBox font

I'm searching for a way to change, at run time, the MessageBox font to unispace eg "Courier New". The reason being that I desire to output columns of numbers, which I want to right justify

Determining a City Time

Has anyone a code snippet to share that can pull the current time of a city from some available server (whatever that may be) , including dst if applicable. This information is obviously available from many servers eg http://www.timeanddate.com/clocks/free.html

Script - drag to place object

Could someone post a code snippet that will facilitate drawing on object on the chart by dragging a script to the desired position, ie price and time. I have misplaced the code that performs that function , know it is possible. thanks

template - save current

Looking for a method to save the current Chart Template to overwrite the name of the template in use. Whilst saving the current chart to a template is simple I'm still perplexed at how to capture the name of the template in use. It seems that there is no method such as "GetTemplate(ChartID)", as

ObjectGetValueByTime conversion warnings

why does the following line of code produce these two warning messages - "implicit conversion from 'string' to 'number' " "implicit conversion from 'number' to 'string' " Also it returns a value (Price) of 0.0, despite the Trendline ("test2a") intersecting m15 Time[1] Print ( ObjectGetValueByTime

Capture Chart Objects to File

Is there a simple method of capturing all the names and associated values of chart objects other than having to iterate through the ObjectName and then using ObjectType & ObjectGet? My aim is to save the object to datestamped file(s) before switching templates, after which I can then