coding gurus wanted

free & uncensored discussion arena for TheRumpledOne

Moderator: moderators

djevlen
rank: <50 posts
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0
Gender: None specified

coding gurus wanted

Postby djevlen » Wed Nov 18, 2009 10:37 am

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.
Attachments
Copy of _MA_Crossover_Alert_122334.mq4
(8.33 KiB) Downloaded 208 times

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
Patch
rank: 500+ posts
rank: 500+ posts
Posts: 941
Joined: Sat Jan 06, 2007 6:13 pm
Reputation: 0
Location: Virginia
Real name: Jeff
Gender: Male
Contact:

Postby Patch » Wed Nov 18, 2009 2:14 pm

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
ENOUGH being a Yalie for me Back to the Sea. "What i can lose, i can win" "YES YOU CAN" - dragon33 -"Pick one method and one pair and stick with them until you master it. "The choice is yours - success or failure." TRO

User avatar
snscott
rank: 50+ posts
rank: 50+ posts
Posts: 60
Joined: Sun May 24, 2009 2:15 pm
Reputation: 0
Location: Great Republic Of Texas
Real name: Steven Scott
Gender: Male

Postby snscott » Thu Nov 19, 2009 5:37 am

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.
Attachments
SNS_MA_Crossover_Alert.mq4
Modified code
(6.64 KiB) Downloaded 246 times
Image

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “TheRumpledOne”