How does the sell pending order block and the check distance block work in my EA
-
-
@od You can do it this way:

-
@l-andorrà I have re arranged the whole structure to accomodate that part, is it correct?. Disclaimer am on an economy of connections. Still am not sure if the close partially formula will work for both buys and sells as it is in the EA below:https://fxdreema.com/shared/RULFG6CDd
-
@od Yes, it should work. On the other hand, you can substitute the block on top of all those condition by a 'no trade' block.
-
@l-andorrà https://fxdreema.com/shared/IinlGqqxe
This is a nearly complete version of the EA but I have other questions about how to loop time ,saving of screenshots and how to arrange the blocks as in which should come first before the other. I have created an area with further explanation of what I need . Kindly look at it and assist where possible.
-
@od For question 1 you need to use the 'on timer' tab. There you can program all blocks to be executed every 10 seconds instead of each tick.
For question 2 I see you already got it as per block 12. Right?
For question 3 you can to create different groups for different trade managements, but I'm not completely sure Iunderstand what you mean. -
@l-andorrà Regarding question 1, I wanted all the blocks to be checked like after 10 seconds to avoid lagging since it is a one minute timeframe strategy. I have checked in some post they say the 'on timer' tab isn't working well but I've seen you can use also the one in project options
.Can it work? Do you know how?
For question 2, the block arrangement is correct but I would like to store screenshots in one folder possibly send to telegram .This one I have no idea about it whether it can be done so for now I prefer to do away with it.
On question 3, how do I create the group for all these blocks since when complete, the sells side logic will have buys and sells too and their trades management might interfere with the buys and sells created by the buy conditions.
https://fxdreema.com/shared/va8aHwXHc -
@od You need to specify 10*60=600 in the period for the 'on timer' event instead of 60. However, you will need to control that only happens when those losing conditions are met and not all the time.
On the groups, I'm trying to understand the logic behind i because I just see one line of action for you trade managers.