Page 1 of 1

coding gurus wanted

Posted: Wed Nov 18, 2009 10:37 am
by djevlen
hi.. if you know how to code for mt4 pls help !

i have attached ma crossover alert indicator..its the best i have found so far(tried all available) but its still useless until 2 improvements are made.

problem 1: alert windows pops up and make alert sound every time i change to different time-frame. Make it away pls and make the pop up window and sound to activate only on crossover and nothing else.

problem 2: there is no posibility to tell the indicator how many times u want to be alerted, so it keeps alerting and u keep checking the same alerts over and over again

if you leave 1 hour chart on and crossover happens it will allert you, and then next hour again it will alert again about 1 hour old crossover.
(this goes for all time-frames, easy to test on 1 minute with fast moving averages.)
PLs. make it alert just 1 time on every crossover. or add an option to specify the amount of alerts.

Any one here skilled enough to do this ?

Pls help.

Posted: Wed Nov 18, 2009 2:14 pm
by Patch
djevlen

I know two excellent MT4 programmers who have very reasonable rates if you don't hear from anyone. This could be your backstop.

Patch

Posted: Thu Nov 19, 2009 5:37 am
by snscott
Here djevlen, try this. The problem you had with the one you uploaded is that it was looping through all the bars every time and if any of those bars had a cross-over, it was marking the spot with an arrow and then sounding the alarm.

This was obviously modified (as it states at the beginning of the code) from another cross-over indicator that was probably, originally, ONLY marking the cross-over spots and the second coder added the alerts and emails to THAT. At least he was smart enough to make it only do this once for each new bar, but still, as a new bar was started, the indicator ran through the bars to mark the cross-over spots and that is why you'd keep getting the alert.

Try the attached. I left it essentially the same but did "clean up" the code a bit :wink: - removing some unnecessary redundancies/ineffeciencies.

Note that THIS version will only start alerting AND MARKING cross-overs from the time you load it onto a chart - it does NOT show you all the historical places where the MA's crossed.

I'm about to get on a plane here in few hours and so won't be able to respond or do anything more with this until next week (if I introduced any bugs) - but I did make sure it compiled without errors and loaded onto a chart without errors. I did not, however, sit around to wait for it to signal a cross-over.