Forex
Google

Go Back   Forex Trading > Programming > Metatrader Programming
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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
  #21 (permalink)  
Old 10-17-2006, 12:50 PM
richy richy is offline
Junior Member
 
Join Date: Jan 2006
Posts: 9
richy is on a distinguished road
default settings for orders

I wish to have orders with default number of pips away from current price for limit/stop price, take profit, stop loss so i dont need to input every time.

Is there anyway to do this? thanks much.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 11-03-2006, 04:12 AM
Eaglehawk's Avatar
Eaglehawk Eaglehawk is offline
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
Post how do i word this expression?

i'm (still) working on programming good friday's occurence. i've got the sequence of the full moon set, and i also have my variable, full moon, to be an integer, from a double, and i've encountered yet another dam in my river of thought. (man i hate it when i run into thoose!)

this last expression i've been working on in my good friday testing funciton involves using some c++ terms i've never seen in any refrence or other code, as i'm not a professional programmer, i'm groping in the dark really.

here's what i want the string to say. this is the wednessday before the sunday after the first full moon after march 21'st.

here's what i was thinking of when i started this expression step by step.
PHP Code:
// if the month = march, the day is greater than 21, otherwise, the month has to be april or may
if (((Month() == && Day() > 21) || (Month >= && Month() <= 5)
//this is a wednessday
&& DayOfWeek() == 3
//in 4 days, it will be a sunday (nigh certain this isn't proper grammar)
&& (Day() + /*makes*/ DayOfWeek() == 0)
//and that sunday will be after day3 (a variable i defined as a day when the moon is full)
> (Day() > day3)))
         {
          
gmonth day3;
          
gday month;          
         } 
the whole strand together is

PHP Code:
         if (((Month() == && Day() > 21) || (Month >= && Month() <= 5) && DayOfWeek() == && (Day() + /*makes*/ DayOfWeek() == 0) > (Day() > day3)))
         {
          
gmonth day3;
          
gday month;          
         } 
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 11-07-2006, 04:48 PM
omelette omelette is offline
Senior Member
 
Join Date: Jan 2006
Posts: 902
omelette is on a distinguished road
MQL Programming question..

Hi. Does anyone know if it's possible to place 'wingdings' at XY co-ordinates (NOT Time/Price co-ords.) in separate windows??? I've being trying for about 2hrs and have reached the conclusion it can't be done. Can anyone provide a solution???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 11-13-2006, 09:53 PM
kgilani kgilani is offline
Junior Member
 
Join Date: Jun 2006
Posts: 2
kgilani is on a distinguished road
How to create a candlestick chart as an indicator?

Folks,

Is it possible to create candlestick like chart in the seperate indicator window?
I want to draw candlestick price in a seperate indicator window for a currency.


Thanks,
Kash
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 11-16-2006, 02:47 PM
yolo yolo is offline
Junior Member
 
Join Date: Nov 2006
Posts: 3
yolo is on a distinguished road
need a professional programmer

hi everybody,
i have a trading strategy needing a for programming and testing.surely some enhacment as well.
i'm willing to pay a professional in this domain to help me.
Thanks,
YOLO
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 11-16-2006, 11:04 PM
ZTrader ZTrader is offline
Member
 
Join Date: Mar 2006
Posts: 91
ZTrader is on a distinguished road
How do MT4 EAs handle trade errors?

I've read a lot about re-quotes and failed orders with different brokers, but I'm wondering how these are handled by EAs in MT4... if a price quote is outside the specified slippage will it just keep trying until it gets the price it wants, or will the trade be abandoned? What if the order is rejected for some server glitch or other... does MT4 keep trying to get the order accepted?

Many EAs rely on being able to place, modify or close a position when the proper time comes, and it seems to me it would be a disaster if it just bails out under error conditions. I'm just wondering if some EA guru could explain just how these situations get handled...

THX.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 11-18-2006, 08:00 PM
junglelion junglelion is offline
Member
 
Join Date: Oct 2006
Posts: 63
junglelion is on a distinguished road
Problem Setting Up Publisher Option

I wish to post my trades on live ftp server every 30 minutes using the MT4 publisher option but I get an error everytime.

I would request members who have successfully set it up to guide me with the steps what am i doing wrong
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 11-22-2006, 03:07 AM
luxinterior luxinterior is offline
Member
 
Join Date: Nov 2006
Posts: 92
luxinterior is on a distinguished road
Custom Indicator Execute OrderModify()?

Hi

I have a custom indicator that works very nicely and I'd like it to modify my order at certain points. It seems like it doesn't want to execute an OrderModify() function and keeps returning error number 4055 just after I make the function call.

Can I run order functions buy/sell/modify etc from an indicator and if not can somebody offer a solution?

Thanks

Lux
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 11-23-2006, 05:31 AM
Craig Craig is offline
Senior Member
 
Join Date: Feb 2006
Location: New Zealand
Posts: 248
Craig is on a distinguished road
Limit orders & EA's

How does one tell from the MQL API if a limit order has been opened?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 11-25-2006, 10:56 PM
richbois richbois is offline
Junior Member
 
Join Date: Nov 2006
Posts: 1
richbois is on a distinguished road
question as to getting files

i have some expert indicators that write to or get data from the folder called "Files"


is it possible to use a different folder or is that the only one that can be used

if it is possible what would be the correct wording please give an example


thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning Cycles For New Traders Dan7974 General Discussion 350 01-18-2008 06:04 PM
Learning to code for autotrading GoatT Metatrader Programming 8 01-10-2007 08:55 PM
Self learning expert mrtools Expert Advisors - Metatrader 4 32 10-22-2006 05:29 PM


All times are GMT. The time now is 04:12 PM.