Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-05-2006, 12:04 PM
Junior Member
 
Join Date: Nov 2006
Posts: 14
icepeak is on a distinguished road
How to enter external variables?

Is it possible to have a box pop up when the EA loads that will ask for a value?
For example, if I want to customize an EA I have that will allow me to enter the percentage profit I want before it closes all trades, is there a way to do that without changing the code everytime?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-05-2006, 01:48 PM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 693
Kalenzo is on a distinguished road
Quote:
Originally Posted by icepeak
Is it possible to have a box pop up when the EA loads that will ask for a value?
For example, if I want to customize an EA I have that will allow me to enter the percentage profit I want before it closes all trades, is there a way to do that without changing the code everytime?
Thanks
Hm... something like (put this code after #properties statement):

extern int profit = 200;//where 200 is just default value?
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-05-2006, 03:46 PM
Junior Member
 
Join Date: Nov 2006
Posts: 14
icepeak is on a distinguished road
What I was wanting was something like a box that would pop up when you open the chart that asks how much profit instead of having it in the code. Is that possible?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-05-2006, 03:58 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Question

Quote:
Originally Posted by icepeak
What I was wanting was something like a box that would pop up when you open the chart that asks how much profit instead of having it in the code. Is that possible?
Do you mean something like the windows inputbox?
Attached Images
File Type: jpg inputbox.jpg (37.5 KB, 21 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-05-2006, 04:07 PM
Junior Member
 
Join Date: Nov 2006
Posts: 14
icepeak is on a distinguished road
Yes

Yes, that is what I mean.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-05-2006, 04:21 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Unhappy

Quote:
Originally Posted by icepeak
Yes, that is what I mean.
But this is very hard thing I'm talking with MetaQuotes Tech Support about this!

But, Anything can be done in c++, I'll tell you if I find a trick!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-05-2006, 04:25 PM
Junior Member
 
Join Date: Nov 2006
Posts: 14
icepeak is on a distinguished road
Thank you. I will also post the result if I find the answer so that others may learn.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems calling variables from functions Eaglehawk Expert Advisors - Metatrader 4 10 11-01-2006 04:08 AM
Lesson 8 - Variables in MQL4 codersguru Lessons 11 09-15-2006 01:06 PM
MT 3 user defined variables! TallP Metatrader 3 0 07-12-2006 07:09 PM
How to enter Limit Orders ? billm General Discussion 3 01-02-2006 06:04 PM


All times are GMT. The time now is 10:37 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.