Do they all equal -1 on the same bar? If they are not all exactly equal to -1 on the same bar you will not get a signal You have to be precise in the conditions. Do you want them to all cross the -1 value on the same bar, in which case use the cross function for all 3 statements or are you looking for one to cross -1 and the others to already be below -1, in whch case change the conditions to suit
-- Cheers Graham AB-Write >< Professional AFL Writing Service Yes, I write AFL code to your requirements http://www.aflwriting.com On 09/12/06, Dheya1 <[EMAIL PROTECTED]> wrote:
its getting regularly and i can send you photo for that --- In [email protected], "ricko8294_98" <[EMAIL PROTECTED]> wrote: > > That is probably because all three do not get to -1 at the same time. > R > --- In [email protected], "Dheya1" <dheya1@> wrote: > > > > i got this one from amibroker supports but still its not working > > > > Buy = InvFisherTfm1( Value2 ) == -1 AND InvFisherTfm2( Value4 ) == - > 1 > > AND InvFisherTfm4( Value11 ) == -1; > > > > > > > > > > > > --- In [email protected], "Dheya1" <dheya1@> wrote: > > > > > > any one can help me to write a buy signel > > > > > > > > > if you can help me with the buy signel for the multticycle, i > need > > > to buy when the three lines ( "DSS", colorDarkGreen and "RSI", > > > colorBlue, styleThick and "VFI", colorYellow, styleThick ) > > together > > > reach -1 . > > > > > > > > > > > > _SECTION_BEGIN("MultiCycle 1[1].0"); > > > > > > /* > > > > > > MULTICYCLE 1.0 > > > > > > By Brian Richard > > > > > > */ > > > > > > /* Volume Flow Indicator */ > > > > > > Period = Param("VFI Period",26,26,1300,1); > > > > > > Coef=0.2; > > > > > > VCoef=Param("Max. vol. cutoff",2.5,2.5,50,1); > > > > > > inter = log(Avg)-log(Ref(Avg,-1)); > > > > > > Vinter = StDev(inter,30); > > > > > > Cutoff=Coef*Vinter*Close; > > > > > > Vave=Ref(MA(V,Period),-1); > > > > > > Vmax=Vave*Vcoef; > > > > > > Vc=Min(V,VMax); > > > > > > MF=Avg-Ref(Avg,-1); > > > > > > VCP=IIf(MF>Cutoff,VC,IIf(MF<-Cutoff,-VC,0)); > > > > > > VFI1=Sum(VCP,Period)/Vave; > > > > > > VFI=EMA(VFI1,3); > > > > > > /* Double Smoothed Stochastic - DSS */ > > > > > > Slw = 4; Pds = 4; > > > > > > A = EMA((Close-LLV(Low,Pds))/(HHV(H,pds)-LLV(L,Pds)),Slw)*100; > > > > > > DSS = EMA((A-LLV(A,pds))/(HHV(A,Pds)-LLV(A,Pds)),Slw)*100; > > > > > > /* Tom DeMark's Range Expansion Index */ > > > > > > HighMom = H - Ref( H, -2 ); > > > > > > LowMom = L - Ref( L, -2 ); > > > > > > Cond1 = ( H >= Ref( L,-5) OR H >= Ref( L, -6 ) ); > > > > > > Cond2 = ( Ref( H, -2 ) >= Ref( C, -7 ) OR Ref( H, -2 ) >= Ref( > C, - > > > 8 ) ); > > > > > > Cond3 = ( L <= Ref( H, -5 ) OR L <= Ref( H, -6) ); > > > > > > Cond4 = ( Ref( L, -2 ) <= Ref( C, -7 ) OR Ref( L, -2 ) <= Ref( > C, - > > > 8 ) ); > > > > > > Cond = ( Cond1 OR Cond2 ) AND ( Cond3 OR Cond4 ); > > > > > > Num = IIf( Cond, HighMom + LowMom, 0 ); > > > > > > Den = abs( HighMom ) + abs( LowMom ); > > > > > > TDREI = 100 * Sum( Num, 5 )/Sum( Den, 5 ) ; > > > > > > // General - purpose Inverse Fisher Transform function > > > > > > function InvFisherTfm1( array1 ) > > > > > > { > > > > > > e2y1 = exp( 2 * array1 ); > > > > > > return ( e2y1 - 1 )/( e2y1 + 1 ); > > > > > > } > > > > > > function InvFisherTfm2( array2 ) > > > > > > { > > > > > > e2y2 = exp( 2 * array2 ); > > > > > > return ( e2y2 - 1 )/( e2y2 + 1 ); > > > > > > } > > > > > > function InvFisherTfm3( array3 ) > > > > > > { > > > > > > e2y3 = exp( 2 * array3 ); > > > > > > return ( e2y3 - 1 )/( e2y3 + 1 ); > > > > > > } > > > > > > function InvFisherTfm4( array4 ) > > > > > > { > > > > > > e2y4 = exp( 2 * array4 ); > > > > > > return ( e2y4 - 1 )/( e2y4 + 1 ); > > > > > > } > > > > > > Value1 = 0.1 * (DSS-55); > > > > > > Value2 = WMA( Value1, 5 ); > > > > > > Value3 = 0.1 * ( RSI( 5 ) - 50 ); > > > > > > Value4 = WMA( Value3, 10 ); > > > > > > Value5 = 0.03 * (TDREI); > > > > > > Value6 = WMA( Value5, 10 ); > > > > > > Value10 = VFI; > > > > > > Value11 = EMA(VFI,10); > > > > > > Plot( InvFisherTfm1( Value2 ), "DSS", colorDarkGreen, > styleThick ); > > > > > > Plot( InvFisherTfm2( Value4 ), "RSI", colorBlue, styleThick ); > > > > > > Plot( InvFisherTfm3( Value6 ), "REI", colorRed, styleThick ); > > > > > > Plot( InvFisherTfm4( Value11 ), "VFI", colorYellow, styleThick ); > > > > > > Plot(0,"",colorDarkBlue,styleDots); > > > > > > PlotGrid( 0.5 ); > > > > > > PlotGrid(-0.5 ); > > > > > > _SECTION_END(); > > > > > > > > > > > > > > > Regards > > > > > > Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
