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