Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems


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

View Poll Results: What Do You Think?
Good 622 87.98%
Bad 85 12.02%
Voters: 707. You may not vote on this poll

Reply
 
LinkBack (70) Thread Tools Display Modes
  #1031 (permalink)  
Old 09-14-2007, 06:37 PM
burn0050's Avatar
Member
 
Join Date: Feb 2007
Location: Denver, CO
Posts: 32
burn0050 is on a distinguished road
Exits

Quote:
Originally Posted by dxtrade View Post
The hardest part is always the exits. To find an entry (for any pair on any timeframe) is relatively easy... the exit is the secret.
BigBear has suggested 2 exit methods. One is on the first zigzag line that appears after entry - arrow or not.

The other is to wait for the reversal (zzline + arrow). What about exiting 1/2 the position at a line only, full position at zzline + arrow?

I'm also curious as to money management. If you want to control drawdown, then that should be a way to do it.

Thanks,
burn0050
__________________
He who laughs last thinks slowest
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1032 (permalink)  
Old 09-14-2007, 07:51 PM
nix nix is online now
Member
 
Join Date: Aug 2006
Posts: 91
nix is on a distinguished road
Quote:
Originally Posted by MrPip View Post
int getNonLagDot()
{

double NLD_Long, NLD_Short;
NLD_Long = iCustom(NULL, 0, "nonlagdot",
NLD_Price, NLD_Length,NLD_Displace,NLD_Filter,NLD_Color, NLD_ColorBarBack,NLD_Deviation,
1,1);
NLD_Short = iCustom(NULL, 0, "nonlagdot",
NLD_Price, NLD_Length,NLD_Displace,NLD_Filter,NLD_Color, NLD_ColorBarBack,NLD_Deviation,
2,1);

if (NLD_Long < 1000) return(LONG);
if (NLD_Short < 1000) return(SHORT);
return(FLAT);
}
You can change the code to the following for more clarity:

if (NLD_Long != EMPTY_VALUE) return(LONG);
if (NLD_Short != EMPTY_VALUE) return(SHORT);

BTW: Nice work on bouncingPipEA_mpowerV2
__________________
NiX
forex.home.pl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1033 (permalink)  
Old 09-14-2007, 08:12 PM
nix nix is online now
Member
 
Join Date: Aug 2006
Posts: 91
nix is on a distinguished road
Quote:
Originally Posted by ChampionFx View Post
Thank you zmax ,
I think it is not possible to code those for MT4 .
Here is MetaStock code for ZigZag Trend:

{ZigZag Trend ゥ Spyros Raftopoulos

{This is a safe indicator as it deals with valid trends only.
You can trade it directly or incorporate it in any other
tool or system.}

Values returned:
1 = Valid uptrend, -1 = valid downtrend }

vr:=Input("Field (0=Ind/tor, 1=Open, 2=High, 3=Low, 4=Close)",0,4,0);
amnt:=Input("Reversal amount",0.0001,1000,10);
md:=Input("Method (1=Percent, 2=Points)",1,2,1);

vr:=If(vr=1,OPEN,If(vr=2,HIGH,If(vr=3,LOW,If(vr=4, CLOSE,P))));
zz0:=If(md=1, Zig(vr,amnt,%), Zig(vr,amnt,$));
zz1:=Ref(zz0,-1);
zz2:=Ref(zz0,-2);

tr:=ValueWhen(1,zz0>zz1 AND zz1<zz2, zz1);
pk:=ValueWhen(1,zz0<zz1 AND zz1>zz2, zz1);
PU:=If(md=1,tr+Abs(tr)*amnt/100,tr+amnt);
PD:=If(md=1,pk-Abs(pk)*amnt/100,pk-amnt);

res:=If(vr>=PU AND zz0>zz1,1,
If(vr<=PD AND zz0<zz1,-1,0));
res:=If(res<>0,res,ValueWhen(1,res<>0,res));
res

{*********** End of code *************}

Will dig out ZigZag Validity code latter but ZigZag Trend
would be nice and probably better.
Both ZigZag_Validity and ZigZag_Trend indicators are based on the ZigZag indicator from the MetatStock package. This is a different indicator than the one provided in MT4 in order to translate the code we would need the code of the Zig indicator from MetaStock. Can you provide the source for this indicator?

MetaStock ZigZag indicator takes the following input parameters:

Zig(DATA ARRAY, MINIMUM CHANGE, DIFF_METHOD)

This calculates the value of the ZigZag indicator on the DATA ARRAY specified. MINIMUM CHANGE is the amount required and DIFF_METHOD is how the change is to be calculated (Percent or Points)

In the code above :

the default settings force the ZigZag indicator to be calculated using the following values:

Zig(Ind/tor,10,Percent) or Zig(Ind/tor,10,Points)

I don't know what the hell is Ind/tor , but The ZigZag in MT4 uses CLOSE.

Translating the indicators should be easy.
__________________
NiX
forex.home.pl

Last edited by nix; 09-14-2007 at 08:20 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1034 (permalink)  
Old 09-14-2007, 08:13 PM
Senior Member
 
Join Date: May 2006
Posts: 718
robp is on a distinguished road
Very nice job on these results.

Quote:
Originally Posted by MrPip View Post
Here are the backtest results.

I am sleepy so do not have time right now to explain the results. If you study the spreadsheet you will better understand what the different ideas used do to the profit line.

Zip file contains spreadsheet.

Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1035 (permalink)  
Old 09-14-2007, 08:18 PM
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 556
MrPip is on a distinguished road
Quote:
Originally Posted by nix View Post
You can change the code to the following for more clarity:

if (NLD_Long != EMPTY_VALUE) return(LONG);
if (NLD_Short != EMPTY_VALUE) return(SHORT);

BTW: Nice work on bouncingPipEA_mpowerV2
Thanks,

For some reason using compare to EmptyValue in the past has caused problems. I know the value is very large so I use compare to 1000.

I will add a comment to the code to make this more clear.

So I am accessing the buffers correctly for the signals?


I am currently testing trailing stop methods.

PriceChannelStop, Breakeven + Lock, Delay trail until trigger is reached and trail immediately.

I also have EMA trail that might be useful with a setting like 25 or 34.
I have not yet added that to the code.

I found a bug where the trail was never done so the posted results are with no trailing stop.

I want to clean up the code a little and add comments but will leave everything else. I thought about removing CCI and Stochastic filters but thought other programmers might find the code useful.


Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1036 (permalink)  
Old 09-14-2007, 08:42 PM
nix nix is online now
Member
 
Join Date: Aug 2006
Posts: 91
nix is on a distinguished road
Quote:
Originally Posted by MrPip View Post
Thanks,

For some reason using compare to EmptyValue in the past has caused problems. I know the value is very large so I use compare to 1000.

I will add a comment to the code to make this more clear.

So I am accessing the buffers correctly for the signals?


I am currently testing trailing stop methods.

PriceChannelStop, Breakeven + Lock, Delay trail until trigger is reached and trail immediately.

I also have EMA trail that might be useful with a setting like 25 or 34.
I have not yet added that to the code.

I found a bug where the trail was never done so the posted results are with no trailing stop.

I want to clean up the code a little and add comments but will leave everything else. I thought about removing CCI and Stochastic filters but thought other programmers might find the code useful.


Robert
Just trying to be helpful with the EMPTY_VALUE. I had problems with indicators which did not initialize the arrays with 0, but with EMPTY_VALUE instead. I used 666 instead of 1000 , but EMPTY_VALUE looked better in the code and I worked out fine.

BTW:

Have you tried to use "chandelierstops" indicator for pseudo trailing/stepping stop? I tested it manually and it looked good.
Attached Files
File Type: mq4 chandelierstops_v1.mq4 (2.9 KB, 104 views)
__________________
NiX
forex.home.pl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1037 (permalink)  
Old 09-14-2007, 09:02 PM
ChampionFx's Avatar
Member
 
Join Date: Dec 2006
Location: Chicago
Posts: 90
ChampionFx is on a distinguished road
Hello nix ,
I'm sorry, I don't have the original ZigZag indicator code source for MetaStock.
It would be nice to see what's in there for sure and then based on the code
something may perhaps be done trying to create ZigZag_Validity and ZigZag_Trend indicators for MT4.

Sincerely,
ChampionFx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1038 (permalink)  
Old 09-14-2007, 09:04 PM
Member
 
Join Date: Dec 2006
Posts: 67
marko [IRL] is on a distinguished road
Quote:
Originally Posted by nix View Post
Both ZigZag_Validity and ZigZag_Trend indicators are based on the ZigZag indicator from the MetatStock package. This is a different indicator than the one provided in MT4 in order to translate the code we would need the code of the Zig indicator from MetaStock. Can you provide the source for this indicator?

MetaStock ZigZag indicator takes the following input parameters:

Zig(DATA ARRAY, MINIMUM CHANGE, DIFF_METHOD)

This calculates the value of the ZigZag indicator on the DATA ARRAY specified. MINIMUM CHANGE is the amount required and DIFF_METHOD is how the change is to be calculated (Percent or Points)

In the code above :

the default settings force the ZigZag indicator to be calculated using the following values:

Zig(Ind/tor,10,Percent) or Zig(Ind/tor,10,Points)

I don't know what the hell is Ind/tor , but The ZigZag in MT4 uses CLOSE.

Translating the indicators should be easy.
So, will u do it? Will be very nice. Tx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1039 (permalink)  
Old 09-14-2007, 09:14 PM
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 556
MrPip is on a distinguished road
Metastock code

Quote:
Originally Posted by ChampionFx View Post
Hello nix ,
I'm sorry, I don't have the original ZigZag indicator code source for MetaStock.
It would be nice to see what's in there for sure and then based on the code
something may perhaps be done trying to create ZigZag_Validity and ZigZag_Trend indicators for MT4.

Sincerely,
ChampionFx
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1040 (permalink)  
Old 09-14-2007, 09:35 PM
ChampionFx's Avatar
Member
 
Join Date: Dec 2006
Location: Chicago
Posts: 90
ChampionFx is on a distinguished road
Holy cow !!!
That's a bunch of also other versions of ZigZag indicators
Good find.
Thanks MrPip.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl 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

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/suggestions-trading-systems/8728-follow-bouncing-pip.html
Posted By For Type Date
【Forex】MetaTrader PartX【CFD.&Futures】 This thread Refback 09-26-2008 04:41 PM
■テクニカルについて語ろう■Part5 This thread Refback 09-23-2008 08:07 AM
【隔離スレ】MetaTrader初心者専用3【ゆとり専用】 This thread Refback 09-21-2008 03:37 AM
??????MetaTrader????????????? - MetaTrader???Wiki This thread Refback 08-31-2008 08:27 AM
ナモハムヌハフノ ハネマ ホリム ン聿 ヤムヘ衂 ソ!! - 聿ハマヌハ ヌ矼ハマヌ趁 ヌ瞽ムネ This thread Pingback 07-13-2008 04:26 AM
・キ・ケ・ニ・爭ネ・。シ・タ。シ、ホヘ。。 This thread Refback 06-29-2008 07:05 PM
■テクニカルについて語ろう■Part5 This thread Refback 06-18-2008 01:16 PM
neamtu_victor - Viewing Profile This thread Refback 02-26-2008 06:26 PM
ハレヌ 赭硼 翔ヤム zig zag ネレ聶 聚ヌ゚ ナ !!! - ヌ瞰ンヘノ 2 - 聶バ 萇マ ホネムヌチ ヌ矼ヌ This thread Refback 02-20-2008 10:02 PM
Real Forex For TSD: Signal Service This thread Refback 02-09-2008 08:06 AM
ZigZaguri - vamist.com - Forex forums and blogs This thread Refback 02-07-2008 04:35 PM
Jacko's Forex House of Pleasure and Pain - Page 107 This thread Refback 02-06-2008 04:06 PM
Jacko's Forex House of Pleasure and Pain - Page 107 This thread Refback 02-06-2008 01:57 PM
livemarket2 / ■テクニカルについて語ろう■Part5 This thread Refback 02-06-2008 01:24 AM
Supernova GBP/JPY Mini Trend Catcher - Page 183 This thread Refback 01-28-2008 12:40 PM
【Forex】MetaTrader PartX【CFD.&Futures】 This thread Refback 01-21-2008 12:18 PM
ZigZaguri - vamist.com - Forex forums and blogs This thread Refback 01-13-2008 05:59 PM
Real Forex For TSD: Results 12/27 This thread Refback 12-30-2007 05:24 PM
ハレヌ 赭硼 翔ヤム zig zag ネレ聶 聚ヌ゚ ナ !!! - ヌ瞰ンヘノ 3 - 聶バ 萇マ ホネムヌチ ヌ矼ヌ This thread Refback 12-29-2007 08:35 PM
ハレヌ 赭硼 翔ヤム zig zag ネレ聶 聚ヌ゚ ナ !!! - ヌ瞰ンヘノ 2 - 聶バ 萇マ ホネムヌチ ヌ矼ヌ This thread Refback 12-29-2007 02:09 PM
ハレヌ 赭硼 翔ヤム zig zag ネレ聶 聚ヌ゚ ナ !!! - ヌ瞰ンヘノ 2 - 聶バ 萇マ ホネムヌチ ヌ矼ヌ This thread Refback 12-29-2007 01:31 PM
。レForex。ロMetaTrader Partュケ。レCFD.&Futures。ロ - MetaTrader、゙、ネ、畍iki This thread Refback 12-26-2007 04:03 AM
・キ・ケ・ニ・爭ネ・。シ・タ。シ、ホヘ。。 200710 This thread Refback 12-23-2007 05:51 PM
Diskuzn frum Financnik.cz :: Se Sidem o Forexu :: Indik疸ory a obchodn syst駑y This thread Refback 12-23-2007 05:50 PM
Real Forex :: View topic - FTC Post #1522 Refback 12-19-2007 12:00 PM
Real Forex :: View topic - FTC Post #1522