Sherıff's Proportıon Alert and Strategy

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Sherıff's Proportıon Alert and Strategy

Postby SerifKocdemir » Wed May 12, 2021 5:14 pm

Hi Apprentice
I have made Sheriff's Proportion Alert and Strategy in C# ,
Could you transform this to use in The FXCM TRADINGSTATION?
Last edited by SerifKocdemir on Thu Jun 17, 2021 5:19 am, edited 1 time in total.
SerifKocdemir
 
Posts: 84
Joined: Thu Aug 08, 2019 11:48 am

Re: Sherıff's Proportıon Alert and Strategy

Postby Apprentice » Sat May 15, 2021 7:54 am

Your request is added to the development list.
Development reference 481.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Sherıff's Proportıon Alert and Strategy

Postby Apprentice » Thu May 20, 2021 4:06 am

Unfortunately, I'm not familiar with the platform you are using and don't understand the code.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Sherıff's Proportıon Alert and Strategy

Postby SerifKocdemir » Thu May 20, 2021 7:55 am

Apprentice wrote:Unfortunately, I'm not familiar with the platform you are using and don't understand the code.

Thank you Apprentice
I am thinking and I will try How to explain simply.
Actually It is so simple to you, Because You did before in my similiar Indicator;
There are 3 Indicators inside The code.


First Indicator is 3 phases in Price Chart side of Indicator
Long Phase, Short Phase and Flat Phase,
Indicator pretends different acording to which Phase in use.
I am preparing only First Phase of Indicator's Code,Sperating other sides of code.
After finish First Indicator we can add to others or make others as a different indicator
I m gonna write here.
Thanks your help again.
SerifKocdemir
 
Posts: 84
Joined: Thu Aug 08, 2019 11:48 am

Re: Sherıff's Proportıon Alert and Strategy

Postby SerifKocdemir » Fri May 21, 2021 5:38 pm

Hi Apprentice
Actually,
Sheriff's Proportion Indicator is improved from Sheriff's Lines Indicator that you have made before
We can say ; I just have added 3 different Phases to Sheriff's Lines Indicator to make more effective Sheriff's Proportion Indicator .
Parameter windows almost same with Sheriff's Lines Indicator.


SHERIFF'S PROPORTION INDICATOR
for (int i = 1; i < Sistem.Bars; i++)
{
Up3xz[i]=(TRENDUP1*atr[i-1]) ;
Dn3[i]xz=(TRENDDN1*atr[i-1]) ;
Up1Axz[i]=(BIGUP*atr[i-1]) ;
Dn1Axz[i]=(BIGDN*atr[i-1]) ;
UpAxz[i]=(SMALLUP*atr[i-1]) ;
DnAxz[i]=(SMALLDN*atr[i-1]) ;
Up3[i]=(C[i]) - (Up3xz[i]) ;
Dn3[i]=(C[i]) + (Dn3xz[i]) ;
TrendUp3[i] = C[i-1] >ShortEnter[i-1] ?Math.Max(Math.Min(Up3[i],ShortEnter[i-1]),TrendUp3[i-1]) : Up3[i] ;
TrendDown3[i]= C[i-1]<LongEnter[i-1]? Math.Min(Dn3[i],TrendDown3[i-1]) : Dn3[i] ;
IND0[i] = C[i] > IND0[i-1] ? TrendUp3[i] : TrendDown3[i] ;
if (IND0[i] >= C[i])
IND1[i] =IND0[i];
else
IND1[i] = IND1[i-1];
if (IND0[i] <= C[i])
IND2[i] =IND0[i];
else
IND2[i] = IND2[i-1];
SHORT[i]=TrendUpz[i-1] > C[i] ? TrendUpz[i-1] : SHORT[i-1] ;
LONG[i]= TrendDownz[i-1] < C[i]? TrendDownz[i-1]:LONG[i-1] ;
Up1z[i]=(C[i]) - (Up1Axz[i]) ;
Dn1z[i]=(C[i]) + (Dn1Axz[i]) ;
Upz[i]=(C[i]) - (UpAxz[i]) ;
Dnz[i]=(C[i]) + (UpAxz[i]) ;
Upx[i]=(C[i]) - (Dn2Axz[i]) ;
Dnx[i]=(C[i]) + (Dn2Axz[i]) ;
TrendUpz[i] = C[i-1] >TrendUpz[i-1] ? Math.Max(Upz[i],TrendUpz[i-1]) : Upz[i] ;
TrendDownz[i]= C[i-1]<TrendDownz[i-1]? Math.Min(Dnz[i],TrendDownz[i-1]) : Dnz[i] ;
TrendUpx[i] = C[i-1] >TrendUpx[i-1] ? Math.Max(Upx[i],TrendUpx[i-1]) : Upx[i] ;
TrendDownx[i]= C[i-1]<TrendDownx[i-1]? Math.Min(Dnx[i],TrendDownx[i-1]) : Dnx[i] ;
SHORT[i]=TrendUpx[i-1] > C[i] ? TrendUpx[i-1] : SHORT[i-1] ;
LONG[i]= TrendDownz[i-1] < C[i]? TrendDownz[i-1]:LONG[i-1] ;
SERIFDN4[i]= C[i] > SERIFDN4[i-1] ? TrendUpz[i] : TrendDownz[i];
SERIFUP3[i]= C[i] > SERIFUP3[i-1] ? TrendUpx[i] : TrendDownx[i];

if (Phaselist[i-1]==1 && IND1[i-1]<=LongClose[i-1])
LongClose[i] = Math.Max(Up1z[i],LongClose[i-1]) ;
else if (Phaselist[i-1]==-1)
LongClose[i] = Math.Min(TrendUpz[i],IND1[i]) ;
else LongClose[i] = TrendUpz[i] ;
if (Phaselist[i-1]==-1 && IND2[i-1]>=ShortClose[i-1])
ShortClose[i] = Math.Min(Dn1z[i],ShortClose[i-1]) ;
else if (Phaselist[i-1]==1)
ShortClose[i] = Math.Max(TrendDownz[i],IND2[i]) ;
else ShortClose[i] = TrendDownx[i];
if (Phaselist[i-1]==1 )
ShortEnter[i] =Math.Min(LongClose[i] ,Math.Max(Up3[i],ShortEnter[i-1])) ;
else if (Phaselist[i-1]==-1 )
ShortEnter[i] = LongClose[i] ;
else ShortEnter[i] = Math.Min(SERIFUP3[i],IND2[i]) ;
if (Phaselist[i-1]==-1 )
LongEnter[i] = Math.Max(ShortClose[i],Math.Min(Dn3[i],LongEnter[i-1])) ;
else if (Phaselist[i-1]==1 )
LongEnter[i] = ShortClose[i] ;
else LongEnter[i] = Math.Max(SERIFDN4[i],IND1[i]) ;

if ( (Phaselist[i-1]==0 && C[i-1] < ShortEnter[i-1] && ShortEnter[i-2] >= IND2[i-1]) || (Phaselist[i-1]==0 && C[i-1] < ShortEnter[i-1] && SHORT[i]<SHORT[i-1] && ShortEnter[i-1]<IND2[i-1] ))
Phase=-1;
if (Phaselist[i-1]==-1 && C[i-1] > ShortClose[i-1] )
Phase=0;
if ((Phaselist[i-1]==0 && C[i-1] > LongEnter[i-1] && LongEnter[i-1]<=IND1[i-1]) || (Phaselist[i-1]==0 && C[i-1] > LongEnter[i-1] && LongEnter[i-1]>IND1[i-1]))
Phase=1;
if (Phaselist[i-1]==1 && C[i-1] < LongClose[i-1] )
Phase=0;
Phaselist[i]=Phase;
}


Is It more simple now?
Thanks your helping
SerifKocdemir
 
Posts: 84
Joined: Thu Aug 08, 2019 11:48 am

Re: Sherıff's Proportıon Alert and Strategy

Postby Apprentice » Tue May 25, 2021 4:48 am

Your request is added to the development list.
Development reference 520.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Sherıff's Proportıon Alert and Strategy

Postby SerifKocdemir » Tue Jun 08, 2021 9:04 am

Apprentice wrote:Your request is added to the development list.
Development reference 520.

May I know that Is There any progress?
SerifKocdemir
 
Posts: 84
Joined: Thu Aug 08, 2019 11:48 am


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 9 guests