Jump to content

Recommended Posts

Posted

Has anyone got the AFL for Amibroker for Mike's Wabe trend Indicator.See details about indicator here

 

http://amibrokerfan.com/index.php?option=com_smf&Itemid=28&topic=744.0

  • 1 year later...
Posted

Kindly check this formula.

 

 

 

_SECTION_BEGIN("WaveTrend");

 

GraphXSpace = 8;

 

OBline = Param("Over Bought Line",60,0,100,1);

OSline = Param("Over Sold Line",-60,-100,0,1);

 

Color1 = ParamColor("OverBought Color", colorPink);

Color2 = ParamColor("OverSold Color",colorPink);

 

WAVETRIGGER = Param("WaveTrend Trigger",-50,-80,-10,1);

 

WaveTrend = MyEric();

WaveTrend2 = MA(WaveTrend,4);

 

myColor =

IIf (WaveTrend > WaveTrend2, ParamColor("Wavetrend color", ColorRGB(132,119,247)),

IIf (WaveTrend2 > WaveTrend, colorRed ,colorLightYellow));

 

Plot(WaveTrend,"WaveTrend ",myColor,styleDots | styleThick);

 

//Plot(WaveTrend2,"WaveTrend2",colorLightYellow,styleDashed);

Plot(WaveTrend2,"WaveTrend2",ParamColor("Signal Line color", colorPaleBlue),styleDots);

 

//Plot(OBline,"OverBought Line",Color1,8+16);

Plot(OBline,"OverBought Line",Color1,styleDashed);

//Plot(OSline,"OverSold Line",Color2,8+16);

Plot(OSline,"OverSold Line",Color2,styleDashed);

 

Buy = Cross(WaveTrend,WaveTrend2);

Sell = Cross(WaveTrend2,WaveTrend);

 

PlotShapes(IIf(Buy AND WaveTrend<WAVETRIGGER,shapeCircle,shapeNone),colorBrightGreen,0,Graph0,0);

PlotShapes(IIf(Buy AND WaveTrend > -50 AND WaveTrend <-38,shapeHollowCircle,shapeNone),colorBrightGreen,0,Graph0,-1);

 

PlotShapes(IIf(Sell AND WaveTrend>53,shapeCircle,shapeNone),colorYellow,0,Graph1,0);

 

_SECTION_END();

 

Thank you :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...