Forum

Script/Indicator to convert data to standard higher time frames?

Is there a script or indicator that converts the current time frame data (can be from M1 do D1) to a higher time frame (H1, H4, D1, W1, MN1) ? I searched and found existing scripts that either require M1 as current time frame, or convert only to a multiple of the current time frame, which is not

How to NOT draw indicator buffers on the chart?

If I use indicator buffers, they are always displayed on the chart. How can I NOT display them and still have their values calculated? I need only the values, but not the visible part, but I want still to use the indicator buffers because their size is handled automatically by MT4. For example, the

Display cut off bars on the chart?

When I use F12 "Step by Step" sometimes a bar that goes beyond the visible bottom or top of the chart is not displayed fully: 1) Is there any MT4 settings that can help correctly displaying such bars? 2) Is there a way to program correctly displaying such bars

Unable to edit HL style (OBJPROP_STYLE)

The style dropdown field ( OBJPROP_STYLE ) of existing horizontal line is disabled and I cannot set for example a STYLE_DASH. Any ideas why and how to enable it

Clicking a button without clicking the chart?

When I click on a (standard/normal/OBJ_BUTTON) button, if the click is at or near a horizontal line, the line will be selected too (because the option "Select object by single mouse click" is activated), which is undesireable for me. How can I make it so that only the button is clicked and NOT other

How to program pressing a button from the Line Studies (HL, VL, Trendline)?

Hi everyone, instead of using my mouse to press the buttons from the line studies - horizontal/vertical line , trendline, etc - I want to press a key and come to the same result after pressing the button -> the cursor has changed to the icon of the selected button and when I move the mouse this new

Easiest and fastest way to open and manage a trade?

Hello, what MT4 indicators/scripts/EAs can you recommend to open and manage a trade in the easiest and fastest way? I imagine the following features: Open the trade by a single button click or key press. Set my SL and TP visually before opening the trade or immediately after that. The SL and TP

Set Line Color before drawing/creating the line

When I draw or create a line, it uses by default the last used color. How can I set programmatically this color, before I draw/create the line

OnChartEvent() not called in Expert Advisor (EA)

When I press a key in the testing chart, OnChartEvent() does not display the Print message in the Tester Journal tab for the following simple EA (not an indicator). Any ideas why and how to fix it? void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) {

possible to call ObjectGet() for given chartId?

Can I somehow call ObjectGet() giving it a specific chartId? The documentation does not specify that this is possible. I want to get some properties , like OBJPROP_TIME1 and OBJPROP_COLOR from another chart than the currently active one