samjesse:
Hi
I have a trend line on the chart, This mql5 code failed to get the price of the line at the current bar. How can I do it?
I could not find docs for ObjectGetValueByShift either.
Thanks
use this code
double GetLinePrice= NormalizeDouble(ObjectGetValueByShift("your_line_name", 0),Digits );
Ali Sabbaghi:
use this code
function not defined: "ObjectGetValueByShift.
undeclaired identifier: Digits
this is mql5 not mql4...
The following seams to work, but is it the "right" way to do it?
datetime currentBarTime = SymbolInfoInteger(_Symbol, SYMBOL_TIME); double linePrice = NormalizeDouble(ObjectGetValueByTime(0, name, currentBarTime), _Digits);
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I have a trend line on the chart, This mql5 code failed to get the price of the line at the current bar. How can I do it?
I could not find docs for ObjectGetValueByShift either.
Thanks