GRAB TIndicator from Pinescript to Prorealtime
Forums › ProRealTime English forum › ProBuilder support › GRAB TIndicator from Pinescript to Prorealtime
- This topic has 5 replies, 3 voices, and was last updated 2 years ago by
Nicolas.
-
-
12/21/2022 at 5:18 PM #206159
Dear All,
I just found this indicator on Tradingview code (Pinescript) that I found interesting:
https://www.tradingview.com/script/1HAKnNRc-Grab-Trading-System/
I would be interested in evaluating the outcome of this indicator on Prorealtime.
I attached the following files:
- file with the screenshot from Tradingview in which I applied this indicator to US500 Future (1 hour timeframe)
- file with the Pinescript script
I would be interested in the indicator behind the trading system rather than the trading system itself.
Thanks to anyone would like to take the chance of having a look to this request
Best regards
Lorenzo
12/21/2022 at 8:40 PM #206179Hi @lorebruno
Here is the indicator of the Grab system…
I have set the “color fills” in the graph, the fills are not exactly the same, but this is the best I think is currently possible.
Regards Jaap
Grab Trading Indicator123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566//Grab Trading IndicatorOnce Trend = 0flb = 80 //Longterm Period Max=80 Min=1slb = 21 //Shortterm Period Max=21 Min=1)MajorResistance = highest[flb]MajorSupport = lowest[flb]MinorResistance = highest[slb]MinorSupport = lowest[slb]If high > MajorResistance[1] thenTrend=1EndIfIf low < MajorSupport[1] thenTrend=-1EndIfIf Trend = 1 and low Crosses Over MinorSupport thenxLong = 1EndIfIf Trend = -1 and high Crosses Under MinorResistance thenxShort = 1EndIfIf xLong=1 and High Crosses Under MinorResistance thenxLong=0EndIfIf xShort =1 and Low Crosses Over MinorSupport thenxShort=0//if strategy.position_size < 0EndIfIf Trend=-1 and Trend[1]=-1 thenMajRColor = 255elseMajRColor=0EndIfIf Trend=1 and Trend[1]=1 thenMajSColor = 255elseMajSColor=0EndIfIf Trend = 1 and xLong=1 thenMinRColorR=255MinRColorG=255ElseMinRColorR=0MinRColorG=0EndIfIf Trend=-1 and xShort=1 thenMinSColorR=255MinSColorG=255ElseMinSColorR=0MinSColorG=0EndIfReturn MajorResistance as "MajorResistance" Coloured(MajRColor,0,0), MajorSupport as "MajorSupport" Coloured(0,MajSColor,0), MinorResistance as "MinorResistance" Coloured(MinRColorR,MinRColorG,0), MinorSupport as "MinorSupport" Coloured(MinSColorR,MinSColorG,0)12/22/2022 at 9:41 AM #20619512/22/2022 at 9:58 AM #206196Hi Lorenzo,
The color filling between the different support and resistance lines can be processed in your code but you can also set it in the graph itself. I did the latter…
The indicator values correspond to the original code, but the (color) fill between the different lines may differ slightly…
Regards Jaap
12/22/2022 at 10:02 AM #20619712/26/2022 at 10:43 AM #206316You can use COLORBETWEEN to add color fill between 2 values.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on