dannno
Member
- Joined
- Dec 19, 2007
- Messages
- 65,717
Great. Another fan.
You are Presence??
Great. Another fan.
You are Presence??
# litepresence
# Slope of Simple Moving Averges
TIMEPERIODS = [25,26,27,28,29,30,31,32,33,34,35,36,37]
SLOPE_OFFSET = -2
PRICE_OFFSET = 1.5
PAIR = info.primary_pair
INTERVAL = 86400 # 86400 = 1 day
def initialize():
storage.z = storage.get('z', 0)
def ma1d(timeperiod):
z = 1
interval = INTERVAL
if INTERVAL == 86400:
interval = 43200
z = 2
sma = data(interval=interval)[PAIR].ma(timeperiod*z)
return sma
def sma_slope(current, previous):
slope_list = []
z = 0
while z < len(current):
slope = 'slope'+str(z)
storage[slope] = current[z] - previous[z]
slope_list.append(storage[slope])
z+=1
return slope_list
def moving_averages(period):
ma_list = []
for i in period:
ma = 'ma'+str(i)
storage[ma] = ma1d(i)
ma_list.append(storage[ma])
return ma_list
def tick():
z = moving_averages(TIMEPERIODS)
if info.tick == 0:
storage.z = z
slope = sma_slope(z, storage.z)
if info.tick > 75:
plot('zero', 0, secondary = True)
length = len(z)
while length > 0:
plot('SMA'+str(TIMEPERIODS[length-1]), z[length-1])
plot('slope'+str(TIMEPERIODS[length-1]), slope[length-1],
secondary=True)
length-=1
if info.tick == 75:
slope_offset = max(abs(max(slope)), abs(min(slope)))
price_offset = max(abs(max(z)), abs(min(z)))
slope_offset = Decimal(SLOPE_OFFSET)*slope_offset
price_offset = Decimal(PRICE_OFFSET)*price_offset
plot('z', price_offset)
plot('slope', slope_offset, secondary=True)
storage.z = z
plot('high', data[PAIR].high)
plot('low', data[PAIR].low)
We'll find out in the next few days, but I'm sad to say that bitcoin is looking pretty bearish for now:
![]()
https://www.tradingview.com/v/GrWYXbgz/
I'm actually bullish. Market can't sell off below $210, order books stacking up underneath the price @ Finex nicely.
I'm actually bullish. Market can't sell off below $210, order books stacking up underneath the price @ Finex nicely.
it would be an ugly one since the 2nd bottom is lower than the 1st one. That is unusual for double bottoms
http://www.investopedia.com/articles/forex/05/032805.aspWhat's Obvious Is Not Often Right
Most traders are inclined to place a stop right at the bottom of a double bottom or top of the double top. The conventional wisdom says that once the pattern is broken, the trader should get out. But conventional wisdom is often wrong.
Leaving the trade early may seem prudent and logical, but markets are rarely that straightforward. Many retail traders play double tops/bottoms, and, knowing this, dealers and institutional traders love to exploit the retail traders' behaviorof exiting early, forcing the weak hands out of the trade before price changes direction. The net effect is a series of frustrating stops out of positions that often would have turned out to be successful trades.
http://www.investopedia.com/articles/forex/05/032805.asp
see adam and eve table here:
http://thepatternsite.com/dbsetup.html
![]()
That's very true of Wall Street, but not necessarily for bitcoin since there are a lot less institutional influences from high-frequency computer algorithms and things like that. That's why many people say it's actually easier to trade bitcoin than it is for other arguments where there are many more sophisticated traders and trading techniques involved.