All things TradingView

everything that doesn't belong elsewhere cometh here

Moderator: moderators

User avatar
LeMercenaire
rank: 1000+ posts
rank: 1000+ posts
Posts: 3184
Joined: Tue Sep 27, 2016 12:11 am
Reputation: 2303
Gender: None specified

Re: All things TradingView

Postby LeMercenaire » Wed Apr 24, 2019 3:36 pm

IgazI wrote:If price doesn't like to close in the wick-zone then it shouldn't like it regardless of whether you go short away from it or short into it, am i right?

This was a normal mWZp (WZ/MIDPOINT) type trade, but if the candle closes red then I feel that I should short into the WZ rather than at the low...

'trade what you see' and all that, but do you see a logical reason why WZ statistics do not hold for trading into the zone?

A greater distance to travel to exit the zone, perhaps.

red_cheese_plzzz.png


Wick Zones are basically micro Supply + Demand Zones and I have talked before about how pro traders are actually trading towards the zones, not waiting for price to get to them and bounce off.

So I'd say there was an element of this in your thinking. In my Dead Zone, this would take the form of having price cross and close over / retest and leave away from the mid-way of the zone and then I would add into what would be a counter trade in fact as it headed towards the opposite WZ.

A fib dropped into the WZ will help with movement in there and then if it continues on out the other side as a breakout, that becomes a new trade (in this case an add in on top of the first trades).

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
IgazI
rank: 1000+ posts
rank: 1000+ posts
Posts: 2016
Joined: Sat Feb 17, 2018 5:28 pm
Reputation: 1663
Gender: None specified

Re: All things TradingView

Postby IgazI » Wed Apr 24, 2019 4:07 pm

LeMercenaire wrote:
Wick Zones are basically micro Supply + Demand Zones and I have talked before about how pro traders are actually trading towards the zones, not waiting for price to get to them and bounce off.

So I'd say there was an element of this in your thinking. In my Dead Zone, this would take the form of having price cross and close over / retest and leave away from the mid-way of the zone and then I would add into what would be a counter trade in fact as it headed towards the opposite WZ.

A fib dropped into the WZ will help with movement in there and then if it continues on out the other side as a breakout, that becomes a new trade (in this case an add in on top of the first trades).


If I understood you correctly, that is pretty much what I am doing when I sell red candles (CL < MID).

I will search for the 'Dead Zone', thanks Lem!

lem.png
lem.png (5.48 KiB) Viewed 5005 times
"Everything Should Be Made As Simple As Possible, But Not Simpler!"

User avatar
IgazI
rank: 1000+ posts
rank: 1000+ posts
Posts: 2016
Joined: Sat Feb 17, 2018 5:28 pm
Reputation: 1663
Gender: None specified

Re: All things TradingView

Postby IgazI » Wed Apr 24, 2019 4:26 pm

I have been contemplating using the same Red Cheese on the quarterly to only trade short when the bar is red:
a filter to make sure that any lots held have maximum potential profit.

quarters.png
quarters.png (50.51 KiB) Viewed 5004 times
"Everything Should Be Made As Simple As Possible, But Not Simpler!"

User avatar
IgazI
rank: 1000+ posts
rank: 1000+ posts
Posts: 2016
Joined: Sat Feb 17, 2018 5:28 pm
Reputation: 1663
Gender: None specified

Re: All things TradingView

Postby IgazI » Thu Apr 25, 2019 1:11 pm

I'm so glad that writing code is not my job (I'd be fired) :lol:

A cleaned up version of Red Cheese:

Code: Select all

//@version=3
study("RED CHEESE", overlay = true)
midpoint = (high[0]+low[0])/2
pHigh = high[1]
pOpen = open[1]
pLow = low[1]
hi = high[0]
lo = low[0]
cl = close[0]
op = open[0]
wasRed = open[1] > close[1]
wasGrn = open[1] < close[1]
// Price moves to the open of the prev. green candle.
grnContact = open[1] < close[1] and low[0] <= open[1] and close[0] > open[1]
// Price moves to the open of the prev. red candle.
redContact = open[1] > close[1] and high[0] >= open[1] and close[0] < open[1]
//------------------------------------------------------------------------------
// 1. Wick-zone, 2. close below midpoint, 3. open higher than midpoint
//------------------------------------------------------------------------------
a = redContact or cl < midpoint or op > midpoint and not grnContact
b = grnContact or not a

barcolor( b ? green : red)

bgcolor(not b? color(black, transp = 98): na)
//------------------------------------------------------------------------------
// 'Pointy Place' Indicator
//------------------------------------------------------------------------------
isHI = high[2] < high[1] and high[1] > high[0]
isLO = low[2] > low[1] and low[1] < low[0]
plotshape(isHI, location = location.abovebar, style = shape.labeldown, color = green, offset = -1, transp = 95)
plotshape(isLO, location = location.belowbar, style = shape.labelup, color = red, offset = -1, transp = 85)


Stop loss indicator so that everything is in one place:

Code: Select all

//@version=3
study("STOP LOSS")

//            22 DAYS OF PRICE RANGE
stop = security(tickerid, '2D', rma(lowest(atr(1)[1], 11), 11)  * 0.225)

// STOP EQUALS 22.5% OF THE SMALLEST 2D RANGE OF THE PAST 22 DAYS


//                 BOTH TP ARE MINIMUM TARGETS
plot(stop * 0.9, style = circles, join= true, color = red, transp = 88, show_last = 200)
plot(stop * 0.225, style = histogram,  color = blue, show_last = 200)
plot(stop * 0.45, style = columns, color = green, show_last = 200)
// 
"Everything Should Be Made As Simple As Possible, But Not Simpler!"

User avatar
IgazI
rank: 1000+ posts
rank: 1000+ posts
Posts: 2016
Joined: Sat Feb 17, 2018 5:28 pm
Reputation: 1663
Gender: None specified

Re: All things TradingView

Postby IgazI » Sat Apr 27, 2019 3:13 am

"please enter your password"

*enters password correctly*

"you've exceeded your maximum login attempts; please enter your password and the CAPTCHA"

*...$#!%*
*enters password correctly and stupid CAPTCHA*

"great! enjoy your 1 minute login"
"Everything Should Be Made As Simple As Possible, But Not Simpler!"

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
LeMercenaire
rank: 1000+ posts
rank: 1000+ posts
Posts: 3184
Joined: Tue Sep 27, 2016 12:11 am
Reputation: 2303
Gender: None specified

Re: All things TradingView

Postby LeMercenaire » Sat Apr 27, 2019 11:44 am

IgazI wrote:"please enter your password"

*enters password correctly*

"you've exceeded your maximum login attempts; please enter your password and the CAPTCHA"

*...$#!%*
*enters password correctly and stupid CAPTCHA*

"great! enjoy your 1 minute login"


Everyone seems to have had a shot of this lately. Pawel almost went insane. I think it's to do with not posting for a while and then posting a lot in a short space of time.

Michal usually sorts it if you let him know (though as I said, it drove Pawel to distraction for a while there, as they couldn't seem to get to the bottom of it).

I always tend to leave myself logged in for longer periods as well, rather than log in, post, log out...log in, post, log out...etc etc et al.

I haven't had a problem for ages now...(and no doubt probably just jinxed myself horrendously - if you don't see me for a while, you'll know, lol.

User avatar
IgazI
rank: 1000+ posts
rank: 1000+ posts
Posts: 2016
Joined: Sat Feb 17, 2018 5:28 pm
Reputation: 1663
Gender: None specified

Re: All things TradingView

Postby IgazI » Mon Apr 29, 2019 3:46 am

I find myself heavily leaning towards trading 'chaos': like if Bill Williams and Joe Ross had a baby that was adopted by TRO :lol:
"Everything Should Be Made As Simple As Possible, But Not Simpler!"

User avatar
TheRumpledOne
rank: 10000+ posts
rank: 10000+ posts
Posts: 15556
Joined: Sun May 14, 2006 9:31 pm
Reputation: 3035
Location: Oregon
Real name: Avery T. Horton, Jr.
Gender: None specified
Contact:

Re: All things TradingView

Postby TheRumpledOne » Mon Apr 29, 2019 4:17 am

IgazI wrote: I find myself heavily leaning towards trading 'chaos': like if Bill Williams and Joe Ross had a baby that was adopted by TRO :lol:


Adopted?
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!

Please do NOT PM me with trading or coding questions, post them in a thread.

User avatar
IgazI
rank: 1000+ posts
rank: 1000+ posts
Posts: 2016
Joined: Sat Feb 17, 2018 5:28 pm
Reputation: 1663
Gender: None specified

Re: All things TradingView

Postby IgazI » Tue Apr 30, 2019 7:46 pm

After the fractal you will either get a LH and low breakout or a HL and high breakout:

(The candles are red if there was a greater push below the open than above it)

one_another.png
one_another.png (20.2 KiB) Viewed 4783 times
"Everything Should Be Made As Simple As Possible, But Not Simpler!"

User avatar
IgazI
rank: 1000+ posts
rank: 1000+ posts
Posts: 2016
Joined: Sat Feb 17, 2018 5:28 pm
Reputation: 1663
Gender: None specified

Re: All things TradingView

Postby IgazI » Thu May 02, 2019 2:24 am

Modified the Fractal indicator so that if you deselect extremes it forms the fractal based on closing prices.

XorC.png
XorC.png (69.28 KiB) Viewed 4750 times


Code: Select all

//@version=3
study("Fractal", overlay = true)
user_1 = input(title = "Extremes?", type = bool, defval = true )
hi = false
lo = false
clr = user_1 ? orange : blue
if user_1
    hi := high[2] > high[0] and high[2] > high[1] and high[2] > high[3] and high[2] > high[4]
    lo := low[2] < low[0] and low[2] < low[1] and low[2] < low[3] and low[2] < low[4]
else
    hi := close[2] > close[0] and close[2] > close[1] and close[2] > close[3] and close[2] > close[4]
    lo := close[2] < close[0] and close[2] < close[1] and close[2] < close[3] and close[2] < close[4]

isHI = hi
isLO = lo

plotshape(isHI, location = location.abovebar, style = shape.triangleup, color = color(red,transp = 0), offset = -2, transp = 95, size = size.tiny)
plotshape(isHI, location = location.abovebar, style = shape.triangledown, color = clr, offset = -2, transp = 95, size = size.tiny)
plotshape(isLO, location = location.belowbar, style = shape.triangleup, color = color(red, transp = 0), offset = -2, transp = 85, size = size.tiny)
plotshape(isLO, location = location.belowbar, style = shape.triangledown, color = clr, offset = -2, transp = 85, size = size.tiny)

isUP = open[0] < (high[0] + low[0]) / 2
isNT = open[0] == (high[0] + low[0]) / 2

barcolor(isUP and not isNT ? green : red)


YN.png
YN.png (59.77 KiB) Viewed 4748 times
"Everything Should Be Made As Simple As Possible, But Not Simpler!"

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “general”