EarnForex / MarketProfile

Market Profile indicator for MT4, MT5, and cTrader by EarnForex.com

Home Page:https://www.earnforex.com/metatrader-indicators/MarketProfile/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[1.18] ObjectName() wrong syntax

Heart1010 opened this issue · comments

For MT4:

string obj = ObjectName(ChartID(), i, -1, OBJ_RECTANGLE);

string obj_name = ObjectName(ChartID(), j, -1, OBJ_TREND);

string name = ObjectName(ChartID(), i, -1, OBJ_RECTANGLE);

Should be ObjectName(i);, shouldn't it?

Why?

...from the MQL4 docu (https://docs.mql4.com/objects/objectname)
image

Two other/minor bugs:

input color SinglePrintRayStyle = STYLE_SOLID;

This should be ENUM_LINE_STYLE!
input color SinglePrintRayWidth = 1;

This should be int!

...from the MQL4 docu (https://docs.mql4.com/objects/objectname)

MQL4 has both variants implemented - with index only (the classic MT4) and with chart id, index, subwindow, and object type. They just rarely update their docs.

Two other/minor bugs:

Thanks! I'll fix these.

Fixed in 1.19.