Trabalho concluído
Termos de Referência
Dear MQL4 programmers!
A need Indicator that I can choose and mark on chart 4 points (in this order F0,F1,F2_A,F2_B) (coordinates Price and date/time ) on Candlestick Chart and after draw 3 or 4 FIBO in colour. The end :-)
USER MENU has got 3 user buttons:
a) Choice "Trade",
- "F3" (DEFAULT)
- "F5" – do nothing
- "Correction" – do nothing
b) Choice "Trend":
- "downward "
- "upward "
c) Function keys:
- delete all points and FIBO
- delete 1point (and remove FIBO)
- rename of point (and redraw FIBO)
The program draw the points on chart below or above candlestick with this names according to that algorithm, where H means High[] value L - Low [] of bars
If "Trend" is "downward trend" :
F0 -> H,
F1 -> L,
F2_A -> H,
F2_B -> L,
If "Trend" is "upward trend" :
F0 -> L,
F1 -> H,
F2_A -> L,
F2_B -> H,
When user mark all points mentioned above, the indicator program will draw 3 or 4 FIBO lines:
1) If Trend is “ downward” :
A) Draw Blue Colour FIBO1:
-if (F2_B >F1)
Size = abs(F0-F1)
Position 0%: F1
100%: F0
-if F2_B < F1)
Size = abs(F0-F2_B)
Position 0%: F2_B
100%:F0
B) Draw RED Colour FIBO2:
Size = abs(F2_A-F1)
Position 0%: F2_B
100%:F2_B+ abs(F2_A-F1)
C) Draw GREEN Colour FIBO3:
Size = abs(F2_A-F2_B)
Position 0%: F2_B
100%:F2_A
D) Draw ORANGE Colour FIBO4:
-if F2_B >F1
Don’t draw
-if F2_B < F1
Size = abs(F2_A-F2_B)
Position 0%: F1
100%: F1 + abs(F2_A-F2_B)
2) If Trend is “ upward” :
A) Draw Blue Colour FIBO1:
-if (F2_B < F1)
Size = abs(F0-F1)
Position 0%: F1
100%: F0
-if (F2_B > F1)
Size = abs(F0-F2_B)
Position 0%: F2_B
100%: F0
B) Draw RED Colour FIBO2:
Size = abs(F2_A-F1)
Position 0%: F2_B
100%: F2_B - abs(F2_A-F1)
C) ]Draw GREEN Colour FIBO3:
Size = abs(F2_A-F2_B)
Position 0%: F2_B
100%: F2_A
D) Draw ORANGE Colour FIBO4:
-if F2_B < F1
Don’t draw
-if F2_B > F1
Size = abs(F2_A-F2_B)
Position 0%: F1
100%:F1 - abs(F2_A-F2_B)
If some conditions block posibility drawing the program will get some information /alert about it eg. "I cant draw FIBO with this points".
I need source file of indicator as well (*.mq4).
I am responsible for mystakes of conditions not you.
See attachment - example screen of indicator.
It can be usefull that the value % of fibo doestn't overlaps each other.
This is first phase of big program, first come first served with optimal price ;-).