greenpar / Publications
Forum
Indictor alert multiple currency pairs and timeframes
I'm trying to build an indicator that will alert me when a candle reaches a set size across multiple currency pairs and timeframes. I managed to get it working across two timeframes on one currency pair but have since modified it (see code below). I have searched the forum and managed to get some
Alert specify WAV file
Is it possible to specify for the Alert function a specific WAV file? I understand that the default alert sound can be changed in Tools -> Options -> Events, but I wished to specify the WAV file in the Indicator itself
Indictor sound alert to match currency pair
I have an indictor that gives a sound alert when the price moves a certain amount, adapted from - https://www.mql5.com/en/code/14388. For each currency pair it gives a different sound alert, see extract below. if ( TimeCurrent ()-lasttime>=TimeDeley && range> int (BarPoint)) {
EA error, possible loss of data due to type conversion
In my EA I am getting the error message, "possible loss of data due to type conversion", for both occurrences of "prevtime = Time" in the EA code below: if ( Time [ 0 ] == prevtime) return ( 0 ); prevtime = Time [ 0 ]; if (! IsTradeAllowed ()) {