check stop-loss block to check amount of loss in deposit currency...
-
Guy,
I want to have this block checking my stop loss that if it is over 50 USD (deposit currency) then do something.... but with the setting in the picture it is not checking 50 USD nor pip as I tested with JPY pairs and USD pairs. JPY Pairs, it will always works until I moved the stop loss to like <1 pip while USD pairs do not work even -4000 USD loss.
Do you perhaps know how should I set this block to check stop loss in deposit currency value? or how to do it with less blocks as possible?

-
@Xeta50 You are trying to check the SL, not the current profit. You should use this block instead:

-
Thank you @l-andorrà but I think my question and picture might make it unclear about what I really want.
I want the EA to
- check what will be my loss for the current set stop loss
- if the loss (from set stop loss) is over -50 USD then move the stop to be closer like to the lowest of last 5 candle (for long order) to make the maximum loss smaller.
or I am wrong about your suggestion block (may that check profit block can be put -50 and work like what I mentioned above?)
-
Ok. Now I understand. Then what you need is some custom code doing the calculation of loss for the current SL. No fxDreema block does that directly, I'm afraid. Maybe jstap can be helpful here.