Forex



Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems
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
  #11 (permalink)  
Old 11-16-2005, 04:44 PM
jorgeng's Avatar
Member
 
Join Date: Nov 2005
Posts: 64
jorgeng is on a distinguished road
Alex, do you have an EA which trade automatically?

(seemed so to your code)

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
  #12 (permalink)  
Old 11-17-2005, 01:39 PM
Alex.Piech.FinGeR's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 307
Alex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud of
yes BETA


Trading Hours is ALPARI Time !!!! (GTM+1)

Code:
#property copyright "Alex.Piech.FinGeR"
#property link	  "http://www.forex-tsd.com"
#define   MAGIC	  20051021


extern string PARAMETERS_TRADE = "PARAMETERS TRADE";
extern int	SLIPPAGE	   = 3; 
extern double Lots		   = 0.1;	
extern int	StopLoss	   = 10;	 
extern int	TakeProfit	 = 35;   
extern int	JPYpair		= 0;

extern bool   useProfitTrailing = False;   
extern int	TrailingStop   = 20;   
extern int	TrailingStep   = 3;	
  

extern string PARAMETERS_EXPERT = "PARAMETERS EXPERT";
extern bool   UseOneAccount = False;	
extern int	NumberAccount = 0815;   
extern string Name_Expert   = "BETA";
extern bool   UseSound	  = True;		 
extern string NameFileSound = "expert.wav"; 
extern color  clOpenBuy	 = LightBlue;	
extern color  clOpenSell	= LightCoral;  
extern color  clModifyBuy   = Aqua;		 
extern color  clModifySell  = Tomato;	   
extern color  clCloseBuy	= Blue;		 
extern color  clCloseSell   = Red;		  

int prevBar; 


void SetArrow(datetime t, double p, int k, color c) {
ObjectSet("Arrow", OBJPROP_TIME1 , t);
ObjectSet("Arrow", OBJPROP_PRICE1 , p);
ObjectSet("Arrow", OBJPROP_ARROWCODE, k);
ObjectSet("Arrow", OBJPROP_COLOR , c);
}

void deinit() 
{
Comment("");
}


void start() {


SetArrow(Time[0],Low[0]-5*Point,241,Gold); 
 
//bx=False;
//sx=False;
Comment("");


if (UseOneAccount && AccountNumber()!=NumberAccount) {
	Comment("-UseOnAccount- Number"+AccountNumber()+" FAILED!");
	return;
  } else Comment("");



CheckForOpen();
   

CheckForClose();
  
  
  if (useProfitTrailing)  TrailingPositions();
}





void CheckForOpen() {

double ldStop=0, ldTake=0;
double close1=iClose(NULL,1440,1);
double high1=iHigh(NULL,1440,1);
double low1=iLow(NULL,1440,1);

double close=iClose(NULL,1440,0);
double high=iHigh(NULL,1440,0);
double low=iLow(NULL,1440,0);

double Pr = high1 + 1*Point;
double Pr2 = low1 - 1*Point;


int tradesignal2 = 0;
int tradesignal2s = 0;

if (JPYpair == 0) 
double val2 = (Pr - (MathFloor(close1*100) /100))*10000;
else
val2 = (Pr - MathFloor(close1))*100;

if (val2 >= 15  &&  val2 <= 85) tradesignal2 = 1;


if (JPYpair == 0) 
double val2a = (Pr2 - (MathFloor(close1*100) /100))*10000;
else
val2a = (Pr2 - MathFloor(close1))*100;

if (val2a >= 15  &&  val2a <= 85) tradesignal2s = 1;



int T=0;
if(Hour()== 23 && Minute() == 30) T=1;


if (!ExistPosition() && prevBar!=Bars) {
	
   
	 if (T==1 && tradesignal2 == 1 && (high1 - low1) >= 100*Point && (high1 - close1 ) >= 25*Point ) {
	  
	  if (StopLoss!=0) ldStop=Pr-StopLoss*Point;
	  if (TakeProfit!=0) ldTake=Pr+TakeProfit*Point;
	  SetOrder(OP_BUYSTOP,Pr , ldStop, ldTake);
	  
	  prevBar=Bars;
   
   
	}
   
	if (T== 1 && tradesignal2s == 1 && (high1 - low1) >= 100*Point && (close1 - low1) >= 25*Point ) {
	 
	  if (StopLoss!=0) ldStop=Pr2+StopLoss*Point;
	  if (TakeProfit!=0) ldTake=Pr2-TakeProfit*Point;
	  SetOrder(OP_SELLSTOP, Pr2, ldStop, ldTake);
	  
	  prevBar=Bars;
   
	}
  }




}





//+------------------------------------------------------------------+
//| is MAGIC trade open ?										 | 
//+------------------------------------------------------------------+
bool ExistPosition() {
  bool Exist=False;
  for (int i=0; i<OrdersTotal(); i++) {
	if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
	  if (OrderSymbol()==Symbol() && OrderMagicNumber()==MAGIC) Exist=True;
	}
  }
  return(Exist);
}




void SetOrder(int op, double pp, double ldStop, double ldTake) {
  color  clOpen;
  string lsComm=GetCommentForOrder();
  if (op==OP_BUYSTOP) clOpen=clOpenBuy; else clOpen=clOpenSell;
  OrderSend(Symbol(),op,Lots,pp,SLIPPAGE,ldStop,ldTake,lsComm,MAGIC,0,clOpen);
  if (UseSound) PlaySound(NameFileSound);
}





string GetCommentForOrder() {
  return(Name_Expert);
}





void TrailingPositions() {

  for (int i=0; i<OrdersTotal(); i++) {
	if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
	 
		if (OrderSymbol()==Symbol() && OrderMagicNumber()==MAGIC ) {
		  if (OrderType()==OP_BUY) {
			if ((Bid-OrderOpenPrice())>TrailingStop*Point) {
			 
			 if (OrderStopLoss()<Bid-(TrailingStop+TrailingStep-1)*Point) {
				 ModifyStopLoss(Bid-TrailingStop*Point, clModifyBuy);
			  }
			}
		  }
		  if (OrderType()==OP_SELL) {
			if (OrderOpenPrice()-Ask>TrailingStop*Point) {
			 if (OrderStopLoss()>Ask+(TrailingStop+TrailingStep-1)*Point || OrderStopLoss()==0) {
			 ModifyStopLoss(Ask+TrailingStop*Point, clModifySell);
			  }
			}
		  }
		}
	  }
	}
  }








void CheckForClose() {
  bool fs=False;  
  bool fs1=False;	 


int T2=0;
if(Hour()== 13 && Minute() >= 45) T2=1;

  
 if (T2==1){ 
 fs1 = True;
 fs =  True;
}
 
  for (int i=0; i<OrdersTotal(); i++) {
	if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
	  if (OrderSymbol()==Symbol() && OrderMagicNumber()==MAGIC) {
		if (OrderType()==OP_BUYSTOP && fs) {
		   OrderDelete(OrderTicket());
		 // OrderClose(OrderTicket(), Lots, Bid, SLIPPAGE, Aqua);
		  return;
		}
		if (OrderType()==OP_SELLSTOP && fs1) {
		  OrderDelete(OrderTicket());
		 // OrderClose(OrderTicket(), Lots, Ask, SLIPPAGE, Violet);
		  return;
		}
	  }
	}
  }
}



void ModifyStopLoss(double ldStop, color clModify) {

  bool   fm;
  double ldOpen=OrderOpenPrice();
  double ldTake=OrderTakeProfit();

  fm=OrderModify(OrderTicket(), ldOpen, ldStop, ldTake, 0, clModify);
 
  if (fm && UseSound) PlaySound(NameFileSound);
}

Last edited by Alex.Piech.FinGeR; 11-17-2005 at 01:45 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
  #13 (permalink)  
Old 11-18-2005, 03:33 PM
Alex.Piech.FinGeR's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 307
Alex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud of
here EA
Attached Files
File Type: mq4 Platinum.mq4 (6.5 KB, 290 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
  #14 (permalink)  
Old 11-18-2005, 03:58 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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
Alex,


Which timeframe for Platimun and Beta?
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
  #15 (permalink)  
Old 11-18-2005, 04:03 PM
Junior Member
 
Join Date: Oct 2005
Posts: 19
xpie is on a distinguished road
Quote:
Originally Posted by Eric
Sada, I think it means for example:

Do not go long if price is 1.1785 through 1.1799 (because there will be resistance at the "round" number -- 1.1800, and it might retrace back down)

Do not go short if price is 1.1715 through 1.1701 (because there will be support at the "round" number -- 1.1700, and it might retrace back up)

But I could be wrong!
eric, I think you are wrong he means

do not trade short OR long if price is 1.1685 through 1.1715 because he assumes this is a zone of great support or resistance.

xpie
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
  #16 (permalink)  
Old 11-18-2005, 11:26 PM
Alex.Piech.FinGeR's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 307
Alex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud of
Question

i have auto daily D1 chart all time frame

yes xpie is all Beta help me please

Last edited by Alex.Piech.FinGeR; 11-18-2005 at 11:30 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
  #17 (permalink)  
Old 11-19-2005, 06:35 AM
Senior Member
 
Join Date: Sep 2005
Location: Kailua-Kona, Hawai'i
Posts: 188
Eric is on a distinguished road
xpie, yes it looks like you are right -- there is a 30 pip "no trade zone" for longs and shorts.
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
  #18 (permalink)  
Old 11-26-2005, 07:42 PM
Junior Member
 
Join Date: Nov 2005
Posts: 6
forex-experts is on a distinguished road
Thumbs up

The similiar strategy at EasyDayTrader is ready to use. Chek it out.

Last edited by newdigital; 11-27-2005 at 08:43 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
  #19 (permalink)  
Old 11-26-2005, 09:43 PM
sadaloma's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 344
sadaloma is on a distinguished road
Quote:
Originally Posted by forex-experts
The similiar strategy at EasyDayTrader is ready to use. Chek it out.
Maybe you could post an EXP or EX4 trial version (30 days?)of the EA for us to test drive?

Otherwise, one might think you are posting here just to advertise your commercial EAs and not for the benefit of the forum members...that is call free spamming,right? Now, we don't want that do we?

Here is a link to where I think your future "advertizing" post should go (commercial EA) :

http://www.forex-tsd.com/showthread.php?t=237

Sada

Edit:
PS: my post,after reading it, sounds a little bit too sarcastic...sorry if I have offended you but I am actually really interested in testing out commercial EAs.

Last edited by newdigital; 11-27-2005 at 08:44 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
  #20 (permalink)  
Old 02-28-2006, 05:31 PM
Junior Member
 
Join Date: Feb 2006
Posts: 1
pipzilla is on a distinguished road
Hello,

Is anybody still trading/interested in this system, and are you having success?

I downloaded and compiled the indicator source and it does show up in MT4's "Custom" menu but nothing happens when I select the indicator. Strange.

Update: Ah, I see--it's an expert and not an indicator. My mistake. Still curious about anyone's current opinions of this system!

Last edited by pipzilla; 02-28-2006 at 07:50 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
Reply

Bookmarks

Tags
EasyDayTrader, OP_BUYSTOP


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
Tools request! codersguru Tools and utilities 64 09-07-2006 04:11 PM
New EA request FX-Hedger Expert Advisors - Metatrader 4 35 06-20-2006 05:44 AM
Please Script request leutzuro Tools and utilities 8 03-20-2006 09:28 AM


All times are GMT. The time now is 08:22 PM.



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