Check Profit&Loss
-
I found a solution for my previous question on Oct 24
One attached picture shows that many trades were made and closed with a profit in the end. Because I trade candles high and low and I never know when the bot will take such a trade its pretty important to know the overall loss or profit. So My question is about the second picture. Is this the right way to check loss and profit.(Oh I know the block nrs are set wrong at this moment)
......
eurjpy-m5.png
max.png -
Those blue blocks have their own loop inside. So now what you have is this: if there is a single trade that has loss > 100pips (which is profit < -100 pips), close multiple trades using the first blue block. It's the same with the other blue block.
If you want to close the single trade that has this loss or this profit, use the pink "close" block instead of the blue "Close trades".
-
I can't get my fingers behind it. Each time conditions are true the EA should sell without take profit or stop loss. However when all trades are in the combined loss may not exceed 100 dollar. When for example 35 se3ll trades have a combined loss of 100 dollar or more the EA should close all trades and terminate.
So far I could only figure this out on one singel trade and not a whole group of trades.
Below what I have and I know its wrong. Maybe you can give me a hint.
......
combi.png -
The problem is that pink blocks does not work in this "combined" mode that you want. The first block is called "For each Trade"... just look at it's description. It says "for each", not "load all", this block creates a loop for each available trades and runs the next blocks multiple times. There are also some examples in fxdreema.com/examples.
"check loss" checks the loss of a single trade at a time. Look at this topic, I just answered to a similar question viewtopic.php?f=2&t=3307