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.
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).
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
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)
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
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
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.
[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.
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.