This Swing determiner is based on the Parabolic SAR indicator trend by Welles Wilder. The dots above or below the price evolve in a parabolic shape to the price and are used to exit a trade (the stoploss).
When a red (short) or blue (long) candle is formed after a swing of Parabolic SAR, an entry order can be placed after the close, in the direction of the color. After the entry the stoploss order is trailed on the dots of the Parabolic SAR. The exit is when the stoploss is hit.
The grey candles will be ignored as entry signal.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
//Swing Determinator Parabolic SAR //11-07-2018 //Marcel van Vliet //--- parameters // mmTYPE=1 (mm type) // --- bodyhigh = max(open,close) bodylow = min(open,close) if(open<=close and close > SAR) then LongWickUp = high LongCandleUp = bodyHigh LongWickDown = low LongCandleDown = bodyLow elsif(open>=close and close > SAR) then LongWickUp = low LongCandleUp = bodyLow LongWickDown = high LongCandleDown = bodyHigh elsif(open<=close and close < SAR) then ShortWickUp = high ShortCandleUp = bodyHigh ShortWickDown = low ShortCandleDown = bodyLow elsif(open>=close and close < SAR) then ShortWickUp = high ShortCandleUp = bodyLow ShortWickDown = low ShortCandleDown = bodyHigh endif //bullish candlesticks if close>SAR then DRAWCANDLE(LongCandleDown,LongWickUp,LongWickDown,LongCandleUp) coloured(0,0,102) Endif //Neutral candlesticks above the MA If close>SAR and close<open then DRAWCANDLE(LongCandleDown,LongWickUp,LongWickDown,LongCandleUp) coloured(150,150,150) Endif //bearish candlesticks if close<SAR then DRAWCANDLE(ShortCandleDown,ShortWickUp,ShortWickDown,ShortCandleUp) coloured(200,0,0) Endif //Neutral candlesticks under the MA If close<SAR and close>open then DRAWCANDLE(ShortCandleDown,ShortWickUp,ShortWickDown,ShortCandleUp) coloured(150,150,150) Endif RETURN |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Hi,
How are you drawing the parabolic line on the price chart? I have added your indicator and SAR indicator, but the parabolic line is not displayed as in your screenshot.
Thanks
The line is just a moving average line. The indicator reacts on the Parabolic SAR dots.
I dont get the dots! What am i doing wrong? 🙂
Ignore this comment 😉