Rank: Newbie
Groups: Registered, Registered Users Joined: 3/15/2007(UTC) Posts: 7 Location: Novosibirsk-Russia
|
Hi all! Prompt as in the Metastock to construct indicator called Camarilla. In a plotter of indicators at preservation writes an error - literally wrong syntax of the formula. As with it to struggle and that I incorrectly do?
The formula is:
Highest(1)=C+(H-L)*(1.1/12) Highest(2)=C+(H-L)*(1.1/6) Highest(3)=C+(H-L)*(1.1/4) Highest(4)=C+(H-L)*(1.1/2) Highest(5)=(H/L)*C AND Lowest(1)=C-(H-L)*(1.1/12) Lowest(2)=C-(H-L)*(1.1/6) Lowest(3)=C-(H-L)*(1.1/4) Lowest(4)=C-(H-L)*(1.1/2) Lowest(5)=C-(H5-C)
What do I do not so?
|
|
|
|
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)
|
For those playing at home.... I have chatted with Andrew and it turns out his indicator is a lot more complicated than the code shown above. The proper implementation of the code uses intraday data in different timeframes with variable start times. Otherwise, feel free to play around with this: Code:
H1:=C+(H-L)*1.1/12;
H2:=C+(H-L)*1.1/6;
H3:=C+(H-L)*1.1/4;
H4:=C+(H-L)*1.1/2;
H5:=(H/L)*C;
L1:=C-(H-L)*1.1/12;
L2:=C-(H-LOW)*1.1/6;
L3:=C-(H-L)*1.1/4;
L4:=C-(H-L)*1.1/2;
L5:=C-(H5-C);
{plot in chart window}
H1;H2;H3;H4;H5;
L1;L2;L3;L4;L5;
wabbit [:D]
|
|
|
|
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.