
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
Is this code ok? if not then please write some code instead of link, i am still confused.
NO https://www.mql5.com/en/forum/133792/page3#550831
gives pipvalue for a lot traded on specific symbol
1. There are some buy orders are opened and one buy pending order is placed. all orders are in same currency pair. how an EA will select only last opened order to check its stop limits?
2. every opened order was placed at different prices with tp 20. is it possible for ea to to modify all opened orders except the last one, and change their stop limits to the stop limits of last opened order?
EXAMPLE:
Some confusion with...
Old editor accepts the highlighted lines, but new editor gives warning "Expression not boolean"
I tried then...
Now new editor accepts both, but... which one will work the same like the highlighted line? if both true, then which one should i use? (more convenient?)
PS: Below code is also accepted by new editor...
New editor accepts all three, but... which one will work the same like the highlighted line? if all true, then which one will be more convenient for me?
(SignalS & AAA) !=0
Operation
Desciption
Execution Order
()
[]
.
Function Call
Referencing to an array element
Referencing to a structure element
From left to right
!
~
++
--
(type)
sizeof
Logical negation
Bitwise negation (complement)
Sign changing
Increment by one
Decrement by one
Typecasting
Determining size in bytes
Right to left
*
/
%
Multiplication
Division
Module division
From left to right
+
Addition
Subtraction
From left to right
<<
>>
Left shift
Right shift
From left to right
<
<=
>
>=
Less than
Less than or equal
Greater than
Greater than or equal
From left to right
==
!=
Equal
Not equal
From left to right
&
Bitwise AND operation
From left to right
^
Bitwise exclusive OR
From left to right
|
Bitwise OR operation
From left to right
&&
Logical AND operation
From left to right
||
Logical OR operation
From left to right
?:
Conditional Operator
Right to left
=
*=
/=
%=
+=
-=
<<=
>>=
&=
^=
|=
Assignment
Multiplication with assignment
Division with assignment
Module with assignment
Addition with assignment
Subtraction with assignment
Left shift with assignment
Right shift with assignment
Bitwise AND with assignment
Exclusive OR with assignment
Bitwise OR with assignment
Right to left
,
Comma
From left to right
WHRoeder i found your code (select last market order) and added highlighted lines to check its tp price and to set the same tp price on previous orders:
An extra line...
Please guide, if i am wrong.
(All market+pending orders type is only buy, not sell or only sell, not buy and i want the tp of all market orders to be changed every time, when new market order is opened).
THIS IS REALLY TOUGH FOR ME, BUT I WANT TO DO IT. :(