Close (partially) block with Buys and Sells managed separately?
-
I'm struggling to get this EA to Close Partials correctly when there's both Buys and Sells on the chart. I have an input for TP1, TP2 and TP3 and in the visual tester, I have witnessed it taking Partials but there is still something that causes a trade in the opposite direction to be closed. For Example;
If there's 3 Buys and 2 Sells, The Buys will eventually come into the profit target of 4 Pips collectively, then it should only Close Partials of the Buy Trades. Same goes with the Sells. If the Close Partials input is set to 0, TP1 will close the proper trades. Can you guys see something that I can't. Below is a copy of the Project. Let me know what you think and thanks in advance.It shouldn't be having those massive spikes down. That tells me it's taking losses when it's not supposed to.

-
there is nothing obviously wrong, disconnect some blocks and test until you find which one is preventing from working as needed.
-
@BBMESS nice to meet you, you have a strategy like my grid strategy, I got 12 sections of continue buy & sell, while you have 11 sections great job you must spend years perfecting it?
I checked out your STOPLOSS FORMULA may cause you closed trade because of low ballance left, try switchoff the entire STOPLOSS FORMULA and replaced with normal one or none just like mine https://fxdreema.com/forum/topic/20911/condition-formula-not-working -
The Stop Loss formula works correctly @CAVINCENT but I wanted to check and see if my eyes weren’t seeing something correctly. I use this same Close Partials module in a different EA and it functions flawlessly BUT there’s only Buys or Sells on the chart at 1 time. So, I was a bit puzzled why managing them both separately all at the same time would be any different.
And I will do that @jstap. Thanks for looking this over.
-
I've managed to collect enough info from cross posts to determine that my "Close (partials) Module" and my "Break Even Module" are conflicting. Why? No clue. But the way this is triggered is if TP1 is hit, it modifies a variable to True that allows a condition to be used like a gate. The Break Even module can then pass as a condition and if the Equity of the Bucket of Positions (Blue for Buys, Red for Sells) (Also stored the values separately in their own variable) for Group #1 Buys <= 'Account Balance', Closes Group #1 Buy Positions only. BUT! When I select the whole Break Even module, turn those blocks off, Close (partials) will work normally. When I turn all those blocks back On, Close (partials) doesn't function correctly at all. It closes partials back to back. The history shows it being closed in 2 parts. But, I have a Counter (pass once) block in condition tree only allowing it to pass once. So, I am stumped. I've been running this EA from April 4th to Current and this EA is profitable with Close (partials) set to 0. I would like to see these modules function together for testing purposes. And I'm sure this would be a very powerful addition to the Forum if solved correctly.
Social Trader Tools link for proof:
https://my.socialtradertools.com/view/2fsKDqgoqlDLohFR


-
@BBMess I have finished building my bot now have some spare time to help u, why buy position still not closed then suddenly sell at your Tp1? grid strategy rules is all buys closed then can only open new buy&sell. Maybe you try implementing my strategy link I shared earlier. I used no position blocks before it didnt work try swapping with no trade nearby & once per bar to prevent sudden open trades. -
try throw away all indicator it is misleading, when you fully trust your robot why need indicators & when u trust indicators why need robot when signals come just press buy/sell
-
I’m sorry @CAVINCENT, my EA doesn’t use any indicators at all. It’s not a grid strategy either. It’s time based and everything functions flawlessly except for closing trades after the Close (partials) block executes. My concept is quite sound but I believe this is a programming bug of some sort. When only Buys are on the chart, everything is fine. When both buys and sells are on the chart, my break even module doesn’t work.
-
@BBMess can you tell me in details how is your strategy works?
-
@BBMess привет. Ты пробовал расположить блоки в другом порядке?

-
There is a logical progression to pink blocks:
1 = for each - accesses the relevent trade information
2 = check type - ensures the trade is of correct type
3 = once per order - ensures the next action can only happen once
4 = close partially - commits the required action of the pink blocks