Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 11/23/2005(UTC) Posts: 22 Location: Chicago, Illinois
|
Hi Members,
Need a hand here. I'm developing the ultimate indicator and have a question. I generate multiple buy signals based on moving average crossovers and stochastics movements. One of these invariably triggers first, and the other ones fire a bit later. This results in a very busy chart which is hard to follow. I want to set some kind of global flag that is set when a long is entered so the other indicators do not display. I see there is a fmlvar() function but it's a read only way to get values.
Thanks for the help -
Garp
woof woof
|
|
|
|
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)
|
Garp,
Do a search of the forum for "latches".
There are several methods, some use the MS formula language, some use external functions. Have a look in the downloads section for an article by Roy Larsen on using latches in MS.
Hope this helps.
wabbit [:D]
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
Here is latch from this forum: a1:= Fml("a"); a2:= Fml("b"); i:=Cum(a1+a2>-1)=1; {initialixation - inputs are valid} x:=BarsSince(i OR a1)<BarsSince(i OR a2); {latch} x:=Alert(x,2) AND a2; {first a2 after a1} x; I loose the "i" variable and it works fine. Is that Larry Williams Ult.Osc. or your own?
|
|
|
|
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.