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
  #1031 (permalink)  
Old 09-14-2007, 06:37 PM
burn0050's Avatar
Member
 
Join Date: Feb 2007
Location: Denver, CO
Posts: 33
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1032 (permalink)  
Old 09-14-2007, 07:51 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
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 @ 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
  #1033 (permalink)  
Old 09-14-2007, 08:12 PM
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
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 @ www.mt4.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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1034 (permalink)  
Old 09-14-2007, 08:13 PM
Senior Member
 
Join Date: May 2006
Posts: 768
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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: 560
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1036 (permalink)  
Old 09-14-2007, 08:42 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
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, 130 views)
__________________
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
  #1037 (permalink)  
Old 09-14-2007, 09:02 PM
ChampionFx's Avatar
Member
 
Join Date: Dec 2006
Location: Chicago
Posts: 92
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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: 560
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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: 92
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!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: 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


All times are GMT. The time now is 02:00 PM.



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