About loss calculation
-
Hi,
I've made an EA that holds a maximum of 3 positions per currency pair, and the EA is designed for multiple currency pairs. The link below is the one with the complicated regions removed. I tried to close all positions at a total floating loss of -300 pips. However, if the EA is running on 3 pairs such as USDJPY, EURUSD, and AUDUSD, and if all 3 pairs have positions at the same time (maximum 9 positions), is the total floating loss calculated as the sum of all positions from all 3 pairs? Or, when USDJPY reaches -300 pips, are only the USDJPY positions closed?
Please help me.
Best regards,
-
@pharmlatex Your current configuration will only look for -300 pips separately on each char. If you want to combine all open profit/loss regardless the charts you need to do this:

-
Hi, thank you for your reply.
This test EA would have a maximum of 3 positions. I want to close positions only when the sum of the 3 positions' loss is over 300 pips in one chart. However, I don't want to close positions if the sum of all charts is over 300 pips loss (for example, 100 pips from USDJPY and 200 pips from GBPUSD). I read your explanation and understand that in the current setting, only the sum of one chart is referenced. Is that correct?
-
In you first post you specified a max 3 positions per currency pair. What you say now is different. If you need to close all open trades on 1 same chart, you need to select 'Specified' in that display menu. That will search for those trades on the chart the bot is running on. If you select 'any symbol' that bot will consider all open trades regardless the symbol.
-
Hi, thank you for youre reply. I'm running the EA using "Specified" on demo account. I'll check how it works. Thank you.
-
You're welcome.