I got this indicator of a zig zag that doesn't repaint. I would like to make an EA that could trade every time a line is drawn to the opposite. I thought I could converted into an EA but somebody suggested icustom.. Which I don't understand. IN the indicator their is a length you can change to 4, 5, 6, 20 or whatever number you desire. This length determines how long or short your swings will be to the up or to the down side. Can somebody help me?
- Cycle indicators
- [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you.
- Zig-Zag alert indicator
extern int Candle=480; extern int Length=4;iCustom(Symbol(),NULL, "ZIG ZAG NON REPAINT.mq4", candel, length, 0,shift);
WHRoeder:
iCustom(Symbol(),NULL, "ZIG ZAG NON REPAINT.mq4", candel, length, 0,shift);
iCustom(Symbol(),NULL, "ZIG ZAG NON REPAINT.mq4", candel, length, 0,shift);
iCustom(Symbol(),NULL, "ZIG ZAG NON REPAINT", candel, length, 0,shift);
WHRoeder:
iCustom(Symbol(),NULL, "ZIG ZAG NON REPAINT.mq4", candel, length, 0,shift);
iCustom(Symbol(),NULL, "ZIG ZAG NON REPAINT.mq4", candel, length, 0,shift);
I got the basic skeleton.
//+------------------------------------------------------------------+ //| sirwilliamszz.mq4 | //| Copyright © 2010, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2010, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- //---- return(0); } //+------------------------------------------------------------------+
sirwilliams:
I got the basic skeleton.
No one knows exactly what you want the expert to have within its framework.
If you cant code it in its entirety then you may need to pay someone or learn to code. I'm not trying to be rude, just telling you the facts.
WHRoeder is basically showing you how to add your custom indicator into an EA using iCustom().
Do no use iCustom(Symbol(),NULL, "ZIG ZAG NON REPAINT.mq4", candel, length, 0,shift); with .mq4 inside.
Instead use iCustom(Symbol(),NULL, "ZIG ZAG NON REPAINT", candel, length, 0,shift);
Just like sergery noted :)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register