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

 
STARIJ:

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!

 
STARIJ:

[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.

 
STARIJ:

To disable the output in the data window, do the following


Maybe you know how to do it in MQL5 too?

 
Aleksey Vyazmikin:

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?

 
Alexey Viktorov:

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!

 
sviter-pro:

hello!!! can you help me remember the opening price of an order?

Do you forget?

 
sviter-pro: hello!!! can you help me remember the opening price of the order?

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(((

Reason: