SupremeProfit Fx indicators
Forums › ProRealTime English forum › ProBuilder support › SupremeProfit Fx indicators
- This topic has 13 replies, 2 voices, and was last updated 4 years ago by carlvan.
-
-
08/31/2020 at 3:17 PM #143064
Dear Nicolas, thank you in advance for your help on this. I would like the 4 main indicators of this strategy, published as a free MT4 code, to be converted into PRT codes.
I tried to edit/compile myself but has no knowledge in C language to proceed.
That system, and the related indicators, really looked interesting.
I attached the 4 indicators, and a screenshot of the chart from MT.
In short: when a blue arrow (bull signal) appears, AND is confirmed by the relevant RsiCandle color (blue), AND the Filter is blue, AND the DLine is green, then the signal is a valid buy.
But I feel confident to code this into PRT as a system once I will have your precious help creating the indicators above.Again, thank you for your help.
Carl
08/31/2020 at 3:18 PM #14306908/31/2020 at 3:47 PM #143076First one is coloring bars depending of the RSI 21 periods OB/OS zones:
supremeBars12345678910a = rsi[21]oblevel = 50oslevel = 50if a>=oblevel thendrawcandle(open,high,low,close) coloured(0,0,255)endifif a<=oslevel thendrawcandle(open,high,low,close) coloured(255,0,0)endifreturn08/31/2020 at 3:54 PM #143078second one is a basic MA cross signals indicator with some settings:
supremeSignals123456789101112131415161718192021FastMA=5FastMAshift=0FastMAMethod=2//0 = SMA 1 = EMA 2 = WMA 3 = Wilder 4 = Triangular 5 = End point 6 = Time series 7 = Hull (PRT v11 only) 8 = ZeroLag (PRT v11 only)SlowMA=13SlowMAshift=0SlowMAMethod=2price = customcloseatr = AverageTrueRange[20](close)/2fast = average[FastMA,FastMaMethod](price)[FastMAShift]slow = average[SlowMA,SlowMaMethod](price)[SlowMAShift]if fast crosses over slow thendrawarrowup(barindex,low-atr) coloured(0,255,255)elsif fast crosses under slow thendrawarrowdown(barindex,high+atr) coloured(255,0,0)endifreturn08/31/2020 at 4:03 PM #143081Dline indicator is a standard MACD histogram but plotted with dots. When the histogram crosses the zero line, the dot is yellow. Is it really essential to make a conversion for that? Above 0, the dots are green, otherwise they are violet.
08/31/2020 at 4:07 PM #14308208/31/2020 at 4:16 PM #143083The Filter indicator is a decompiled code very hard to read, but I bet it is based upon the slope of a digital filter, such as a Jurik MA: https://www.prorealcode.com/topic/conversion-of-jurik-filter-from-mq4/#post-88081
08/31/2020 at 4:21 PM #14308408/31/2020 at 4:21 PM #14308508/31/2020 at 4:23 PM #14308708/31/2020 at 4:40 PM #14309008/31/2020 at 4:42 PM #143092And then a very last one I promess: in the “SupremeBars” code based on RSI(21) the arrows appear on the chart but then they flicker and disappear/reappear all the time (lower time frames such as 1 minute). Perhaps something to add in the code to “stabilize” those nervous arrows?
09/01/2020 at 8:44 AM #143112the jurik code: what is “Series” in lines 39,40,41
You can add:
1series=customcloseat the top of the code.
the arrows appear on the chart but then they flicker and disappear/reappear all the time
I think that you talk about the “signals” indicator. Arrows can appear/disappear on the current candle, as long as the candle is not closed, the conditions for them to appear can change.
09/01/2020 at 10:41 AM #143121Thank you Nicolas; all codes working fine now. About the “signal” indicator generating the arrows, no, in fact it is all arrows that are disappearing and reappearing all the time. But I just found the solution by adding DEFPARAM CalculateOnLastBars = 200 at the top of the code, and that seems to do the trick.
-
AuthorPosts
Find exclusive trading pro-tools on