PureBytes Links
Trading Reference Links
|
Hi
Can anyone correct the code below so that I can obtain a Buy/Sell arrow when the TEMA crosses 50 on the horizontal line within the code shown below.
Many thanks
Ken
_SECTION_BEGIN( "STO MA SLOPE");
myMA1 = MA(C,34) ;
SL=SlopeMA1 = 100*(myMA1- Ref(myMA1, -1))/myMA1;
HM=HHV(SL,120) ;
LM=LLV(SL,120) ;
STOSL=100*(SL- LM)/(HM-LM) ;
Plot(STOSL, "STOSL", colorDarkGrey) ;
Plot(50, "", colorBlue,styleNoLabel);
_SECTION_END( );
_SECTION_BEGIN("TEMA");
P = ParamField("STOSL",-1);
Periods = Param("Periods", 20, 2, 300, 1, 10 );
Plot( TEMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
Buy = Cross( STOSL = 50,);
Sell = Cross( STOSL =50 );
PlotShapes( shapeUpArrow * Buy, colorGreen, 50, Low );
PlotShapes( shapeDownArrow * Sell, colorRed, 50, High );
_SECTION_END();
|
The new Internet Explorer 8 optimised for Yahoo!7: Faster, Safer, Easier. Get it now..
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|