Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 151
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
something like this :
string level="Level"+IntegerToString(iTime(_Symbol,iBarShift(OrderCloseTime())); // ид.уровня - по времени бара (!! не по тикету)
if (ObjectFind(level)==-1) {
// гор.вектора нет - видимо первый ордер из закрытых на баре
// сделать горизонтальную линию
ObjectCreate(0,level,OBJ_TREND,0,OrderCloseTime(),OrderClosePrice(),OrderCloseTime()+PeriodSeconds(_Period)*3,OrderClosePrice);
// указывающую только вправо
ObjectSetInteger(level,OBJPROP_RAY,1);
ObjectSetInteger(level,OBJPROP_RAYLEFT,0);
// украсить её как-то :-)
ObjectSetInteger(level,OBJPROP_COLOR,....)
....
} else {
// гор.уровень есть - значит были ордера закрытые на этом баре
// по фантазии - обновить метки/корректировать уровень/etc
}
Using a vector as a level finder is wrong.... not good ....((
What if we make a horse move)
In the level search use the principle of profit summation at the price level the record of which already exists...
For example: here we've made a try and added up the profits with a 60 second delay
Next, we need to come up with a record :
If the number of accumulated profits at the level > 1, then this is our order - our level, from this level we draw a ray
Greetings.
I am planning an EA with functions that on every tick will loop through the available orders created by it and act depending on the situation.
Can you advise how to make separate variables for each new order and for further loops to work with them? (I assume this is something like Peremennaja+ticket=12345;)
Greetings.
I am planning an EA with functions that on every tick will loop through the available orders created by it and act depending on the situation.
Can you advise how to make separate variables for each new order and for further loops to work with them? (I assume this is something like Peremennaja+ticket=12345;)
Better an array or even an array of structures.
I'm sorry, can you elaborate?
Excuse me, could you go into more detail?
Here and here.
A structure and an array of structure type is created. Outside of all the code.
Hello.
Please help me find the intersection of the horizontal line "ResisL" andthe trend line by the angle "TrndL"
Hello.
Please help me find the intersection of the horizontal line "ResisL" andthe trend line by the angle "TrndL"
Thank you.
How about if you want to know the crossover point when there are no bars yet, i.e. a date in the future.
Thank you.
How about if you want to know the crossover point when there are no bars yet, i.e. a date in the future.
Haven't tried this function - need to experiment.
Haven't tried this function - need to experiment.
Please, if you find time to experiment, share the result.
Because I have no idea what to experiment with
.