RicardoSantos

[RS]JR Moving Average System V0

EXPERIMENTAL: Request for JR, test version, added extra lines to track high/lows for sl level management.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="[RS]JR Moving Average System V0", shorttitle="[RS]JR.MAS.V0", overlay=true)
ma0 = sma(hl2, input(1))

tp = input(8)
ma1 = wma(open, tp)
ma2 = ema(open, tp)

plot(ma0, color=black)
plot(ma1, color=gray)
plot(ma2, color=silver)

condition = ma0 >= ma1 and ma1 >= ma2 ? (close >= open ? lime : green) :
        ma0 <= ma1 and ma0 >= ma2 ? (close >= open ? silver : gray) :
        ma0 <= ma1 and ma1 <= ma2 ? (close >= open ? red : maroon) : (close >= open ? silver : gray)

barcolor(condition)

//  ||---   Crossovers
buyx1 = cross(ma0,ma1) and ma0 >= ma0[1] ? true : false
sellx1 = cross(ma0,ma1) and ma0 <= ma0[1] ? true : false
plotshape(buyx1, style=shape.cross, color=green, location=location.belowbar)
plotshape(sellx1, style=shape.cross, color=maroon, location=location.abovebar)

//  ||---   SL lines
sltop = highest(max(max(high,ma0),max(ma1,ma2)), tp)
slbot = lowest(min(min(low,ma0),min(ma1,ma2)), tp)
plot(sltop, color=silver, style=circles)
plot(slbot, color=silver, style=circles)


Looks good:

snapshot
+1 Reply
This is a very good start. Excellent work. I'm going to test it for a week and see if we can make any improvements.
+1 Reply
How I would use a trade set up in my prop portfolio is with leveraged ETFs and un-leveraged ETFs. ETFs must have Bullish and Bearish equities and 3x bullish-bearish positions as well. Signals would act as triggers.

Example with US 20+ year bonds TLT, TBT and TMF, TTT.

TLT Bullish (green arrow - gray candle)
TBT Bearish (red arrow) - gray candle)
TMF 3x Bullish (red candles)
TTT 3x Bearish (green candles)



snapshot
+1 Reply
QuantitativeExhaustion PRO QuantitativeExhaustion
2 years ago
snapshot


TLT would be the confirming signal caller to change gears. TLT, TBT or leverage TMF, TTT
+1 Reply
QuantitativeExhaustion PRO QuantitativeExhaustion
2 years ago
snapshot
+1 Reply
QuantitativeExhaustion PRO QuantitativeExhaustion
2 years ago
snapshot


Noticed a big difference with 1MA vs 3 EMA - 3 WMA

Might need to make a 8 vs 3 confirming.

3 gives us earlier reads however, 8 keeps us in the trends longer. So if 8 is green and 3 gives arrow signal , then still green (dark) candle.
+1 Reply
QuantitativeExhaustion PRO QuantitativeExhaustion
2 years ago
oh sorry about that I mean 1 MA vs 2 EMA / 2 WMA

8 vs 2 confirming

2 is giving us earlier reads however, 8 keeps us in trends longer. So if 8 is green and 2 gives red arrow signal , then we should still see green (dark) candle. If 8 is red and 2 gives green arrow signal , then we should still see red (light red) candle.
+1 Reply
QuantitativeExhaustion PRO QuantitativeExhaustion
2 years ago
snapshot


So we should also insert 1 MA vs 2 EMA / 2 WMA in version 2.0

Green and red candles however dismiss 1 MA vs 2 EMA / 2 WMA arrow signals and gray candles
+1 Reply
QuantitativeExhaustion PRO QuantitativeExhaustion
2 years ago
Unless you want to use double arrows and candle outline colors for 1 MA vs 2 EMA / 2 WMA in version 2.0
+1 Reply
QuantitativeExhaustion PRO QuantitativeExhaustion
2 years ago
snapshot
+1 Reply
QuantitativeExhaustion PRO QuantitativeExhaustion
2 years ago
If you have any questions on how to proceed on Version 2.0 let me know.

Basically we want to see hard signals with 2 EMA: 2 WMA ratio (green/red candles). Also if you see a hard signal on 8 EMA : 8 WMA and light signal on 2 EMA : 2 WMA ; 8's hard signal (green/red candles) overcomes 2's lite signal (gray candle and arrows).
+1 Reply
RicardoSantos PRO QuantitativeExhaustion
2 years ago
so if market is testing the trend (gray candles on 1:8 MA's) we check versus the 1:2 MA's for a signal?
+2 Reply
QuantitativeExhaustion PRO RicardoSantos
2 years ago
Show Hard signals for both 1:8 and 1:2 (green, red candles). Default to only showing 1:8 light signals (arrows and gray candles). Although user if he wants can check box both light signals for 1:8 and 1:2.
+1 Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out