- "... but I can't get it to work" is a bit to less to help you. What does not work: Alert, SendMail or Sound? Is there an entry in the 2 logs?
- Have you gone through you indicator wit the debugger - but make sure it is not running anywhere else while you debug!
- Can it be that you never reached the if(( TriggerCandle > 0 ... ?
- "... but I can't get it to work" is a bit to less to help you. What does not work: Alert, SendMail or Sound? Is there an entry in the 2 logs?
- Have you gone through you indicator wit the debugger - but make sure it is not running anywhere else while you debug!
- Can it be that you never reached the if(( TriggerCandle > 0 ... ?
Thank you for the answer.
I do get an alert, (which is what I am focusing on right now). There are also no errors in the compiler.
However, what I want to achieve:
Get an alert for every new inside bar.
What I get:
An alert for every new bar that is starting.
What I assume is that since a new bar always starts as an inside bar this prompts the alert. What I don't get is that I am using HighBuffer[1] so it should focus only on the second candle not the current.
Also it could be that the Buffer is drawn to a candle while it is in the current state. However, since I am using HighBuffer[1] not HighBuffer[0] I don't see why this should matter.
It could be another problem I don't see, because I'm not so familiar with programming.
As I understand the code, a candle that is not an inside bar gets a value of EMPTY_VALUE and the test >0 should not execute the if statement (alert).
google mal nach: "mt5 inside bar pattern" - ich wieder hole mich, warum das Rad neu erfinden, wenn es bereits verschenkt wird?
google mal nach: "mt5 inside bar pattern" - ich wieder hole mich, warum das Rad neu erfinden, wenn es bereits verschenkt wird?
Danke,
Nach weiterer suche habe ich den hier gefunden: http://www.pointzero-trading.com/Products/view/PZInsideBars
Funktioniert mit alert sehr gut, falls noch jemand sucht.
- www.pointzero-trading.com
- Freie Handelsapplikationen
- Über 8.000 Signale zum Kopieren
- Wirtschaftsnachrichten für die Lage an den Finanzmärkte
Sie stimmen der Website-Richtlinie und den Nutzungsbedingungen zu.
I am trying to include an alert into an inside bar indicator but I can't get it to work. It gives me an alert for every new candle instead of only for inside bars.
I was hoping you could provide some help.
//At the end of the onCalculate function
This is the code I was using.
The indicator I am using is from Tecciztecatl's inside bar indicator.
https://www.mql5.com/en/code/16533
I hope someone can help
Best,
Paul