How can I change the stop loss before I buy?
-
How can I change the stop loss before I buy?
Let's say I have a stop loss of 200 pips as a constant.My stop loss from an indicator has 160 pips.
I now want to use the lower stop loss from my indicator to buy.
How can I query this in Mql?
Or is there another way?

-
I don't know hoe to do it with custm mql4 code. I suggest you to vompare both SL levels on a Condition block and then put it into a variable. Maybe there is a more efficient way, but I don't know.
-
That Stop-Loss box can take input from all kinds of other fxDreema logic.
You came all the way to the Buy now block and skipped over all the good stuff.
Go back. Replicate your indicator logic in fxD and let it plug the right number in for you.
I think you have different questions to ask.

Good luck.
-
Hi, you must use variable to stoploss.
Stoploss (Constant) = 200
İndicator Stoploss (Variable)=160
Stoploss (Variable) =0
-
-
Okay. Constants are for you to set. Variables are for your program to set.
Take a look at the orange Formula block. Its purpose is to create interesting values and stuff them into variables. Some things are easy, some a bit more involved.
It is much more powerful than the help suggests.
Someone should make a half dozen videos ...
Good luck!
-
Thanks. I check it out.
