Trailing Stop based on MACD line
-
How do i set a Trailing stop based off of the MACD crossing a certain value?
USD/JPY example
Exiting a buy
MACD crosses .02 moving up and triggers a .01 trailing stop on MACD indicator.Thanks for any help
-
@jameshovey85 I'm not sure I fully understand that part of 'crosses .02' part but you can do the second part this way:

The first should use a condition blocks between blocks 2 and 3 to be completed.
-
Thanks for the help. I am very new to this. I hope this will help explain a little. I created 2 lines on the chart for USD/JPY using the MACD signal.
When exiting a BUY the line crosses the .02 line. I would want a traililng stop with a .01 distance and a .001 step behind it. The trailing stop would be using the MACD indicator and not the price of the pair.
I have circled in red where the trailing stop would start on the chart snip. The line below that is the trailing stop when created. The stop loss would increase steps at .001 as the indicator moves up.

-
Thanks for the help. I am very new to this. I hope this will help explain a little. I created 2 lines on the chart for USD/JPY using the MACD signal.
When exiting a BUY the line crosses the .02 line. I would want a traililng stop with a .01 distance and a .001 step behind it. The trailing stop would be using the MACD indicator and not the price of the pair.
I have circled in red where the trailing stop would start on the chart snip. The line below that is the trailing stop when created. The stop loss would increase steps at .001 as the indicator moves up.

-
@jameshovey85 I'm not an expert at MACD but how can you relate the indicator's value with the price level? Is maybe the MACD value a distance in pips applicable to current price?
-
@l-andorrà I would not want to relate the MACD to the price level. The MACD value is being trailed. NOT the price of the pair.
-
@jameshovey85 But the MACD value is a number that need to be realted to current price in some way. How many pips is the SL supposed to be if MACD is 0.06, for example? The EA need to know where the SL needs to be as a price level, not as a MACD level.
-
@l-andorrà I see. So it sounds like there is no way to trail the MACD line. I am able to buy and sell off of the indicator but can't create a trailing sell on the MACD. Thanks
-
@jameshovey85 You can do it this way...
Put the blocks as l-andorra said but in condition block before the Modified stops you will have to put a variable that store the mach price -
@jameshovey85 You can use the MACD as a trail, but only if you link it to a price level in any way.
-
@alphaomega Thanks for the help. I think a am way too new at this to understand. Can you attach a picture?
-
@jameshovey85
I will start something like this.. then struggle my way with 1000,s of testing, and begging in the forums.... till I have what I,m looking for.... good luck... the thing is you want to trail MACH... but what exactly is it you want to trail of the MACH? It would also then be better if you take the MACH trail you want and write a variable for it
