I'm afraid that is all a bit above my capabilities or understanding, however i value your help vastly. This is the code i am running, the charts run only from 6am through to 10pm. Would you be kind enough to indicate waht I should do.
SMA= AVERAGE[a](weightedclose)
upper = (c)* AVERAGETRUERANGE[b](weightedclose)
lower = (d)* AVERAGETRUERANGE[b](weightedclose)
upperband=SMA+upper
lowerband=SMA-lower
midband = (upperband+lowerband)/2
midupper = (midband+upperband)/2
midlower = (midband+lowerband)/2
ind1 = close
ind2 = open
ind3 = RSI[14](weightedclose)
c1 = (ind1 < lowerband and ind1 < ind2)
c2 = (ind3 > 60 or ind1 CROSSES OVER midupper)
c3 = (ind1 > upperband and ind1 > ind2)
c4 = (ind3 < 40 or ind1 CROSSES UNDER midlower)
IF c1 AND HOUR >6 AND HOUR <22 AND NOT LONGONMARKET THEN
BUY 1 SHARES AT MARKET THISBARONCLOSE
ENDIF
IF c2 AND HOUR >6 AND HOUR <22 THEN
SELL AT MARKET THISBARONCLOSE
ENDIF
IF c3 AND HOUR >6 AND HOUR <22 AND NOT SHORTONMARKET THEN
SELLSHORT 1 SHARES AT MARKET THISBARONCLOSE
ENDIF
IF c4 AND HOUR >6 AND HOUR <22 THEN
EXITSHORT AT MARKET THISBARONCLOSE
ENDIF
cheers
chris
SMA= AVERAGE[a](weightedclose)
upper = (c)* AVERAGETRUERANGE[b](weightedclose)
lower = (d)* AVERAGETRUERANGE[b](weightedclose)
upperband=SMA+upper
lowerband=SMA-lower
midband = (upperband+lowerband)/2
midupper = (midband+upperband)/2
midlower = (midband+lowerband)/2
ind1 = close
ind2 = open
ind3 = RSI[14](weightedclose)
c1 = (ind1 < lowerband and ind1 < ind2)
c2 = (ind3 > 60 or ind1 CROSSES OVER midupper)
c3 = (ind1 > upperband and ind1 > ind2)
c4 = (ind3 < 40 or ind1 CROSSES UNDER midlower)
IF c1 AND HOUR >6 AND HOUR <22 AND NOT LONGONMARKET THEN
BUY 1 SHARES AT MARKET THISBARONCLOSE
ENDIF
IF c2 AND HOUR >6 AND HOUR <22 THEN
SELL AT MARKET THISBARONCLOSE
ENDIF
IF c3 AND HOUR >6 AND HOUR <22 AND NOT SHORTONMARKET THEN
SELLSHORT 1 SHARES AT MARKET THISBARONCLOSE
ENDIF
IF c4 AND HOUR >6 AND HOUR <22 THEN
EXITSHORT AT MARKET THISBARONCLOSE
ENDIF
cheers
chris