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

View Poll Results: What Do You Think?
Good 707 87.39%
Bad 102 12.61%
Voters: 809. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #1041 (permalink)  
Old 09-14-2007, 09:38 PM
nix nix is offline
Senior Member
 
Join Date: Aug 2006
Posts: 132
nix is on a distinguished road
Quote:
Originally Posted by MrPip View Post
Try looking here.

There is a lot of stuff for Metastock.
This is only the Z page.

Trader.Online.pl® - MetaStock™ Zone - Litera Z

Robert
I'll take a look.

BTW: here is my AutoLot management function. Maybe you can use it in your EA:


Code:
extern string MoneyManagement = "-------------------------------------";
extern double Lots = 0.1;
extern bool Auto_lots = true;
extern int  Risk = 10; // percent
extern double MIN_lots = 0.1;
extern double MAX_lots = 5;

double AutoLots()
{
   if(Auto_lots == false)
      return(Lots);
       
   int Decimals = 0;
   double MaxLotPurchase = 0;
   
   //
   // don't overleverage!
   // 
   
   //int AccLeverage = AccountLeverage();
   int AccLeverage = 100;

   //
   // Step for changing lots
   //
   
   double ModeLotStep = MarketInfo(Symbol(), MODE_LOTSTEP);
   double ModeLotSize = MarketInfo(Symbol(), MODE_LOTSIZE);
   
   if(ModeLotStep == 0.01)
      Decimals = 2;
   if(ModeLotStep == 0.1)
      Decimals = 1;
   
   //
   // Calculate auto lots
   //
   
   if(ModeLotSize != 0)
      MaxLotPurchase=((AccountEquity()*AccLeverage)/ModeLotSize)*(Risk*0.01);
   else
      MaxLotPurchase=MIN_lots;
      
   Lots = StrToDouble(DoubleToStr(MaxLotPurchase,Decimals));
  
   if (Lots < MIN_lots)
     Lots = MIN_lots;
   if (Lots > MAX_lots) 
     Lots = MAX_lots;}

   return(Lots);    
}
__________________
NiX @ www.mt4.pl
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
  #1042 (permalink)  
Old 09-14-2007, 09:53 PM
nix nix is offline
Senior Member
 
Join Date: Aug 2006
Posts: 132
nix is on a distinguished road
Quote:
Originally Posted by marko [IRL] View Post
So, will u do it? Will be very nice. Tx
Yes, if I can get the Zig indicator's code for MetaStock or if someone can point me to a different package which offers such indicators. I need the source (so far I have only MetaStock source) or the formula.

To put it in simple words

I need a ZigZag Percent indicator (Source or Compiled version is fine).
__________________
NiX @ www.mt4.pl

Last edited by nix; 09-14-2007 at 10: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
  #1043 (permalink)  
Old 09-14-2007, 10:11 PM
nix nix is offline
Senior Member
 
Join Date: Aug 2006
Posts: 132
nix is on a distinguished road
ZigZag Validity...

Check out this link:

Traders Tips - August 2002

"The zigzag % indicator in TradeStation 6 has been implemented in a way that obviates the need for a companion validation indicator."

Can anybody post the code for the ZigZag indicator found in TradeStation?
Maybe someone already transfered this code to MT4?
__________________
NiX @ www.mt4.pl
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
  #1044 (permalink)  
Old 09-14-2007, 11:06 PM
ChampionFx's Avatar
Member
 
Join Date: Dec 2006
Location: Chicago
Posts: 92
ChampionFx is on a distinguished road
Google is our friend , but even after an hour of searching for MetaStock or
Tradestation ZigZag code source still nada , zilch , zero , nothing
Damn , where to get the code ?
Anybody around running Tradestation or MetaStock and wish to contribute code to the bouncing pip melting pot ?
Thanks
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
  #1045 (permalink)  
Old 09-14-2007, 11:36 PM
Junior Member
 
Join Date: Mar 2007
Posts: 7
sypultraz is on a distinguished road
found this

hi guys....i jst found this code....but i dont no either this is the code that you all are looking for........i found it on the trade online metastock web

ZigZag Validity

{*********** Start of code *************}

{ZigZag validity by Spyros Raftopoulos
It validates the LAST LEG of the Zigzag indicator.
1=valid (not revisable), 0=invalid (revisable).
Do NOT use this indicator in systems.}

perc:=Input("Percent",0.2,100,10);

Z:=Zig(CLOSE,perc,%);
last:=ValueWhen(1,( Z > Ref(Z,-1) AND Ref(Z,-1) < Ref(Z,-2) )
OR
( Z < Ref(Z,-1) AND Ref(Z,-1) > Ref(Z,-2) ),
Ref(Z,-1));

pc:=(CLOSE-last) * 100 / last;
pc:= Abs(pc);

SD:=(z>Ref(z,-1) AND Ref(z,-1)>Ref(z,-2)) OR (z<Ref(z,-1) AND Ref(z,-
1)<Ref(z,-2));

res:=If(pc>=perc ,1,0);
If(Alert(res,2) AND SD,1,res)

{*********** End of 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
  #1046 (permalink)  
Old 09-15-2007, 12:01 AM
burn0050's Avatar
Member
 
Join Date: Feb 2007
Location: Denver, CO
Posts: 33
burn0050 is on a distinguished road
Money Management

Quote:
Originally Posted by nix View Post
I'll take a look.

BTW: here is my AutoLot management function. Maybe you can use it in your EA:
Money management will probably lower the return, but should also lower the drawdown. Thanks, MrPip for your hard work. It looks like an 8% drawdown when using dxTrade's method? (nonlagdot, qqe, bigbear rules)
16449.36 214.09 783.30 2024.62 7.76 2 0 3 6
What's the starting account balance - 10k or 100k?

I think this is a better way to do money management. It follows Van Tharp's money management. If you want an explanation, I can give it, or find a link :
Code:
double LotSize(int stopInPips, double accountRisk){
 
       double lotMM = ( AccountFreeMargin() * (accountRisk/100) )/( MarketInfo(Symbol(),MODE_TICKVALUE) * stopInPips );
       //This can be used with discretion
       if (AccountIsMini) {
       //Round to the nearest 10th - AccountIsMini needs to be a bool set at the top level
         lotMM = MathFloor(lotMM*10)/10;
       } else {
       //Round to the nearest lot
 
         lotMM = MathRound(lotMM);
 
         //To be aggressive, use this one
         //lotMM = MathCeil(lotMM);
 
       }
       if (lotMM < 0.1) lotMM = .1;
       if (lotMM > 100) lotMM = 100;
 
   return (lotMM);
}
Thanks,
burn0050
__________________
He who laughs last thinks slowest

Last edited by burn0050; 09-15-2007 at 12:45 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
  #1047 (permalink)  
Old 09-15-2007, 12:01 AM
ChampionFx's Avatar
Member
 
Join Date: Dec 2006
Location: Chicago
Posts: 92
ChampionFx is on a distinguished road
Thanks sypultraz,
something like two pages back I posted this code already
There is need to read through the previous posts in order to know what's going on with progress.
C'mon guys , keep up on reading

Sincerely,
ChampionFx
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
  #1048 (permalink)  
Old 09-15-2007, 07:47 AM
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 560
MrPip is on a distinguished road
Quote:
Originally Posted by burn0050 View Post
Money management will probably lower the return, but should also lower the drawdown. Thanks, MrPip for your hard work. It looks like an 8% drawdown when using dxTrade's method? (nonlagdot, qqe, bigbear rules)
16449.36 214.09 783.30 2024.62 7.76 2 0 3 6
What's the starting account balance - 10k or 100k?

I think this is a better way to do money management. It follows Van Tharp's money management. If you want an explanation, I can give it, or find a link :
Code:
double LotSize(int stopInPips, double accountRisk){
 
       double lotMM = ( AccountFreeMargin() * (accountRisk/100) )/( MarketInfo(Symbol(),MODE_TICKVALUE) * stopInPips );
       //This can be used with discretion
       if (AccountIsMini) {
       //Round to the nearest 10th - AccountIsMini needs to be a bool set at the top level
         lotMM = MathFloor(lotMM*10)/10;
       } else {
       //Round to the nearest lot
 
         lotMM = MathRound(lotMM);
 
         //To be aggressive, use this one
         //lotMM = MathCeil(lotMM);
 
       }
       if (lotMM < 0.1) lotMM = .1;
       if (lotMM > 100) lotMM = 100;
 
   return (lotMM);
}
Thanks,
burn0050
I added AutoLot to the EA and ran with the settings that produced the best results with profit at $16K. With MM the profit is now over $60K with 10% Account Balance per trade. Drawdown is higher but has more to do with trading 10% instead of 1 lot. Account size is $25K. Running with $10K account shows profit of $27125.

Most of the profit was from Aug 1 to Sept 7.

There is still something not right with the EA. It clearly misses some trades that appear to meet the rules. I printed out the values of the zigzag indicators and there are times since Sept 7 when a trade should have been placed. I will be working on this problem next.

Robert
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
  #1049 (permalink)  
Old 09-15-2007, 09:48 AM
nix nix is offline
Senior Member
 
Join Date: Aug 2006
Posts: 132
nix is on a distinguished road
Quote:
Originally Posted by MrPip View Post

Most of the profit was from Aug 1 to Sept 7.
[Aug - Sept] had a lot of sharp reversals followed by long trending periods, but the drawdown visible on your backtest is not bad. All trading systems experience drawdown periods once in a while.
__________________
NiX @ www.mt4.pl
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
  #1050 (permalink)  
Old 09-15-2007, 09:50 AM
nix nix is offline
Senior Member
 
Join Date: Aug 2006
Posts: 132
nix is on a distinguished road
Quote:
Originally Posted by ChampionFx View Post
Google is our friend , but even after an hour of searching for MetaStock or
Tradestation ZigZag code source still nada , zilch , zero , nothing
Damn , where to get the code ?
Anybody around running Tradestation or MetaStock and wish to contribute code to the bouncing pip melting pot ?
Thanks
I found a "ZigZag Percent indicator" for MT4, so I'll try to base both indicators on it since I can't seem to find the Tradestation or MetaStock code.

I'll work on this over the weekend.
__________________
NiX @ www.mt4.pl
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
forex tsd, forex-tsd, bouncing pips, Bouncing Pip, follow the bouncing pip, Supernova, bouncing, nonlag zigzag, nonlagdot, bouncing pip ea, forex, BigBear, MrPip, signal_bars_v6, MACD-DIV, QQE_Alert_MTF_v5, signal_bars_v6.ex4, bear system forex tsd, Jacko, tsd forex, follow, mr pip, zig zagy, big bear, the bouncing pip, f4mnect, qqe repaint, orderclose error 4108, mode_tickvalue, follow the bouncing pips, boucing pips, candles, qqe alert, boucing pip, mtf mfi, forex suggestions, #00_ZZ_Window, NonLagZigZag_V2, bouncingpip, forex bouncing pip, Money Flow Index, fastbrokerfx, zig zag pointer, macd div


Currently Active Users Viewing This Thread: 3 (2 members and 1 guests)
fxrulez, nasrulq
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


All times are GMT. The time now is 01:28 PM.



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