Rank: Newbie
Groups: Registered, Registered Users Joined: 10/19/2008(UTC) Posts: 2
|
Hi,
i would like to have a coloured last bar on my chart when conditions are fullfilled.
How can i plot this last bar and only this one? I wrote the following formule in the highlights section of an expert file to get the last bar in red if it appears to be the lowest low value of the last 20 periods.
L=LastValue(LLV(L,20))
In certain case when the L of another bar included in the 20 days period has the same L value than the last bar, i get 2 red bars; How do i have to proceed to plot only the last bar (to get only this last one highlighted in red) ?
Regards
|
|
|
|
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)
|
Try this: Code:l=llv(l,20) and cum(1)=lastvalue(cum(1));
Hope this helps. wabbit [:D]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 10/19/2008(UTC) Posts: 2
|
Wabbit, you 're great! Thanks a lot.
Metastocker
|
|
|
|
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.