Yes I've amended that, it is counting all trade lots of the wanted types. run these trees on tick, you can then access the variable from any tab.
Posts made by jstap
-
RE: HOW TO SET THE NEW TRADE VOLUME EQUAL TO THE TOTAL OPENED VOLUME IN THE SAME DIRECTION ?posted in Questions & Answers
-
RE: HOW TO SET THE NEW TRADE VOLUME EQUAL TO THE TOTAL OPENED VOLUME IN THE SAME DIRECTION ?posted in Questions & Answers
This will save the running trade lot into the variable:
https://fxdreema.com/shared/clq4xy9hb -
RE: Help with Automated Template Loading for Open Charts in MT4posted in General Discussions
It doesn't work on backtest
-
RE: Store Profit whenever there is position // if no more position, profit resets to 0posted in Questions & Answers
Yes create as many as you need, just make each pink block missis already recorded trades and save the next. The bink block for trade 4 would look like this:

-
RE: Send and receive variables to different accounts/terminalsposted in Questions & Answers
been a long time since I looked, but I'm pretty sure they are saved in the common folder
~

-
RE: Store Profit whenever there is position // if no more position, profit resets to 0posted in Questions & Answers
I mean like this, every time it com[lates the loop and saves the relevant data into the relevant variable, it will move onto the next, then the next etc

-
RE: Send and receive variables to different accounts/terminalsposted in Questions & Answers
same VPS so basically the same computer... you can use a terminal variable (global) and it will be saved onto a shared folder, that you can read from another.
-
RE: Store Profit whenever there is position // if no more position, profit resets to 0posted in Questions & Answers
what I mean is the for each (pink) - under the trade closed block - connect more than 1 pink for each changing the relevant modify variable block, then the next pink off yellow, this will collect the profit from every trade.
-
RE: Store Profit whenever there is position // if no more position, profit resets to 0posted in Questions & Answers
more difficult, but simply tee off the pink with saving the information for each running trade
-
RE: Studio Custom Functions All Deletedposted in Bug Reports
True, not many users know a lot about it either, hopefully you get a usable answer at some point.
-
RE: Store Profit whenever there is position // if no more position, profit resets to 0posted in Questions & Answers
use purple (like you have ) on trade, then pink blocks to get the last trade profit. This should give you all you need.
-
RE: How to copy / manage trades from other EAsposted in Questions & Answers
Any trade if you know the magic number can be controlled, 0 is manually placed, can you get the MN that the trade is placed with?
-
RE: How to copy / manage trades from other EAsposted in Questions & Answers
Need more information on exactly what you are trying to do?
-
RE: move pending sell buy stop 2 pips higher or lowerposted in Questions & Answers
add 2 pips to adjust:

-
RE: Timeframe as inputposted in Questions & Answers
it's enum, add how mql5 says: https://docs.mql4.com/constants/chartconstants/enum_timeframes
