"Adjust" take-profit by the amount of the spread
-
I am wanting to adjust take profit by the amount of the spread in the adjust field. negative value for buys and positive value for sells. Can anyone lend any assistance on what I should attempt?
-
@drewliedadeuce In market propities you can select spread, put this figger in a variable, you can then use this in a pink block tree, the spread will fluctuate as the market moves though so not sure how this will affect the trade, worth a try though.
-
@drewliedadeuce
you could also grab the average spread which is calculated by the ea
-
@bk7 how might I do this?
-
@jstap thank you for your response, I have a few questions if you could elaborate on how might I do this?
-
what type of variable should I use?
-
how should I input this in the adjust field?
-
-
@drewliedadeuce The variable for spread should be a double, in adjust if variable is called SPREAD,
-SPREAD will minus spread amount
+SPREAD will add spread amountif the spread records in pips (likely)
-SPREAD pips will minus spread amount
+SPREAD pips will add spread amount -
@jstap Thank you this is great help. however i face one issue.
I forgot to mention my TP is the 10 EMA. which does provide a value. and I would like to adjust the TP by the amount of the spread. so i do not have the option to select market propeerties. any solution?

-
@drewliedadeuce Save it into the variable like this:

-
@jstap awesome! thanks!
-
@jstap one last question. what should I enter in the "value" field in variables tab?

-
@jstap please disregard. that was a stupid question. i figured out it was 0. I am very new to constants and variables. thanks again for your help!

-
@drewliedadeuce : )