Check Closed trade and repeat Conditions
-
Help, I am stuck. https://fxdreema.com/shared/OrVztTf9e
After the buy trade on the left has been executed and closed, I want the blocks on the right to check the stop loss of the closed trade & if it is => 80 pips it should go through the same set of conditions as the last trade(weekly filter, time filter, Price close > 20SMA) then place another trade (I want to achieve this without using martingale buy option).Thanks
-
@didymario7 I don't understand the logic behind that. as far as I see, you want a first trade to be open (left tree block). But why do you need the SL distance of a closed trade when all of them are exactly 80 pips away the open price? I don't see any variable TP to be cheked.
-
@l-andorrà i will readjust and repost. Please bear with me.
-
@l-andorrà Ok Take a look at it again. I am very close to getting the desired output.
https://fxdreema.com/shared/ffJJeS0X
I want the blocks on the right to check the volume of the current open profitable trade. if the volume is equal to AccountBalance()*0.001 (which is thesame as the volume of the 2nd level in the martingale sequence), then close the trade with the specified take profit, otherwise, use trailing stop.
I tried the setup as it is in the link but it keeps closing all profitable trades using trailing stops. -
@didymario7 Use a pink 'break' blocks just below block 657.
-
I just did that but it is still applying trailing stops to all trade.
Here is what I noticed. If I change the "Value" section to "1" instead of "AccountBalance()*0.001" (under the conditions on the right hand side), it works correctly but only when the lot size is "1lot". I need to be able to dynamically adjust it instead of using fixed values.
https://fxdreema.com/shared/ffJJeS0X
Please have a look once more.
-
@didymario7 You didn't use the block I recommended.
-
@l-andorrà Kindly upload a picture of what a pink "break" block looks like. When I did a search the only pink break block I found was the "(loop)break" block which I attached to 657.
https://fxdreema.com/shared/ffJJeS0X
Thanks
-
@didymario7 Yes.it is that block exactly that should be connected BELOW block 657.