Why is this EA not taking trades when it is supposed to
-
@od from the forum
https://fxdreema.com/forum/topic/4183/partial-close-only-once
-
@od said in Why is this EA not taking trades when it is supposed to:
@ambrogio Did you use every tick to backtest?
yes, always
-
@ambrogio https://fxdreema.com/shared/6l20hEhSb This is the same EA with the close partially strategy blocks. When back testing this strategy I find that after closing partially no new partial trade opens. With the same block arrangements, once closed partially it is totally closed. What could be the reason for the partial trade not to open after closing partially ?
-
@od check the "close partially" block, you are closing 100% of volume
-
@ambrogio Yes with the intention to open another similar trade.
-
@ambrogio I want if a trade is in profit it has to close partially every 20 pips while the stop loss level of the parent trade remains the same for all partial trades.
-
@od said in Why is this EA not taking trades when it is supposed to:
@ambrogio I want if a trade is in profit it has to close partially every 20 pips while the stop loss level of the parent trade remains the same for all partial trades.
let me explain better, if you want to close "partially" a trade, in the block "close partially" you do not have to choose 100% otherwise it closes it all. You have to put for example 50%, or 25%
-
@ambrogio I've tried both ways it is not solved plus still the OCO is not deleting some trades . I wish you could share with me your full backtest results for a pair for a substantial amount of time like a year or two to find out if it is my system of back testing that is really wrong.
-
@od i can't do backtest service, anyway the minimum lot size = 0.01 cannot be divided further, put a higher lot size like 0.1
Close partially 50%
Change pips away value, because 20 pips is the same level of the stop loss, it's wrong. Put a lower value like 10 pips
-
@ambrogio What if you want the new partial trade to have the same lot size as the previous one, so that with the same stop loss the strategy is sort of taking partial profits. If 50% is put the lot size keeps reducing with each close partially.
-
@od said in Why is this EA not taking trades when it is supposed to:
@ambrogio What if you want the new partial trade to have the same lot size as the previous one, <<< don't get me wrong but this doesn't make sense >>>
so that with the same stop loss the strategy is sort of taking partial profits <<< maybe i don't understand your strategy, better if you take a picture with some line drawn >>>.
If 50% is put the lot size keeps reducing with each close partially. <<< yes, sure, this way the "close partially" block works
-
@ambrogio What the strategy is is if a trade is 20 pips in profit it should take profits and open a trade similar to the one just closed. Lot size should be the same and also the stop loss level and take profit. In this case there is no take profit so if a trade is profiting, at every 20 pip interval it should "close partially" and the new trade should have the same volume not reduced.
-
@od like this ? check inside each block, it's for buys trade only
-
@ambrogio Not really . Cant the close partially block close 100% volume and open new one with same settings?
-
@od yes , sure. You have to change the percentage in the "close partially" block
-
@ambrogio But with 100% the close partially block is not closing partially and opening another trade as it is supposed to
-
@od Please, this is an opened buys trade, can you draw few lines of what you would like to happen when the price goes up?

sometimes two lines is better of hundred of words
-
-
@od I'm afraid you don't have a clear idea of what it means to partially close the trade. There are no children or relatives trades, instead the size of the initial lot is reduced. See below: initial lot = 1 , partial closing 50% every 20 pips.

-
@ambrogio So is there no way to possibly do that in fxdreema
