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
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
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.
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
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.
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
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.
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
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
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
I am currently investigating the best approach to minimize/eliminate terminal ‘freeze-ups’ during periods of high volatility. My assumption is that during these periods my MT4 instance is reacting to new ticks before it has finished recalculating
I am endeavoring to have a button redraw, for about one second, to give the appearance of the button being pressed and immediately unpressed, on a single click. The below code does not delay the change of STATE by one second between true and false
It seems that iMA will only return a non zero value using the "standard" time frames. Is there a way of returning a moving average price using time frames such as m10 etc. Additionally, what is the purpose of the maShift input? int