Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 259

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
Allows ANY (first, middle, last) buffer to be removed from Data window. This is how I set my label in the data window SetIndexLabel(1, "HP_Down");
That's right! Thanks - will apply!
[sl] [tp] [so] in brackets, canceled without brackets - probably, because there are no financial changes. Also when account is deposited and withdrawn something writes, when partial closing ...
When partially closed, the parent order comment is written to #ticket_child, the child order comment is written from #ticket_parent.
For example, there was a position with ticket #1. Closed it partially --> position became with a new ticker, say #2.
Then the comment of position with remaining volume (ticket #2) is written from #1, and the comment of closed position (ticket #1) is written to#2, which can be viewed in account history.
To disable the output in the data window, do the following
Maybe you know how to do it in MQL5 too?
Maybe you know how to do it in MQL5 too?
In mql5 it is much easier
INDICATOR_DATA
Drawing data
INDICATOR_COLOR_INDEX
Rendering colours
INDICATOR_CALCULATIONS
Additional buffers for intermediate calculations
hello!!! can you help me remember the opening price of an order?
In mql5 everything is much simpler
INDICATOR_DATA
Drawing data
INDICATOR_COLOR_INDEX
Rendering colours
INDICATOR_CALCULATIONS
Additional buffers for intermediate calculations
Yes, got it, thanks!
hello!!! can you help me remember the opening price of an order?
Do you forget?
Open price=OrderOpenPrice(); Order open price Put cursor on it and press F1
Is there a way to stop a pass during optimisation and move to the next pass when certain conditions occur (not during initialisation)?
A hint I'm drawing an object:
ObjectCreate(0, "good_"+(string)s,OBJ_ARROW,0,0,0,0); // create an arrow
ObjectSetInteger(0, "good_"+(string)s,OBJPROP_ARROWCODE,252); // set arrow code
ObjectSetInteger(0, "good_"+(string)s,OBJPROP_TIME,Time[1]); // set time
ObjectSetDouble(0, "good_"+(string)s,OBJPROP_PRICE,High[1]+0.0001);
ObjectSet("good_"+(string)s,OBJPROP_COLOR,Lime);
ObjectSet("good_"+(string)s,OBJPROP_WIDTH,2);
s++;
How to make the arrow go 10 pips higher than the bar's high. High[1]+0.0001 doesn't do it(((