Help converting Thinkorswim code to AFL

Can someone please help me convert this code to an AFL code please? Just want to see if is worth using or not. Thank you!

MovAvgExponential("length" = 18) is greater than MovAvgExponential("length" = 50) and MovAvgExponential("length" = 50) is greater than MovAvgExponential("length" = 100) and MovAvgExponential("length" = 100) is greater than MovAvgExponential("length" = 200) and StochasticFull("over bought" = 70, "over sold" = 30, "k period" = 5, "d period" = 3, "average type" = "EXPONENTIAL")."FullK" is less than or equal to 30 within 3 bars and open from 2 bars ago is greater than MovAvgExponential("length" = 100)."AvgExp" and close from 2 bars ago is less than MovAvgExponential("length" = 100)."AvgExp" and open from 1 bars ago is less than MovAvgExponential("length" = 100)."AvgExp" and close from 1 bars ago is greater than MovAvgExponential("length" = 100)."AvgExp" and close is greater than open and close is greater than high from 1 bars ago

@enriqueatorres, you are much more likely to get help when you show your own effort.

If you are new to AmiBroker, then you can look to the search icon here in the forum or look in the AmiBroker manual, of the website to see sample code.

As a start, here is some basic code for you....

condition1 = ma(C, 18) > ma(C, 50);  // first line from your conditions

Thank you! I promise I am trying.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.