Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/19/2005(UTC) Posts: 17
|
Hello,
I try to write a program which could draw supports and resistances, but i can't succeed.
Thanks you for your help.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Hi,
You never replied to the divergence post, did that work for you?
Regarding the support and resistance line, do you more details available?
What do you base these lines on, etc ...
Patrick
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/19/2005(UTC) Posts: 17
|
Hello,
Thank you for the divergence exploration, because it was exactly what i want.
For the support and resistance, i would like to draw horizontal lines with higher and lower of the week or of the month. I think it is better to choice the period.
Best regards.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Alright this might be a little too basic but here is what I would start with :
Period:=Input("Periods",1,50,5);
HHV(H,Period);
LLV(L,Period)
Let me know how you would want to adjust this.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/19/2005(UTC) Posts: 17
|
Hello,
I think that it's better to draw the horizontal lines only from the peak (resistance) or the bottom (support) of the week.
Best regards.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Alright then, why not start with :
LastValue(Peak(1,H,5));
LastValue(Trough(1,L,5));
...
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/19/2005(UTC) Posts: 17
|
Hi Patrick,
The idea is good, but there are too many horizontal lines on the screen.
I prefer to limit the lines to 10 for example, and i would like to have the most important horizontal lines after a peak or a trough.
Have a good day,
Patrick.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Hi Patrick,
I don't know if it is because of the huge migraine I have right now or something else but I don't understand how you could get more than 2 lines out of this indicator :
LastValue(Peak(1,H,5));
LastValue(Trough(1,L,5));
Or did you use multiple retracement percentages?
Patrick
:mrgreen:
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/19/2005(UTC) Posts: 17
|
Hello,
Sorry, you have got reason :oops:
Thanks for your help :lol:
|
|
|
|
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.