• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 6:12pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:12pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Looking for US based mql programmer 1 reply

MQL Coding - Let’s talk about how to code mql 0 replies

MQL programmer is needed in Athens for EA development 1 reply

Professional MQL 4 programmer wanted 6 replies

MQL programming professional needed. 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 7
Attachments: MQL 4 programmer needed
Exit Attachments

MQL 4 programmer needed

  • Last Post
  •  
  • Page 1 2
  • Page 1 2
  •  
  • Post #1
  • Quote
  • First Post: Sep 2, 2012 7:57pm Sep 2, 2012 7:57pm
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
Please help to make indicator that able to expand life of the object (rectangle) up to current price. Another words if I've draw rectangle anywhere in history on charts it will continue to expand into the future with price movement.
Thank you in advance!!!
  • Post #2
  • Quote
  • Sep 3, 2012 10:30am Sep 3, 2012 10:30am
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
may be it's not possible in MQL-4? any programmer, please answer.
Thanks
  • Post #3
  • Quote
  • Sep 3, 2012 10:34am Sep 3, 2012 10:34am
  •  futurespec
  • Joined May 2011 | Status: If you think I'm mad, I must be mad | 1,058 Posts
Yes it is possible.

M.
If you think I'm mad, I must be mad
  • Post #4
  • Quote
  • Sep 3, 2012 10:38am Sep 3, 2012 10:38am
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
Quoting futurespec
Disliked
Yes it is possible.

M.
Ignored
Thanks for quick answer. Can you do it?
  • Post #5
  • Quote
  • Edited at 1:02pm Sep 3, 2012 11:04am | Edited at 1:02pm
  •  futurespec
  • Joined May 2011 | Status: If you think I'm mad, I must be mad | 1,058 Posts
Yes I can do it if I think long and hard about it!!!!!!!!!

Pretty pointless but here you go.....

You need to name your rectangle "MyRectangle"

M.
Attached File
File Type: mq4 Extend box.mq4   < 1 KB | 387 downloads
If you think I'm mad, I must be mad
  • Post #6
  • Quote
  • Sep 3, 2012 11:06am Sep 3, 2012 11:06am
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
Wow! Thank you so much!!! Will try it right now!
  • Post #7
  • Quote
  • Sep 3, 2012 11:12am Sep 3, 2012 11:12am
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
It perfectly works. Thank again!
  • Post #8
  • Quote
  • Sep 3, 2012 11:24am Sep 3, 2012 11:24am
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
Only one problem. It,s extend only one rectangle on chart, but i have dozens.
I've tried to name them MyRectangle1, no results.
Can you help me, please!
Thanks
  • Post #9
  • Quote
  • Sep 3, 2012 11:42am Sep 3, 2012 11:42am
  •  nubcake
  • Joined Oct 2009 | Status: >Apocalypto< for Deputy PM 2020 | 3,686 Posts
Quoting futurespec
Disliked
Yes I can do it if I think long and hard about it!!!!!!!!!

Pretty pointless but here you go.....

You need to name your rectangle "MyRectangle"

M.
Ignored
lol, 900 bytes. smallest file i think i've seen here.

btw you put the time var in the wrong scope, and probably not a good idea to test > when mtime could initialize to anything (in theory).

Inserted Code
//-----------------------------------------------------------------------------
//                                                 Mn Extend Box              |
//-----------------------------------------------------------------------------

#property copyright "Mn"

#property indicator_chart_window

#define rectnamepart "extendrect";

int mTime;

void deinit()  { return (0);  }

void init()  { return(0);  }

void start()  {
  int c;

  if(Time[0] != mTime) {
    for (c = 0; c < ObjectsTotal(); c++) {
      if (StringFind(ObjectName(c), rectnamepart, 0) > -1) {
        ObjectSet(ObjectName(c), OBJPROP_TIME2, Time[1]);
        ObjectSet(ObjectName(c), OBJPROP_PRICE2, Close[1]);
      }
    }
  }
  mTime = Time[0];

  return (0);
}
or something like that. i just typed it here... didn't bother actually testing this.

i like a good challenge
Forex Trading for the Savvy Beginner
  • Post #10
  • Quote
  • Edited at 12:58pm Sep 3, 2012 11:56am | Edited at 12:58pm
  •  futurespec
  • Joined May 2011 | Status: If you think I'm mad, I must be mad | 1,058 Posts
This is why I will be leaving this site!!!

You ask for 1 thing and then when it is done you want something else!!!
It simply wastes too much time!!!
And by you I do not just mean you ... so many others are the same!!!

Name your boxes MyBox1, MyBox2 etc

M.
Attached File
File Type: mq4 Extend box.mq4   < 1 KB | 999 downloads
If you think I'm mad, I must be mad
  • Post #11
  • Quote
  • Sep 3, 2012 12:14pm Sep 3, 2012 12:14pm
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
Give me your e-mail, I,ll send you money. Just PM me.
Thank you for job!!
  • Post #12
  • Quote
  • Sep 3, 2012 12:20pm Sep 3, 2012 12:20pm
  •  futurespec
  • Joined May 2011 | Status: If you think I'm mad, I must be mad | 1,058 Posts
Much as I would like to it would not be fair to charge you for 5 minutes work.

Hope it helped.

M.
If you think I'm mad, I must be mad
  • Post #13
  • Quote
  • Sep 3, 2012 12:32pm Sep 3, 2012 12:32pm
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
Thanks for your time, but this indicator does not works.
  • Post #14
  • Quote
  • Sep 3, 2012 12:59pm Sep 3, 2012 12:59pm
  •  futurespec
  • Joined May 2011 | Status: If you think I'm mad, I must be mad | 1,058 Posts
Go back and try it again.
If you think I'm mad, I must be mad
  • Post #15
  • Quote
  • Sep 3, 2012 1:43pm Sep 3, 2012 1:43pm
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
Quoting futurespec
Disliked
Go back and try it again.
Ignored
Sorry. It's not expand. Rectangles named MyBox1, MyBox2.
But thank you for trying, I respect your time.
Attached Image
  • Post #16
  • Quote
  • Sep 3, 2012 2:28pm Sep 3, 2012 2:28pm
  •  futurespec
  • Joined May 2011 | Status: If you think I'm mad, I must be mad | 1,058 Posts
YES it DOES work!

Here it is again

Edit: Box and triangle were 10 bars back!
Attached Image
Attached File
File Type: mq4 Extend box.mq4   < 1 KB | 852 downloads
If you think I'm mad, I must be mad
  • Post #17
  • Quote
  • Sep 3, 2012 2:55pm Sep 3, 2012 2:55pm
  •  cyber1
  • Joined Jan 2011 | Status: Member | 1,299 Posts
Quoting nubcake
Disliked

i like a good challenge
Ignored
If you want one I have one. Hit me up on PM. Mere mortals tell me it can't be done but you could probably do it in 5 min.
  • Post #18
  • Quote
  • Sep 3, 2012 2:57pm Sep 3, 2012 2:57pm
  •  viat
  • | Joined Sep 2006 | Status: Member | 59 Posts
It was problem with my Vista. I've restarted my laptop and now it's working.
Your help is very appreciated!!!
  • Post #19
  • Quote
  • Sep 7, 2012 2:52pm Sep 7, 2012 2:52pm
  •  ollyfx
  • | Commercial Member | Joined Sep 2012 | 1,146 Posts
hello please i ahve problem using this EA IT IS OK IN BACK TEST BUT IT SAYS 2012.09.07 19:22:00 EM-VOL USDCHF,H1: invalid price 0.94227143 for OrderSend function Error 4107 please i need your help.
please i will appreciate your help thanks.
Attached File
File Type: mq4 EM_VOL.mq4   29 KB | 263 downloads
  • Post #20
  • Quote
  • Nov 26, 2012 10:00am Nov 26, 2012 10:00am
  •  Shaggy_rock
  • | Joined May 2010 | Status: No you don't. | 281 Posts
Quoting futurespec
Disliked
YES it DOES work!

Here it is again

Edit: Box and triangle were 10 bars back!
Ignored
Hi Michael, thanks a lot for this indi, it's extremely usefull!

S.
Old Habits Die Hard.
  • Platform Tech
  • /
  • MQL 4 programmer needed
  • Reply to Thread
    • Page 1 2
    • Page 1 2
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021