bimbo Posted October 28, 2009 Report Share Posted October 28, 2009 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 Quote Link to comment Share on other sites More sharing options...
dar17 Posted January 1, 2011 Report Share Posted January 1, 2011 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 :) Quote Link to comment Share on other sites More sharing options...
sikandar Posted January 1, 2011 Report Share Posted January 1, 2011 shows syntax error Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.