Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi ItalMeta
The combination of two "Multi-Frame" formulas should provide HIGH and LOW for the last 3 days of any chart from 1 minute through to daily periodicity. Creating a colored area between the two plots might be a little more difficult. The timing modules for all six series of Multi-Frame indicators are proprietary so a portion of each formula is withheld. However I can supply you with complete formulas if you provide me with an email address via a private message or an email to rlarsen@quik.co.nz. These formulas use the newer version (188 KB) of the Forum DLL, and it must be named Forum.DLL for the formulas to work.
Roy
{Multi-Frame D+ LLV}
{Lowest Low Value}
{Uses Equis Forum DLL}
{Roy Larsen, 2011-2016, 3/3/16}
{User settings}
N:=Input("Multi-Frame D+ LLV, Lookback Periods",1,26,3);
U:=Input("Price, 1=O 2=H 3=L 4=C 5=MP 6=WC 7=Typ",1,7,3);
J:=Input("Months/Frame, 0=Weekly 5=Bi-weekly 10=Daily",10,12,10);
Q:=Input("Mode, 0=Static 1=Dynamic 2=Delayed",0,2,0);
G:=Input("End-of-Frame Offset in Days, 0-13",0,13,0);
{D+ Timing}
{Day counter by metastock@wabbit.com.au}
{code withheld}
{Frame prices}
Q:=ValueWhen(1,M OR Z=1,O);
Q:=ValueWhen(1,J,If(J=1,Q,ValueWhen(2-G,1,Q)));
B:=HighestSince(1,M OR Z=1,H);
B:=ValueWhen(1,J,If(J=1,B,ValueWhen(2-G,1,B)));
Y:=LowestSince(1,M OR Z=1,L);
Y:=ValueWhen(1,J,If(J=1,Y,ValueWhen(2-G,1,Y)));
K:=ValueWhen(1,J,If(J=1,C,ValueWhen(2-G,1,C)));
A:=(B+Y)/2; D:=(B+Y+2*K)/4;
K:=If(U=1,Q,If(U=2,B,If(U=3,Y,If(U=5,A,
If(U=6,D,If(U=7,(B+Y+K)/3,K))))));
LowestSince(N,J,K);
{Multi-Frame D+ HHV}
{Highest High Value}
{Uses Equis Forum DLL}
{Roy Larsen, 2011-2016, 3/1/16}
{User settings}
N:=Input("Multi-Frame D+ HHV, Lookback Periods",1,26,3);
U:=Input("Price, 1=O 2=H 3=L 4=C 5=MP 6=WC 7=Typ",1,7,2);
J:=Input("Months/Frame, 0=Weekly 5=Bi-weekly 10=Daily",0,12,10);
Q:=Input("Mode, 0=Static 1=Dynamic 2=Delayed",0,2,0);
G:=Input("End-of-Frame Offset in Days, 0-13",0,13,0);
{D+ Timing}
{Day counter by metastock@wabbit.com.au}
{code withheld}
{Frame prices}
Q:=ValueWhen(1,M OR Z=1,O);
Q:=ValueWhen(1,J,If(J=1,Q,ValueWhen(2-G,1,Q)));
B:=HighestSince(1,M OR Z=1,H);
B:=ValueWhen(1,J,If(J=1,B,ValueWhen(2-G,1,B)));
Y:=LowestSince(1,M OR Z=1,L);
Y:=ValueWhen(1,J,If(J=1,Y,ValueWhen(2-G,1,Y)));
K:=ValueWhen(1,J,If(J=1,C,ValueWhen(2-G,1,C)));
A:=(B+Y)/2; D:=(B+Y+2*K)/4;
K:=If(U=1,Q,If(U=2,B,If(U=3,Y,If(U=5,A,
If(U=6,D,If(U=7,(B+Y+K)/3,K))))));
HighestSince(N,J,K);
|