Trailing Stop (Stoploss)
-
Hi friends, I made and EA for Boom in which i kept 6 points as trailing stop loss. So when it takes 4 calls from the 4th call it calculate 6 points as stoploss. When there is a boom happens the trailing stoploss is moving upwards based on the poing where it boomed. So how to stop that stoploss point moving forward. Pictures attached for reference.


First image is where the sl is 6 points below 4th call.
Second image is where the boom happened and the stoploss moved upward.

-
SL does not work when there is a boom or crash, you need to close the trade before this happens.
-
@jstap Sir what you mean by SL will not work? When boom or crash happens, SL is trailing in opposite direction which i want to stop.
-
I mean it will crash through and close where boom/crash stops
-
@jstap sir what about tp , how can i tell the boot to take all the profit from the spike not half of it , because i'm trying to catch spikes and apparently when i i put fixed tp the boot will only take what you told it to do , and i will not benefit if the spike goes bigger , help please
-
I am not sure, I can't use B&C in the uk, you need to stop or take before the spike happens.
-
@jstap the problem i trying to catch spikes with my strategy , spikes are important here for my strategy , thanks man
-
@jstap can you tell me how i can tell the boot to close the trade after the next bearish candle right away as a tp
-
candle ID1 open>close-close trade
-
@jstap this works for pending order ! even if it is not triggered yet
-
If you delete not close
-
@jstap no i want it to close after the order is triggered and the condition i 've told to meet
-
Then you need to set up flags, so when condition true you allow trade to close.
-
@kimo12 it would be highly appreciated if you tell how to do it please
-
Try and set up a small project doing this, you can then add the shared link here and say what's not working.
-
@jstap here is it an example https://fxdreema.com/shared/EkmAEQ8Vc please check if thats how flags work , thanks
-
Would be like this:

But you don't need it, you need blocks separate to your buy/sell tree:

-
@jstap so the second image would work fot the purpose i'am loking for ! without the use of flags , and how the other separated blocks would know if the pending order is triggered , please bear with me i'm new to this , thanks again