[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 173
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
I've been reading for three days now. :=( It's easier in php, but I can't understand it here.
In addition to the magic number, comment checking can also be used. The opening price can be written in the commentary (e.g. "EURUSD, 1.251").
Help a self-taught programmer.
Built a trend line with standard tools.
The first coordinate of the trend line is known, but the second coordinate is unresolved. It is mandatory for the calculation formula.
It is present on the chart when it is selected with the mouse. Is there any way to determine it?
We have some other ways of determining it.
Preferably share the code if you can.
Help a self-taught programmer.
Built a trend line with standard tools.
The first coordinate is known, but the second one is unresolved. It is mandatory for the calculation formula.
It is present on the chart when the mouse is selected. Is there any way to determine it?
Or approach it in some other way.
Preferably share the code if you can.
Since you've already built it, how about ObjectGetValueByShift()?
Offset relative to the current bar deep into history. Returns 0.
There is no second coordinate.
That's not it or I don't get it.
Hello!
Can you advise a newcomer on whether a include file needs to be compiled?
What is the difference between a include file and a library? Where is it better to store functions: in a include file or in a library and why?
Offset relative to the current bar deep into history. Returns 0.
There is no second coordinate.
That's not it or I don't get it.
Hello!
Can you advise a newcomer: does the include file need to be compiled?
no
What is the difference between a include file and a library?
The first one does not need to be compiled, because it is included into the program code itself, the second one does, because its functions are included from the ex4-file
Where is it better to store functions: in a include file or in a library and why?
For your own use, it would probably be better in mqh; if you need to distribute the library and don't want to open the source code, then ex4. The function call from ex4 is quite slow, but if the performance is not critical, then in principle, whatever
Eh... I don't need coordinates, we pass the name of line object and bar number (0 or 1, as you wrote) into the function, the output is the value of the line on this bar. We compare it to the price... Or I don't understand the problem?
s="doun";
if (ObjectFind(s)==0) {ObjectDelete(s);}
ObjectCreate(s,OBJ_TRENDBYANGLE,0,Time[W1],High[W1]);
ObjectSet(s,OBJPROP_ANGLE,310);
double price=ObjectGetValueByShift("doun", 1);
Comment(price);returns 0.
line is present.
Somebody write a normal tester, multi-currency and with floating spreads))))
ps and also with real ticks, blackjack and whores