Forum

RefreshRstes vs ChartRedraw() finctions

What are the basic differences between RefreshRates() and ChartRedraw() functions. Does ChartRedraw(ID) update the chart timeframe of non current chartd?, as much as it updates chart objects

OnChartEvent() of a non current chart

How can I get the OnChartEvent() of a non current chart

Selecting the latest placed order

I want to select the latest placed order (open or pending) from trade mode but I don't want to use loop or magic number to minimize running time. Does this line of code help? Assume no order was closed or modified. OrderSelect ( ( OrdersTotal () - 1 ), SELECT_BY_POS, MODE_TRADES);

Issue with ObjectGetValueByShift()

void OnTick() { long ID = ChartFirst (); while (ID != - 1 ) { string Symb = ChartSymbol (ID); string TF = ChartPeriod (ID); string TrendlLine = StringConcatenate ( "Line " , Symb, " " , TF); double Value = ObjectGetValueByShift(TrendlLine, 1 ); Print ( "The

EA freezes at close of Parameter window

Hello everyone! My EA freezes annoyingly when I okays (pressing OK) the parameter window after making some changes. I suspect the reason to be that the EA was still busy with the last known income tick (which I want to refer to as control from now). Thus, control kept moving around the blocks of

A simple question that demands a simple answer

When a chart ID is passed as a parameter with long type from Function 1 to Function 2, and the chart ID is used to call a ChartSymbol in Function 2, will the ChartSymbol be different from the ID's ChartSymbol in Function 1

Same instrument, different broker naming

Hi guys! We know that same instrument (particularly indices) can have different names based on different brokers (or platforms). I even tried using ChartSymbol() on different brokers and I realized that the same name on the market watch is still being output by the EA and not a broker/platform

How to convert my EA to an indicator?

What is the simplest way to convert an EA to an indicator

How to refresh rates of other Chart Windows

How can I refresh the rates of non-current chart windows. Any code that works like RefreshRates() for non-current charts e.g. RefreshRates (long ID)

How to draw OBJ_ARROW_UP with pixels as coordinates

Hi all, How can I ObjectCreate an OBJ_ARROW_UP as a button (with screen pixels as coordinates and not time-price as coordinates)? I don't want the arrow to scroll with the charts. Thanks