Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/12/2010(UTC) Posts: 3
|
please help me to write an exploreror to find out first white cancle after black candle
|
|
|
|
Rank: Advanced Member
Groups ready for retrieval: Registered, Registered Users Joined: 11/7/2005(UTC) Views messages in topic : 602
|
Sounds like you want a latch function: Put into formula:
a1:=first instance; a2:=Second instance; x:=BarsSince(a1)<BarsSince(a2); {latch} x:=Alert(x,2) AND a2; {first a2 after a1} x;
Thanks to Wabbit for code.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
If I were looking for an "nth" event after a specific event, I'd be more likely to use a count-and-reset like Roy has shown us many times. The above situation works in most situations because bars are either black or white, but not always!
wabbit [:D]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/12/2010(UTC) Posts: 3
|
sir
my question is i need an exploreor to finf out the stock that is white in colour after we get a black candle.please send me the correct formula to find out the exploreor
|
|
|
|
Rank: Advanced Member
Groups ready for retrieval: Registered, Registered Users Joined: 11/7/2005(UTC) Views messages in topic : 602
|
Below: Replace first instance with your definition of a black candle Replace second instance with your definition of a white candle Then use "x=1" as the explorer "filter". This should give you the first white candle after a black candle.
a1:=first instance; a2:=Second instance; x:=BarsSince(a1)<BarsSince(a2); {latch} x:=Alert(x,2) AND a2; {first a2 after a1} x;
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.