Hi, everybody!
I tried to make MACD based EA, I can create signal/main line crossing over MACD threshold levels. But I wanted to make like Signal crosses over main line above the MACD threshold settings which should be triggered trade. Can anybody help me to create this settings please
Need idea about MACD main & signal line crosses above the MACD threshold settings.
-
Hi, everybody!
I tried to make MACD based EA, I can create signal/main line crossing over MACD threshold levels. But I wanted to make like Signal crosses over main line above the MACD threshold settings which should be triggered trade. Can anybody help me to create this settings please -
@yumatheba Didn't understand what you try to achieve.
-
-
@yumatheba ok, got it. So you want to enter the market before the zero line cross, right?
Actually that is the same like zero line cross, just with a different number.
Use condition block with x< upper threshold-level for sell trade and you'd be fine I think.
For the buy trade use x> lower threshold level -
@trader-philipps Hi! I tried to upload picture but it didn't uploaded.
Now I uploaded it. That red horizontal line is threshold line setting around 0.00001. I can make that main (magenta) or signal (yellow) line cross that horizontal can trigger trade. But I wanted is that magenta crosses over yellow line above the red threshold line should trigger trade. But should not be trigger trade while main line crossing over signal line below the horizontal threshold line. -
@trader-philipps Yah I know that condition X< upper threshold or vice versa. But I wanted is that main crossing signal above that threshold (Big white down arrow) should trigger trade, but not at crossing over threshold level ( not trigger at small red arrow & white up arrow).
-
@yumatheba To catch the value of the cross exactly I think is hard. If it is sufficient, just check if on candle ID 1 there was a cross and check if both lines were above the threshold. In that case the cross happened above as well (most likely). If you want to make sure you might check that condition for candle IDs 1 and 2.
-
@trader-philipps Yah, I did that too. But it is blind settings, can't be confirmed how many previous candles is crossing, so it is just like guessing candle. Maybe we need to put add variable or constants for MACD Threshold in condition block like this picture. But I don't know how to put those variable like this
-
@yumatheba Well, I'm not sure, if I get your right. Should the trade be opened when the threshold is met or should the main line after the cross with the signal line, but only if main line is above threshold?
However, here are the 2 options in blocks I would start with:
- MACD cross must be above threshold:
- Macd main has crossed (sometimes) the signal line and signal is if main line crosses threshold:
Whatever your intention is, one of both blocks should be sufficient.
-
@trader-philipps Thank you very much. Exactly like this what wanted. But i didn't know that by joining such separate condition block work like this. I will try to figure out either it is working or not. Once again thanks for your valuable input.