Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


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
  #81 (permalink)  
Old 05-03-2006, 05:22 PM
Junior Member
 
Join Date: Apr 2006
Location: Austria
Posts: 20
Marphe is on a distinguished road
the asctrend expert works a similar way.. but with asctrend as indicator.. ASCTrend system

post your indicator, let us look
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #82 (permalink)  
Old 05-03-2006, 06:11 PM
Junior Member
 
Join Date: May 2006
Posts: 3
t0shiba is on a distinguished road
here it is.
Attached Files
File Type: mq4 MA_Crossover_Signal_With_wav.mq4 (4.2 KB, 63 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #83 (permalink)  
Old 05-03-2006, 09:15 PM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Hi t0shiba, could you check this Universal MA Cross EA ? Maybe the EA could help you a bit. Thank you
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #84 (permalink)  
Old 05-04-2006, 12:57 AM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 267
cockeyedcowboy is on a distinguished road
firedave

Today I have looked at an EA you have writen and was inpressed with your coding style. Clean and readable, refreshing. The code was named universal moving cross.


The CockeyedCowboy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #85 (permalink)  
Old 05-04-2006, 02:09 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy
firedave

Today I have looked at an EA you have writen and was inpressed with your coding style. Clean and readable, refreshing. The code was named universal moving cross.


The CockeyedCowboy
Hi Cowboy, thank you for the compliment. I'm learning a lot from this forum. Well, hopefully the EA could at least make some real money for someone
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #86 (permalink)  
Old 05-06-2006, 03:39 AM
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
Check symbol and EA magicnumber

Hi

Thanks codersguru

The following also checks the symbol and magicnumber (I hope)- so one doesn't get one's ea messing with each other

Code:
double GetLastProfit(string symbol1,int magicEA )
{
   int total = HistoryTotal();
   
   datetime cur_order = 0;
   datetime last_order=0;
   double profit=0;
      
   for(int cnt = 0 ; cnt < total ; cnt++)
   {
      OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY);
      if(OrderSymbol()!= symbol1 || OrderMagicNumber() != magicEA) continue;
      cur_order = OrderCloseTime();
      if(cur_order>last_order)
      {
         last_order = cur_order;
         profit = OrderProfit();
      }
   }
   return (profit);
}

Last edited by cardio; 05-06-2006 at 04:05 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #87 (permalink)  
Old 05-10-2006, 02:19 AM
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
how long does history last

Hi
If my machine shuts down and I have to restart my ea - will functions like OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY); - still bring back valid orders - or are these orders only valid for a session of metaquotes?

Any ideas?

I now realize I will have to modify my ea's so that my public variables get persisted to file - and give the user an option to read them back if the user has to restart his machine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #88 (permalink)  
Old 05-12-2006, 04:33 PM
desoft's Avatar
Member
 
Join Date: Dec 2005
Posts: 56
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, 44 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #89 (permalink)  
Old 05-30-2006, 01: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!
Reply With Quote
  #90 (permalink)  
Old 05-31-2006, 03:43 AM
phoenix's Avatar
Senior Member
 
Join Date: May 2006
Posts: 287
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!
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
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 04:22 PM


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



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