logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
maeday  
#1 Posted : Saturday, March 15, 2014 11:29:59 PM(UTC)
maeday

Rank: Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/21/2009(UTC)
Posts: 22

Was thanked: 1 time(s) in 1 post(s)
Has anyone been able to plot Guppy's TVL line across his MMAs. I am having problems doing this and would appreciate any help.

What I am trying to do is, when the Guppy MMAs have stacked and started to rise, to plot a horizontal line commencing at the value of the fastest of his "slow group" ie Emav30. When that horizontal line crosses the value of the slowest of his "slow group" ie Emav60 it jumps in value to the new Emav30 value and then continues horizontally again until the next cross of the Emav60.

So far I have been able to produce the following, which starts OK at the Emav30, but I can't get it to jump up in value after it crosses the Emav60. I think it needs another IF combined with Barsince functions over where I have used the PREV command but I can't for the life of me work out how to achieve what I am after.

Confusing I fear But I would really appreciate any suggestions as I would like to test this as a possible Stop Loss
TVLTrigger:= Mov(C,15,E) > Mov(C,30,E) AND Mov(C,30,E) > Mov(C,35,E) AND Mov(C,35,E) > Mov(C,40,E) AND Mov(C,40,E) > Mov(C,45,E) AND Mov(C,45,E) > Mov(C,50,E) AND Mov(C,50,E) > Mov(C,60,E) ;

TVL:= If(Ref(TVLTrigger,-1) < 0.5 AND TVLTrigger > 0.5,
Mov(C,30,E) , PREV );

TVL
wabbit  
#2 Posted : Tuesday, March 25, 2014 7:26:48 PM(UTC)
wabbit

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)
You were close; try:

Code:

TVLTrigger:=
Mov(C,15,E) > Mov(C,30,E) AND Mov(C,30,E) > Mov(C,35,E) AND Mov(C,35,E) > Mov(C,40,E) AND Mov(C,40,E) > Mov(C,45,E) AND Mov(C,45,E) > Mov(C,50,E) AND Mov(C,50,E) > Mov(C,60,E) ;

TVLTrigger:=TVLTrigger AND Alert(TVLTrigger=0,2);

ma30:=Mov(C,30,E);
ma60:=Mov(C,60,E);

{plot - LONGs only}
If(TVLTrigger OR Cross(ma60,PREV),ma30,PREV);


maeday  
#3 Posted : Monday, March 31, 2014 10:12:17 PM(UTC)
maeday

Rank: Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/21/2009(UTC)
Posts: 22

Was thanked: 1 time(s) in 1 post(s)
Thanks Wabbit, much appreciated. The Alert function now part of my learning curve. Never used it before.
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.