Can you write down the squeeze in English. I presume Guppysqueeze should be an 
array of values either 0 or 1, but EMA(C-30) - EMA(C, 60) is a floating point 
array and EMA(C,60) - EMA(C,60) will always be 0.
/Paul.
--- In [email protected], "shahariar4" <shahari...@...> wrote:
>
> Dear All:
> 
> Below is a code of guppy MA's...
> Can anyonepls help how to code the guppy sqeeze and prices above the guppies?
> 
> I have tried this:
> 
> Guppysqeeze= (( EMA( C, 30 )-( EMA( C, 60 )or  (EMA( C, 60 )-( EMA( C, 60 
> ))<2;
> 
> 
> Another thing i am trying is to set one of my buy condition as
> 
> when price is trading above the guppies,fo rthis itried-
> 
> PT= ( EMA( C, 5 )> ( EMA( C, 30 ) or ( EMA( C, 60 );
> 
> Are the ways i am trying are okay or it should be done any other ways..Could 
> anyone pls tell?
> 
> _SECTION_BEGIN("Guppy"); 
> Plot( EMA( C, 30 ),"", ParamColor( "Color", colorYellow ), ParamStyle("Chart 
> Style", styleLine|styleNoLabel, mask = maskAll) ); 
> Plot( EMA( C, 35 ),"", ParamColor( "Color", colorYellow ), ParamStyle("Chart 
> Style", styleLine|styleNoLabel, mask = maskAll) );
> Plot( EMA( C, 40 ),"", ParamColor( "Color", colorYellow ), ParamStyle("Chart 
> Style", styleLine|styleNoLabel, mask = maskAll) );
> Plot( EMA( C, 45 ),"", ParamColor( "Color", colorYellow ), ParamStyle("Chart 
> Style", styleLine|styleNoLabel, mask = maskAll) );
> Plot( EMA( C, 50 ),"", ParamColor( "Color", colorYellow ), ParamStyle("Chart 
> Style", styleLine|styleNoLabel, mask = maskAll) );
> Plot( EMA( C, 50 ),"", ParamColor( "Color", colorYellow ), ParamStyle("Chart 
> Style", styleLine|styleNoLabel, mask = maskAll) );
> Plot( EMA( C, 60 ),"", ParamColor( "Color", colorYellow ), ParamStyle("Chart 
> Style", styleLine|styleNoLabel, mask = maskAll) );
> _SECTION_END();
>


Reply via email to