Cannot Turn Off Block
-
Hello,
I have a problem in where if profit reaches => 12 USD which is Block 6, should turn off Block 5.. But if profit falls below 12 USD, it again initiates Block 5 in where it should have been off already. Kindly see image.

Am I missing something?Thanks in advance for your respone!
-
I'm also having the same problem.
I do not know if it's the Turn OFF blocks or the check Type (last winner) or Check profit (last closed) blocks.
-
@engrled said in Cannot Turn Off Block:
Hello,
I have a problem in where if profit reaches => 12 USD which is Block 6, should turn off Block 5.. But if profit falls below 12 USD, it again initiates Block 5 in where it should have been off already. Kindly see image.

Am I missing something?Thanks in advance for your respone!
Try these blocks that worked for me:

-
@tcanuto Thanks for the suggestion but my problem is mainly on existing trades without any closed trades. I still cannot figure out how to disable Block # 5 in case the profit reaches 12 USD or more. If the profit reaches 12 USD then initiates the trailing stop and once the profit falls below 12 USD, the SL goes back to the Open price in which I don't want. Upon hitting the 12 USD profit, the SL should remain as to the last trailing stop recorded.
FXDreema Admins we need your help with this.
Thanks advance.
-
Its hard to tell from picture, but if you press left upper corner button "Projects" and create a shared copy it would be way faster to get help. You dont need AND block, you should switch block 2 instead block 5, at some point you have to turn it on back.
-
@Aizen Thanks I will try your suggestion!
-
Here is the Shared copy FYI: https://fxdreema.com/shared/8oWuwd71e
-
@engrled Try the Check profit (unrealized) block
-
The problem with everything is when you want 2 conditions to happend in the exact same time , but i sat down a couple of months ago just tested until i found the solution, i worked with crossover on everytick , like that i had 2 lines , one above and one below , and i wanted it to trade if it went above the upper and then went down below it again . then you are looking for >and < at the same second . and thats why most use x </> but that are comparing the last bar to do that .
So i used something that you can use , i used flags , but if you use:
https://fxdreema.com/shared/bhucayUZc
it should use the trick
so you are using sections that only can pass once , and when the opposite of that is true that will close , and by that create a loop
-
@tcanuto Thanks but still have the problem even though I have the "check profit (unrealized)" which is block # 2 as you have suggested be switched off instead.
-
if i understood your what you wanted this should work
-
@timmyhanke yes a loop could be done but I was thinking how about a variable in where if the profit reaches 12 or more then the variable will have a value of "1" then another check will happen after block 1 which will verify if the variable has a numeric value 0 or 1. If the value will be "0" then it will proceed to block # 2 but if the value is "1", it will disregard block #2 and proceed its way to block# 6 as in the previous image I posted. But how can I create a condition to compare if the value is "0" or "1"? Which block can I use?
-
@engrled If I were to implement the diagram https://fxdreema.com/shared/2W60eSN4d , will block # 9 work?
-
Variables is something that im not good with , and you should ask roar .
And by what i wrote i just did by adding turn on and off blocks .
What i did was when the profit is > 12 it turn on another section in my case block 5 which is otherwise turned off.
So if the profit is > 12 it activates the trailing and block 5 , and if it goes < 12 after beeing at >12 a new SL is created and then closes that section after the SL is created .
And can only be activated again if it goes above 12 again and then goes below that , isnt that the principle that you wanted ?
-
the section were you use profit is above 5 and next block below 12 will never ever pass because it has to pass in the same tick which , because a condition will never ever be <and > at the same tick especially if you use 2 different values like 5 and 12 .
thats why i used sections , if one section is true it activates that until the opposite is true , and when section 2 is true it will close itself out .
-
@timmyhanke it is actually my problem that I don't want to happen. What i require is once the profit reaches 12 or more then it will activate the trailing stop. Even if the profit goes less than 12 USD again, the last stop set by the trailing stop should still be the current SL. Is there any workaround for this?
-
the way i made it yesterday that i sent you is exactly that
-
When the profit is above 12 the trailing will be activated and never closed out and turn on a new section , if the profit goes below 12 it will create a SL and then close out that section after the SL is created. and it will loop like that.
So if the profit dosnt go back to below 12 it will not create a SL and only have the trailing activated
-
@timmyhanke I have actually did the same concept although a little different in the Check Profit (Unrealized) block as shown in the image below. Is my setup wrong here? Should i set the 12 USD limit in the "Filter trades with certain profit" or the "Profit settings for the filtered trades"? Can you check on this shared project please? --> https://fxdreema.com/shared/Xeb8RHlFd
I actually tried the one you suggested but still the SL changes to Open price once the profit goes below 12 USD.) -
You wrote you tried my suggestion and that the sl changes to open price when profit goes below12 usd , isnt that the point of all of this ?
you even have it on what you made , <12 usd - create new sl at open price