Forex



Go Back   Forex Trading > Programming > MetaTrader
Forex Forum Register More recent 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
  #91 (permalink)  
Old 05-12-2006, 05:33 PM
desoft's Avatar
Member
 
Join Date: Dec 2005
Posts: 58
desoft is on a distinguished road
Trying to code alert into 3 Line Break indicator

I'm trying to code the 3 Line Break indicator to show a change in trend when it changes color. My programming skills are not good and I'm trying to get it to give an audible and visual alert like "the trend has changed to up". I'm trying to go through the programming lessons and I am seeing if anyone can give some assistance. Thanks.

DeSoft
Attached Files
File Type: mq4 3LineBreak.mq4 (2.7 KB, 63 views)
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
  #92 (permalink)  
Old 05-30-2006, 02:08 PM
Member
 
Join Date: Dec 2005
Posts: 52
hoosain is on a distinguished road
Code Needed to set Time to Trade in EA

Hi, Can anyone help me with the code for the following:

I have an EA which I want to trade 3 times or less in a day dependin g on the time. The times are as follows (GMT+1), 08:00 - 12:00, 16:00 - 20:00 and 20:00 - 00:00 (the 20:00 to 00:00 should be optional). Could maybe set with TRUE/False values??

Any help much appreciated
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
  #93 (permalink)  
Old 05-31-2006, 04:43 AM
phoenix's Avatar
Senior Member
 
Join Date: May 2006
Posts: 319
phoenix is on a distinguished road
extern bool OOAAT = false;
extern datetime allowtime = D'2006.05.17 00:00';
//--------------
int strat()
{
...............any code.................

bool allowtrade=true;

if(OOAAT)
{
if(CurTime()>allowtime) allowtrade=true;
else allowtrade=false;
}

if(allowtrade)
{
........trading code........
}
...............any code..................
}


-------------------------------------------------------------------
note :
-OOAAT =open only after a time
-to be more specific you can put other condition(s) in the big-italic-underline line

hope this help
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
  #94 (permalink)  
Old 05-31-2006, 07:20 AM
Member
 
Join Date: Dec 2005
Posts: 52
hoosain is on a distinguished road
Hi, Thank you so much. Will try it out
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
  #95 (permalink)  
Old 06-09-2006, 07:06 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
EA utility- request for code/programmers

Ok I see only one more obstacle to get over for me to really get working on strategy development. I don't know how to code...

however...

I am aware of this utility
http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/

BUT I have not yet figured out how to get the custom indicators which are being developed here on to it. It has 'some' indicators but there are custom indicators in use here and in development.

Can either someone show me how to use this utility WITH some of the custom indicators here (say aNina for example) or...

could some coding/programming people here develop a similar utility and have it on the site?

If this last hurdle can be overcome I'm going to really enjoy working with strategy development around here....

fingers crossed, is this doable?
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
  #96 (permalink)  
Old 06-10-2006, 07:39 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,089
Blog Entries: 243
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Aaragorn,

Everybody saw this utility http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ and asked the questions about iCustom, Codersguru created the lessons and people asked the questions once again.
It was many months ago.
So you just wake up.

About iCustom see this thread.
http://www.forex-tsd.com/questions/3...-function.html
And probably there is a lesson about iCustom.

And about all other questions concerning mql4 look at the Codersguru Lessons' section. Because in most cases the people asked the same questions already and it was answered and discussed enough many months ago.

What I did concerning iCustom?
I was reading that thread, tried to find the other information, then used this utility without iCustom, then corrected my EA manually inserting any indicators I wanted using iCustom.
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
  #97 (permalink)  
Old 06-10-2006, 03:46 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
unless I'm still asleep I'm not seeing the answer to my questions on the thread you posted. The thread you posted is about getting a code to work to return a specific value for what that person was doing.

My question is not about making a specific code work, It's about how to use the utility to include various custom indicators which may not already be available on the utility presently, how is it done?

It's entirely possible that I have a skitoma and what i'm looking for is right in front of me and I can't see it, so if YOU or anyone else sees what I'm missing I'd appreciate a link to it. I'm taking in as much of the information here on this site as fast and well as I can with my limitations of locating what is where. It's true I've not been around long enough to know my way around yet.

Thanks for alll your assistance.
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
  #98 (permalink)  
Old 06-10-2006, 04:16 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,089
Blog Entries: 243
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
But if you open this utility you will find "Custom indicator".
And you may use any indicator which is not mentioned. Anyone.
It is example from Codersguru post:

Code:
double diIXO21=iCustom(NULL,0,"LSMA in Color",14,1500,0,0));
parmeter 1 :the symbol - NULL for current symbol.
parmeter 2 : time frame - 0 for current time frame.
parmeter 3 : indicator name - here it's "LSMA in Color".
parmeter 4 : this is a setting for LSMA - Rperiod = 14.
parmeter 5 : this is a setting for LSMA - Draw4HowLongg = 1500.
parmeter 6 : the line number (range from 0 to 7) - usually used 0.
parmeter 7 : the working bar - 0 for the current bar.

And this 'diIXO21' is equal, above or below something (close price or some value). In case of ASCTrendsig indcator it is above zero for example.

The other example is I_XO_A_H indicator. This indicator is having 2 "lines" - red one and green one.
It is one line (uptrend):
Code:
double diIXO10=iCustom(NULL,0,"I_XO_A_H",BoxSize,0,1);
It is the other one (downtrend):
Code:
double diIXO21=iCustom(NULL,0,"I_XO_A_H",BoxSize,1,1);
Last "1" in the code above is the close bar.

So if the first line is above zero (Number/Variable in this tool) it means uptrend on the closed bar.

We have it on the tool.
http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/

And it was described in Codersguru posts.

But I am not using this utility for iCustom.
I included this iCustom manually.

This post helped me http://www.forex-tsd.com/1772-post4.html

And I always looked inside the indicators' codes (and inside EAs' codes) just to have some examples.

And in Codersguru training section there are some templates to create EAs (with iCustom as well).

It is easy for me to have some "template" created by utility to include any iCustom indicators later.
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
  #99 (permalink)  
Old 06-10-2006, 04:45 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
how about this...walk thru using this utility with me to create an EA for the CatFX50 strategy for openings and a stepping trailing stop for exits.


here are the indicators for entries:
http://www.forex-tsd.com/attachments...4?d=1149794278
http://www.forex-tsd.com/attachments...4?d=1149808932
http://www.forex-tsd.com/attachments...4?d=1149572720
strategy rules
http://www.forex-tsd.com/attachments...c?d=1149174713


I havn't found a stepping trailing stop indicator yet that lets me scale out but that's what I have in mind trying when I can find one.

For now it would be ok if the EA just did the entry automatically and I handled my exits manually I guess.

see what I'm trying to do now?

Last edited by Aaragorn; 06-10-2006 at 08:09 PM.
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
  #100 (permalink)  
Old 06-10-2006, 08:49 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
i tried to load the aNina Indicator using the browse/load feature on the site but nothing happens.
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
#include, candle time, CHinGsMAroonCLK, code, coders guru, conditionally, dll, eli hayun, Eur_harvester.ex4, expert adviser, expert advisor, forex, higher high, how to code, indicator, I_XO_A_H, kehedge, mechanical trading, metatrader command line, mt4, MT4-LevelStop-Reverse, OrderReliable.mqh, programming, rectangle tool, trading, volty channel stop


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
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 05:22 PM


All times are GMT. The time now is 08:38 AM.



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