Custom indicator
  #1 (permalink)  
Old 06-28-2005, 05:44 AM
Sophomore
 
Join Date: Jun 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Dave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the rough
Smile Custom indicator

I see that it is going to take some time to work the kinks out of my program. Can MQL writer be used to write a custom indicator to set off an alarm when conditions are met? Or is there another way to create a custom indicator.

The one I am wanting is:

EXP. Weighted MA (2) crossing over LWMA High (30) signalling an alarm.

At least by having this I can conduct actual trading while working on my program.

I did not get good educated answers as to how to do this from the customer service people at Interbankfx.

Last edited by Dave77 : 06-28-2005 at 06:03 AM.
Reply With Quote
  #2 (permalink)  
Old 06-28-2005, 06:08 PM
TraderSeven's Avatar
Sophomore
 
Join Date: Jun 2005
Posts: 86
Thanks: 0
Thanked 1 Time in 1 Post
TraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of light
Question

Can't help with exp weigthed because MT4 only has linear weigthed MA and exp MA.

if (iMA(NULL,0,2,0,MODE_EMA,PRICE_CLOSE,0)>iMA(NULL,0 ,30,0,MODE_LWMA,PRICE_HIGH,0)&&iMA(NULL,0,2,0,MODE _EMA,PRICE_CLOSE,1)<iMA(NULL,0,30,0,MODE_LWMA,PRIC E_HIGH,1)) PlaySound("alert.wav");


Replace alert.wav with a path to a sound file of your choice
__________________
If your system fails just swap long & short :whistling

Last edited by TraderSeven : 06-28-2005 at 06:25 PM.
Reply With Quote
  #3 (permalink)  
Old 06-28-2005, 09:12 PM
Sophomore
 
Join Date: Jun 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Dave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the rough
Unhappy

I appreciate what you have provided TraderSeven, but I do not have clue what to do with the statement. I know what it is supposed to do by the statement description, but what is always lacking is where to stick these statements. I tried using the fxfisherman compiler but metatrader does not like the sound phrase. I am not a programmer, although I have had programming through Cobol.

Last night out of frustration, I wrote an email to MetaGroup who provides this software and suggested highly they hire an excellent technical writer to convert their lousy documentation into a user friendly, informative and instructional documentation with examples of how each key word is used and step by step how to build an indicator or expert advisor. Quite frankly, their documentation provided by brokers is garbage to a laymen programmer. Programmers make poor technical writers!

What irks me is there is no schooling on this stuff available and it seems by the various forums that it is learned by asking thousands of questions. What a poor way to grasp this language.

Bottom line, I need clarification. If I email the brokerage firm for programming support, I get an email 3 - 4 days later. This is pitiful response time. How does anybody truly learn this MQL language????
Reply With Quote
  #4 (permalink)  
Old 06-28-2005, 11:31 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

MetaQuotes is extremely poor in term of support as I mentioned in Barriers that make MetaTrader unattractive to big brokers thread. Why their support is poor? Because most of their staffs are Russians who are mostly English illiteracy. I noticed a few staffs who can can speak and write English well in their MT4 forum last few months, but now they might have been fired already--they're just gone from the forum.

Back to the point, there is a very good tutorial on MQ4/MQH language at http://www.metaquotes.net/experts/mql4. I'll be right back with the mql references.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #5 (permalink)  
Old 06-29-2005, 01:27 AM
Rastarr's Avatar
Senior
 
Join Date: Mar 2005
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Rastarr is a glorious beacon of lightRastarr is a glorious beacon of lightRastarr is a glorious beacon of lightRastarr is a glorious beacon of lightRastarr is a glorious beacon of light
Send a message via ICQ to Rastarr Send a message via AIM to Rastarr Send a message via Yahoo to Rastarr
Default

Yes, I certainly have to agree with everyone's thoughts on MetaQuotes documentation as well as support.

A great many cries for help go left unanswered on their own forums, their staff often border on being rude (I guess that's the issue with poor English skills on their part), they seem resistant to implementing new features despite continual user feedback and they have never replied to any emails I've ever sent.

I really like Metatrader as a stable platform with a strong scripting backend but there'll come a day soon when a better one will come along by a company who listens to users. MetaQuotes will pay the price unfortunately.

Learning to program MQL? Yeah, join the club on the slow road to picking it up. It certainly isn't easy. The last time I coded was Assembly back in the Z80 days - it's taking me a while but I'm getting there slowly.

Cheers
Martin
Reply With Quote
  #6 (permalink)  
Old 06-29-2005, 04:14 AM
Sophomore
 
Join Date: Jun 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Dave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the rough
Red face

Scorpion, any chance you could help me with this custom indicator with audible alerts. I have never programmed in such a low level language before. Like the previous person stated, he programmed in assembly language. Your Beta 1 compiler is the level I am used to program in.

The sad thing is all I want is a exponential weighted ma of 2 crossover over a lwma 30 (high) that sounds an audible alarm. Sounds like child play. I do not even know where to start the program - I take it as being in the Meta editor. From this point on, the stucture, the phrasing, the sounding of the alert is not clear at all. Can you help this ignorant MQL layman??

I wish somebody would ultimately clue me on a higher language to program this stuff in that can autotrade. Aspen Graphics Research FX software has such a language, and I know how to program it (formats similar to your compiler), but it does not autotrade (My primary purpose to programming). I am running out of time and money trying to get something autotrading. I feel like I will be dead and buried before I make sense of MQL.
Reply With Quote
  #7 (permalink)  
Old 06-29-2005, 04:23 AM
Rastarr's Avatar
Senior
 
Join Date: Mar 2005
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Rastarr is a glorious beacon of lightRastarr is a glorious beacon of lightRastarr is a glorious beacon of lightRastarr is a glorious beacon of lightRastarr is a glorious beacon of light
Send a message via ICQ to Rastarr Send a message via AIM to Rastarr Send a message via Yahoo to Rastarr
Default

Dave77,

Probably the better place for you to head over to is the Yahoo group MetaTrader_Experts_and_Indicators. There are a very helpful bunch and many will code difficult snippets/experts for no cost which is a great assistance to newbie MQL coders.

Cheers
Martin
Reply With Quote
  #8 (permalink)  
Old 06-29-2005, 05:31 AM
TraderSeven's Avatar
Sophomore
 
Join Date: Jun 2005
Posts: 86
Thanks: 0
Thanked 1 Time in 1 Post
TraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of light
Default

Quote:
Originally Posted by Rastarr
A great many cries for help go left unanswered on their own forums, their staff often border on being rude (I guess that's the issue with poor English skills on their part), they seem resistant to implementing new features despite continual user feedback
Their poor English skills are only a small part of the problem.
Even replies with 50 typos would make people happy.
They choose to not reply of give strange answers. They get many requests for other timebars so someone emailed them. He posted their answer on the MetaTrader forum. That answer was rude and very stupid from a busness point of view. Something like "we are not going to do it if you don't like it go elsewhere."

I wouldn't call myself an ace programmer but I can spot the diffrence between the programming languages. MQ4 certainly isn't userfriendly.
And it doesn't really look very powerfull either.
Why I'm here I hear you ask... Kinda accidently. I'm a long time stock trader that is widening his horizon. Forex looks easier to trade to me. The problem is that forex isn't widely supported yet. My broker offers 1-2 pip spreads + $2.50 commission. The problem is that the minimum lotsize is 25.
That's way to much for pyramiding and start trading forex.

As I wrote in the other thread the strong point of MT is that it's free. And perhaps more forex orientated than his big brothers.
www.amibroker.com released another broker interface. If they release a MT broker compatible interface I think MT will start to die. AmiBroker is not free but it's very well supported, has a lively community, tons of indicators. It's simply amazing how powerfull such a small program can be.

Changing the code between versions of MT (MQL MQ4) won't make users happy either.
__________________
If your system fails just swap long & short :whistling
Reply With Quote
  #9 (permalink)  
Old 06-29-2005, 06:49 AM
Ravique's Avatar
Super Moderator
 
Join Date: Sep 2004
Posts: 404
Thanks: 2
Thanked 1 Time in 1 Post
Ravique is a name known to allRavique is a name known to allRavique is a name known to allRavique is a name known to allRavique is a name known to allRavique is a name known to all
Send a message via Yahoo to Ravique
Default

TraderSeven, I don`t think that MT will die some near day. Simply becouse there are millions russian speaking people with money living in the ex USSR, hundreds of them are already trading forex ( how succesfully - i don`t know ) and thousaonds of them will be trying to trade in the nearest future, becouse it is getting more and more popular, but only 1% of them will be paying for software to trade( russian nature =) ). And how is the free russian based platform called? That s right - Metatrader.

As to foreign people, they must get some problems solved like this tech documentation, and customer support to be strong on the market.
__________________
Regards,
Ravique
Reply With Quote
  #10 (permalink)  
Old 06-29-2005, 07:26 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Yes, MT is favourable to many russian traders as well as russian brokers. Personally, I think MT is not gonna say "ta ta" anytime soon. MetaQuotes might have got a strong support from USA-based companies recently, that's why they can divide some capital to develop MT4 until now, and the release date is 1st Jully. In return, MetaQuotes might have to do foreign companies a favour back, like the changes of MQ4 syntax and better doc in English. If MetaQuotes work on MT4 alone, they would choose to leave the MQL syntax intact, which would please their old clients. In short, MetaQuotes' strategy now is to expand the foreign market of their MT platform. If MetaQuotes has planed right, we will all see upcoming supports from big brokers.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Indicator For JMA_Slope With Alert !! lavista4u Indicators 3 08-27-2007 04:15 PM
Need a custom MA cross indicator... [Coded] wadeboxjr Indicator Coding 6 07-17-2007 11:20 PM
Request custom indicator scorpion Indicators 1 09-12-2006 12:32 PM
ATR MQL II Custom Indicator Request Dave77 Indicators 0 08-08-2005 07:11 AM


All times are GMT. The time now is 02:28 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now