help pleaseto get buy and sell signal

THE LORD

Active Member
#1
TimeFrameSet(inWeekly);
Plot(StochK(14,3),"",colorBlue,styleDots+styleThick);
Plot(StochD(14,3,3),"",colorYellow,styleDots+styleThick);
TimeFrameRestore();
this osthtastic in weekly time frame i want to get buy and sell signal when
fast stochk(14,3) cross stochD(14,3,3) in weekly time frame and sell signal
when stochD(14,3,3) cross stochk(14,3) in weekly time frame please help
 

HULK

Active Member
#2
_SECTION_BEGIN("LORD Stochastic" );

periods = Param( "Periods", 14, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );

Plot( StochD ( periods ,Ksmooth, DSmooth ),"Stochastic %D", colorYellow,styleDots+styleThick);
Plot( StochK ( periods , Ksmooth),"Stochastic %K", colorBlue,styleDots+styleThick);

Buy = Cross(StochK(14,3), StochD(14,3,3));
Sell = Cross (StochD(14,3,3), StochK(14,3));

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBrightGreen);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed);


_SECTION_END();


LORD, you can use this AFL for any time interval Intraday , Daily , Weekly ....
 

THE LORD

Active Member
#3
_SECTION_BEGIN("LORD Stochastic" );

periods = Param( "Periods", 14, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );

Plot( StochD ( periods ,Ksmooth, DSmooth ),"Stochastic %D", colorYellow,styleDots+styleThick);
Plot( StochK ( periods , Ksmooth),"Stochastic %K", colorBlue,styleDots+styleThick);

Buy = Cross(StochK(14,3), StochD(14,3,3));
Sell = Cross (StochD(14,3,3), StochK(14,3));

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBrightGreen);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed);


_SECTION_END();


LORD, you can use this AFL for any time interval Intraday , Daily , Weekly ....
IM VERY APRECIATED TO YOU BUT YOUR AFL WILL NOT HELP ME
I NEED BUY AND SELL SIGNAL FOR THIS AFL ONLY
--------------------------------------------------------------------------------

TimeFrameSet(inWeekly);
Plot(StochK(14,3),"",colorBlue,styleDots+styleThic k);
Plot(StochD(14,3,3),"",colorYellow,styleDots+style Thick);
TimeFrameRestore();
-----------------------------------------------
 

HULK

Active Member
#4
TimeFrameSet(inWeekly);
Plot(StochK(14,3),"",colorBlue,styleDots+styleThick);
Plot(StochD(14,3,3),"",colorYellow,styleDots+styleThick);

Buy = Cross(StochK(14,3), StochD(14,3,3));
Sell = Cross (StochD(14,3,3), StochK(14,3));

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBrightGreen);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed);

TimeFrameRestore();
 

THE LORD

Active Member
#5
timeframeset(inweekly);
plot(stochk(14,3),"",colorblue,styledots+stylethick);
plot(stochd(14,3,3),"",coloryellow,styledots+stylethick);

buy = cross(stochk(14,3), stochd(14,3,3));
sell = cross (stochd(14,3,3), stochk(14,3));

plotshapes(iif(buy,shapeuparrow,shapenone),colorbrightgreen);
plotshapes(iif(sell,shapedownarrow,shapenone),colorred);

timeframerestore();
thnx mr hulk you solve my proplem very aprriciated to you
100 flowers to you friend
 

THE LORD

Active Member
#6
MR-HULK LOOK TO THIS AFL

_SECTION_BEGIN("Unnamed 7");
T=StochK(14,3);
T1 = TimeFrameExpand( T,weekly);
D= StochD(14,3,3);
D1 = TimeFrameExpand( D,weekly );
Plot(T1,"",colorBlue,styleDots+styleThick);
Plot(D1,"",colorYellow,styleDots+styleThick);
timeframerestore();


---------------------------------
timeframeset(inweekly);
plot(stochk(14,3),"",colorblue,styledots+stylethic k);
plot(stochd(14,3,3),"",coloryellow,styledots+style thick);

buy = cross(stochk(14,3), stochd(14,3,3));
sell = cross (stochd(14,3,3), stochk(14,3));

plotshapes(iif(buy,shapeuparrow,shapenone),colorbr ightgreen);
plotshapes(iif(sell,shapedownarrow,shapenone),colo rred);

timeframerestore();
------------------------------------
WHY THE TOW AFL DOSENT GAVE THE SAME NUMBERS FOR THE FAST AND SLOW
STOCHASTIC WHERE IS THE MESTAKES IF YOU HELP ME IN THIS I WILL BE VERY APRICCIATED TO YOU THE VALUES IS NOT THE SAME
 

Similar threads