Thanks for making this and I am learning this.
I mistakenly thought SymbolOpenPositionsBreakevenAll will Breakeven all open positions as a group.
For example, if I have the following positions
- Buy 1.11200 x 0.3 lot
- Buy 1.11100 x 0.2 lot
- Buy 1.11000 x 0.1 lot
The function will calculate the weighted average ( I called it 'breakeven' price temporarily )
( 1.11200 x 0.3 + 1.111 x 0.2 + 1.110 x 0.1 ) / (0.3+0.2+0.1) = 1.11133
and the function will close these orders if current price above this weighted average. ( --> Effect: overall profits should be around zero )
Thanks for making this and I am learning this.
I mistakenly thought SymbolOpenPositionsBreakevenAll will Breakeven all open positions as a group.
For example, if I have the following positions
- Buy 1.11200 x 0.3 lot
- Buy 1.11100 x 0.2 lot
- Buy 1.11000 x 0.1 lot
The function will calculate the weighted average ( I called it 'breakeven' price temporarily )
( 1.11200 x 0.3 + 1.111 x 0.2 + 1.110 x 0.1 ) / (0.3+0.2+0.1) = 1.11133
and the function will close these orders if current price above this weighted average. ( --> Effect: overall profits should be around zero )
Hi! I am glad you liked my library :D
This function will move the SL to the entry point of each positions, not as a group ;)
Hi Thiago Duarte
Great expanded tools ever required by every user
Thanks and appreciations for the extensive work - :)
May i ask,if some day an explanatory pdf file (where every function defined well) will be created for to better understand,preferably in english
regards
Hi Thiago Duarte
Great expanded tools ever required by every user
Thanks and appreciations for the extensive work - :)
May i ask,if some day an explanatory pdf file (where every function defined well) will be created for to better understand,preferably in english
regards
I am glad you liked it!
I am working on a new description page, here in MQL5, where I will explain every function. Stay tunned! ;)
I am glad you liked it!
I am working on a new description page, here in MQL5, where I will explain every function. Stay tunned! ;)
Thanks Thiago Duarte
Waiting interestingly - :)
regards
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Symbol Trade Made Simple With Functions:
This library shows useful informations and do a lot of functions to a symbol.
Author: Thiago Duarte