♥ 0 |
Can you create an alert for when the EMA 8 touches the bottom of the wick on green candle and when the EMA 8 touches the top of red candle.
Marked as spam
|
Private answer
There is quite a lot more involved here than just checking if the moving averages have made contact with the wicks of these candles. If you do some in depth research you will find that a simple solution will produce many signals you do not want. My expectation is that when you study this in detail you will find there are at least a half dozen other conditions you must account for in order to capture the exact signals you want and leave out the rest. By the time we arrive at all those other details we’ll be well beyond the scope of a free solution posted in the Q&A forum. Marked as spam
|
|||||
Private answer
If it’s going to cost me then I don’t mind I just need the EMA 8 to alert and sound when it touches the wick. I have a strategy I just need the alert not really worried about how many alerts I get. Marked as spam
|
|||||
Private answer
Ok, so we’ll draw up some code that checks if only the wick of a candle has crossed the 8 ema. This will be accomplished by checking if the high is above the 8 ema, while the close and open are below it. For the other side we’ll be checking if the low is below the 8 ema, while the close and open are above it. This means the pattern is only complete once the bar has completely closed and the new bar has opened. So we’ll need to craft the signals to trigger on the open of the bar that follows this pattern. (that means the audible alerts will not sound until the bar that pierces the 8 ema has closed and the next bar has opened) Here is the code. Screenshot attached. I have placed the crosshairs purposefully to demonstrate the extreme fringe of the signals. The displayed value of the 8 ema is rounded. So this looks like the open and the 8 ema are equal. However the 8 ema is actually below the open. Which means that is a valid signal given the specifications you listed.
Marked as spam
|
|||||
Private answer
I’m getting error messages as shown in attachments. Marked as spam
|
|||||
Private answer
Thanks for the indicator but I have found that it creates to much noise and traffic so I’ve looked at maybe adding candlestick patterns and I found that the strategy works well with inverse hammers and hammers, hangman and shootingstar is there way you can possibly alert when the wix is touched on the top of red candle and wix is touched on the bottom of green candle. Still sticking with EMA 8 using the candlestick patterns listed. Marked as spam
|
Please log in to post questions.
The code I provided only contains 11 lines and your screenshot indicates you have more than 17 lines. This, combined with the error messages tells me you have likely pasted the code twice, duplicating every line.
Okay let me try again