Script: Count your net positions in MT4 for a symbol

 
 

anyone find it useful?

 

Yes, me!

Thanks ycomp, I have downloaded it and though it is not perfect for my application I intend to add to it for my own use(hope you don't mind).

I can do simple coding at best so I need ideas how to implement my projects.

I am doing some swap hedge trading so I want to know the lots for different currencies and the ratio of one currency lots to another currency lots.

I have not seen "info(....." used before. I am going to try changing that to

comment so it remains on the chart.

thanks very much!

 

sure go ahead and modify it for your own purposes.

the info() was just to encapsulate the messagebox call. Just in case I needed to use it more than once. (which I didn't Also makes the code more readable.

you can remove the:

bool moreOrdersForSymbol = true; // THIS DOES ABSOLUTELY NOTHING

this is what happens when you write something too hastily, you get sloppy

sounds like you should make this into an indicator if you want a Comment that updates all the time.

 

v1.10: Sums swap as well

Sum swaps as well for all positions of the chart symbol.

Files:
Reason: