Forex



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
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-11-2005, 02:44 PM
BrunoFX's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 816
BrunoFX will become famous soon enough
Hello,

Yes it is the frametime which I chose to test in first .
I also put in comparison the version of origin : .mql
with 4 majors paires.
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
  #2 (permalink)  
Old 10-11-2005, 02:53 PM
forexts's Avatar
Administrator
 
Join Date: Sep 2005
Posts: 299
forexts has disabled reputation
Hello Bruno, download last version (v.2.0).

Can't you use metatrader 4?
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
  #3 (permalink)  
Old 10-11-2005, 03:05 PM
BrunoFX's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 816
BrunoFX will become famous soon enough
Yes I use it in demonstration but in account reel, my broker uses MT3 :cool:
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
  #4 (permalink)  
Old 10-11-2005, 09:19 PM
BrunoFX's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 816
BrunoFX will become famous soon enough
Hello

I am not a programmer,you understood it well by reading my posts, however I am curious and by reading the EA with Metaeditor, I saw that:
extern int StartHour = 8;
extern int EndHour = 20;
does that want to say that this EA works only of 8h00 with 20h00 solely and not the night?

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
  #5 (permalink)  
Old 10-12-2005, 07:59 PM
forexts's Avatar
Administrator
 
Join Date: Sep 2005
Posts: 299
forexts has disabled reputation
yes ... this trader not works in night
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
  #6 (permalink)  
Old 10-18-2005, 07:54 AM
giovanun's Avatar
Junior Member
 
Join Date: Oct 2005
Posts: 6
giovanun is on a distinguished road
Exclamation FOREXTS volume trader

Hello Forexts j don't know well the language for program with MQL language and j see the code program of "Volume_trader_v2";
j think that the volume is very important for trading operation.
In the Expert the condition for entry (Long || Short) is true || false if the (volume[1]<volume[2]) or (volume[1]>volume[2]) and this control is important.
J ask you if you can write the expert but the control for entry is moving average of volume for example three period is ">" of ten period and if this condition is true look if the close of bar[1]is ">" of close of bar [2] this is condition true for buy order .
Reverse condition for sell order.
Important insert the trailing stop and stop loss for example 10 for trailing and 15 for stop loss.
See the image please

thank bye
Attached Files
File Type: rar MOVING AVERAGE VOLUME.rar (31.3 KB, 125 views)

Last edited by giovanun; 10-18-2005 at 07:57 AM.
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
  #7 (permalink)  
Old 10-18-2005, 10:59 AM
giovanun's Avatar
Junior Member
 
Join Date: Oct 2005
Posts: 6
giovanun is on a distinguished road
FOREXTS volume trader

Hello Forexts j don't know well the language for program with MQL language and j see the code program of "Volume_trader_v2";
j think that the volume is very important for trading operation.
In the Expert the condition for entry (Long || Short) is true || false if the (volume[1]<volume[2]) or (volume[1]>volume[2]) and this control is important.
J ask you if you can write the expert but the control for entry is moving average of volume for example three period is ">" of ten period and if this condition is true look if the close of bar[1]is ">" of close of bar [2] this is condition true for buy order .
Reverse condition for sell order.
Important insert the trailing stop and stop loss for example 10 for trailing and 15 for stop loss.
See my algoritm if is correct please.

// Developed by www.forex-tsd.com
// Idea from John Taylor
// v.2.0
#include <stdlib.mqh>

#define MySuperMagic 111020051110
extern int StartHour = 8;
extern int EndHour = 20;
extern double Lots = 0.1;
int volume_medio,volume_attuale;

double LastBarChecked;

int init()
{
//----
LastBarChecked = Time[0];
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
string cm = "Volume ";
if (Period() == 1) cm = cm + "1M";
if (Period() == 5) cm = cm + "5M";
if (Period() == 15) cm = cm + "15M";
if (Period() == 30) cm = cm + "30M";
if (Period() == 60) cm = cm + "1H";
if (Period() == 240) cm = cm + "4H";
if (Period() == 1440) cm = cm + "1D";
if (Period() == 10080) cm = cm + "1W";
if (Period() == 43200) cm = cm + "1M";
cm = cm + " - ";
cm = cm + TimeToStr(CurTime(),TIME_DATE|TIME_SECONDS);
int EAMagic = MySuperMagic + Period();
//------------------------------------------------------------------------------------------------
bool doShort = false;
bool doLong = false;
//------------------------------------------------------------------------------------------------
bool long = false;
bool short=false;
//------------------------------------------------------------------------------------------------

volume_medio=iMA(NULL,0,(Volume[2]+Volume[3]+Volume[4]+Volume[5]+Volume[6]+Volume[7]+Volume[8]),0,MODE_EMA,PRICE_CLOSE,1);

bool hourValid = (Hour() >= StartHour) && (Hour() <= EndHour);
if ( (Volume[1] > volume_medio) && hourValid && (Close[1]>Close[2]))
{
doLong = true;
Comment("Up trend");
}
if ( (Volume[1] > Volume[2]) && hourValid && (Close[1]<Close[2]))
{
doShort = true;
Comment("Down trend");
}
if ( Volume[1] == Volume[2] )
{
Comment("No trend...");
}
if(LastBarChecked != Time[0])
{
int cnt = 0;
while (cnt<OrdersTotal())
{
if ( OrderSelect (cnt, SELECT_BY_POS) == false ) continue;
if ( OrderSymbol()==Symbol() && OrderMagicNumber()==EAMagic)
{
int ticket = OrderTicket();
double oLots = OrderLots();
double priceClose;
if (OrderType() == OP_BUY)
{
priceClose = Bid;
if ( doLong )
{
LastBarChecked = Time[0];
return(0);
}
}
else
{
priceClose = Ask;
if ( doShort )
{
LastBarChecked = Time[0];
return(0);
}
}
if(!OrderClose(ticket,oLots,priceClose,7,Red))
{
Alert("Error closing trade: " + ErrorDescription(GetLastError()));
return(0);
}
}
else
{
cnt ++;
}
}

if (hourValid)
{
if (Volume[1] > volume_medio)
{
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,cm,EAMagi c,0,White);
}
if (Volume[1] <volume_medio)
{
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,cm,EAMag ic,0,Red);
}
}
LastBarChecked = Time[0];
}
return(0);
}
//+------------------------------------------------------------------+


thank goodbye
Attached Files
File Type: rar MOVING AVERAGE VOLUME.rar (31.3 KB, 121 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
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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XP Volume! codersguru Indicators - Metatrader 4 19 08-19-2009 05:38 PM
Volume trader newdigital Post and compare Trades 8 10-25-2005 05:20 PM
Volume trader forexts Expert Advisors - Metatrader 4 6 10-18-2005 11:14 AM


All times are GMT. The time now is 05:52 PM.



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