[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EquisMetaStock Group] Coding an exploration and expert advisor.



PureBytes Links

Trading Reference Links

Dear Sharad,
 
I am using this exploration, coded by me( and not someone's proprietory), for RSI divergence. May be you can extrapolate it for triple divergence
 
colA:    c
 
colB :     RSI(14)
 
colC {RSI-1} :   DD:=LLVBars(RSI(14),35);Ref(RSI(14),- LastValue(DD))    
 
colD{c-1} :     DD:=LLVBars(RSI(14),35);Ref(C,-LastValue(DD))
 
colE{rsi-2} : XX:=LLVBars(RSI(14),35)-1;ND:=LLVBars(C,LastValue(XX));Ref(RSI(14),- LastValue(ND))
 
colF{c-2}:    XX:=LLVBars(RSI(14),35)-1;ND:=LLVBars(C,LastValue(XX));Ref(C,-LastValue(ND))
 
Filter : colC<colE AND colD>colF AND colC<30
AND LLVBars(C,LastValue(LLVBars(RSI(14),35)-1))<=2
AND RSI(14)>Ref(RSI(14),-1)
RKG
----- Original Message -----
Sent: Thursday, May 29, 2008 11:36 AM
Subject: Re: [EquisMetaStock Group] Coding an exploration and expert advisor.

i currently have something like this
 
L < Trough(1,L,5) and
Trough(1,L,5) < Trough(2,L,5) AND
REF(RSI(14),-TroughBARS(1,L,5)) > REF(RSI(14),-TroughBARS(2,L,5))
 
but obviously the ref function does not take a variable for time - so am stuck with that
 
this shud give me the last 2 bottoms in price - but getting teh RSI values at that time is the problem
 
SHARAD LOHIA
----- Original Message -----
From: pumrysh
Sent: Wednesday, May 28, 2008 9:54 PM
Subject: Re: [EquisMetaStock Group] Coding an exploration and expert advisor.

Sharad,

Will help if you show us what you already have.

Preston

--- In equismetastock@yahoogroups.com, "SHARAD LOHIA"
<sharadlohia@...> wrote:
>
> Can anybody pls help or guide
>
> I want to program a Triple Divergence Indicator where price makes 3
consecutive lower lows with intermediate rallies of 5% and the RSI
Indicator has made higher bottoms on each successive lower low of
price.
>
> I have been able to program the price making 3 lower bottoms but am
unable to program the RSI 3 higher bottoms. The problem i am facing
is how to store the value of RSI when the first and second lower
bottom was made - so as to be able to compare it with the current RSI
value.
>
> regards
> SHARAD LOHIA
>
> ----- Original Message -----
> From: rbw1226
> To: equismetastock@yahoogroups.com
> Sent: Tuesday, May 27, 2008 7:05 PM
> Subject: [EquisMetaStock Group] Coding an exploration and expert
advisor.
>
>
> Coding an exploration and expert advisor.
>
> I have tried to code an exploration containing these indicators:
>
> Example of Alcoa Inc. - AA
> 16th 19th 20th
> RSI 74.5878 77.8750 68.8206
> STOCH 82.2645 86.6776 80.1709
> MACD 1.62294 1.83796 1.88434
> SMI 85.2341 88.5809 84.9160
> 3Period MA(S)42.6300 43.4933 43.6567
> Close 43.15 44.59 43.23
>
> Each are default but would like to know how to code if changing
> default.
> What I am trying to do is based on values changing from uptrend
to
> signal/display values plus I reckon -1 or difference.(also if
> changing from downtrend)
> For example each column would display like.
> RSI 68.8206 with a -1 or difference of value change being -9.0544
> from previous.
> STOCH 80.1709 -1 or -6.5067
> MACD 1.88434 +1 or +.04638
> SMI 84.9160 -1 or -3.6649
> 3Period MA(S) 43.6567 +1 or + .1634
> Close 43.23 -1 or -1.36
>
> If this is not possible would it be possible to only display
values
> when a change from previous 2 periods trend occurs. Which only
the
> MACD and 3periodma would not display a value or signal in this
case.
> Or better yet would display value with also a 0 indicating no
change
> in trend.
>
> Thanks a lot in advance because I think I must be asking and
trying
> for something not possible. As for making this an expert advisor
I
> was thinking of when close crossed 3periodma and at least 2
> indicators changed trend.
>
> Thanks again
> Burt
>

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___