Forex



Go Back   Forex Trading > Programming > MetaTrader
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old 11-03-2006, 05:12 AM
Eaglehawk's Avatar
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #22 (permalink)  
Old 11-07-2006, 05:48 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #23 (permalink)  
Old 11-13-2006, 10:53 PM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #24 (permalink)  
Old 11-16-2006, 03:47 PM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #25 (permalink)  
Old 11-17-2006, 12:04 AM
Senior Member
 
Join Date: Mar 2006
Posts: 124
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #26 (permalink)  
Old 11-18-2006, 09:00 PM
Member
 
Join Date: Oct 2006
Posts: 73
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #27 (permalink)  
Old 11-22-2006, 04:07 AM
Senior Member
 
Join Date: Nov 2006
Posts: 307
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #28 (permalink)  
Old 11-23-2006, 06:31 AM
Senior Member
 
Join Date: Feb 2006
Location: New Zealand
Posts: 249
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #29 (permalink)  
Old 11-25-2006, 11:56 PM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #30 (permalink)  
Old 11-28-2006, 07:35 AM
Junior Member
 
Join Date: Nov 2005
Posts: 14
iPlayGames is on a distinguished road
MT4 file functions

hello, my Indicator uses the following code to record every trade signal to a text file. by default, the latest signal is the last record at the bottom of the file. what I want to do is to reverse this order. that is, I'd like my latest signal to come on top. does anybody know how to do this?


void Trade_Log(string type,string price,string sigBar)
{
//----
int handle = 0;
string log = "";
//----
log = type+"@"+price+" @ "+sigBar+" bars";
handle = FileOpen("lastSignal_.dat",FILE_BIN|FILE_READ|FILE _WRITE);
if(handle>0){ FileSeek(handle,0,SEEK_END);
FileWrite(handle,log);
FileClose(handle);
handle = 0;
}
//----
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
automated close order, close, eas, forex, learn mql4, learn mql4 video, learning mql4, mini std lotsize risk, mql4 ima, mql4 learning, mql4 video, OrderCloseBy, profit, reach, secure profit function, T101_v1.11_orest_IBFXm.mq4


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Forum Jump

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


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



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