- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
SSL indicator for Amibroker (AFL)
I watched this SSL indicator in Nononsense forex in Youtube and looks good. Searched for an AFL but what I found was a pinescript code. So, Converted the pinescript code to AFL. This is my interpretation of the indicator for Amibroker.
Kod:
// Downloaded From https://www.WiseStockTrader.com
//////////////////////////////////////////////////////////
//Conversion from Pinescript(TradingView) to Amibroker AFL
//Original Pinescript code -
//https://www.tradingview.com/u/ErwinBeckers/
//How to use: Pls search for Nononsense forex in Youtube
//////////////////////////////////////////////////////////
_SECTION_BEGIN( "SSL" );
period = param("SSL period",10,5,20,1);
smaHigh = MA(High,period);
smaLow = MA(Low,period);
HLVal = IIf(Close>=smaHigh ,1,-1);
sslDown = IIf(HLVal<0,smaHigh,smaLow);
sslUp = IIf(HLVal<0,smaLow,smaHigh);
Plot(sslDown ,"",colorRed,styleThick);
Plot(sslUp ,"",colorAqua,styleThick);
_SECTION_END();
www.WiseStockTrader.com