Rank: Newbie
Groups: Registered, Registered Users Joined: 9/24/2010(UTC) Posts: 7
|
I have tried lots of variations of the formula below without success.
I am lookig for 5% of the high of the current bar minus the lowest low value of the previous 2 bars added onto the high of the current bar to be less than or equal to the close,200,simple moving average. Obviously the same plus 115% >= the c,200,s moving average is the rest of the formula.
I'm sure it is someting simlple I am missing, any help would be greatly appreciated.
H+(H-(LLV(L,2))*.05)=Mov(C,200,S)
--------------------------------------------------------------
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/24/2010(UTC) Posts: 7
|
H+(H-(LLV(L,2))*.05)<=Mov(C,200,S)ANDH+(H-(LLV(L,2))*1.15)>=Mov(C,200,S)
also can't get formula to display in forum so try again!
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/13/2005(UTC) Posts: 715 Location: Midwest, USA
Was thanked: 1 time(s) in 1 post(s)
|
Your explanation is very, very hard to follow...in the future, you will find it easier to break the problem description into smaller pieces, ditto for the code. This may do what you want:
------------------------------------ PrevLow:=Ref(LLV(L,2),-1); Target:=(H-PrevLow)*.05; MA:=Mov(C,200,S); (H+Target)>=MA; ------------------------------------
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/24/2010(UTC) Posts: 7
|
Thanks very much for your help Johnathan ,
I realise my explanation and code were confusing, the forum was deleting sections of my post.
All the best,
Matt.
|
|
|
|
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.