This project is for coding of a MetaTrader4 Indicator for Forex.
The indicator is a cam level indicator working in all time frames from
minute 1,to,week 1
The indicator should work per day 24 hours and have a standard start time off 0 hours
but should have an option variable to change the start hour.
The indicator should also have a option to only show today (true/false) or show all the
previous days to, wich is the standard setting. If set to show today only when time passes to the next day it
should switch levels of course for the new day.
The levels for this cam come from the previous_day_high,previous_day_low and the previous_day_close.
The 4 cam levels are :
Long Breakout Level = ((PDhigh - PDlow) * (1.1/2)) + PDclose "line color lime"
Short = ((PDhigh - PDlow) * (1.1/4)) + PDclose "line color green"
Long = PDClose - ((PDhigh - PDlow) * (1.1/4)) "line color purple"
Short Breakout = PDClose - ((PDhigh - PDlow) * (1.1/2)) "line color red"
Also a pivot level:
Pivot = (PDhigh+PDlow+PDclose)/3 "line color magenta"
The above is straight forward on the cam levels should have an option sound alerts and or email alerts
these should be set on or off (true/false) standard should be email alerts on and sound on.
sound alerts are always on no limits how many times its sounds the email alerts should alert only once.
The sound alerts should be precise on the levels for the email alerts there should be a option field
to specify a pip value to place a number off pips lets say 5 if Long Breakout is 1.40 and pip to level
is set to 5 then email alert should go off on 1.35 or at 1.45.
There should also be a email alert reset if after email I look at the chart and reset it again for all levels.
Don't know if its possible but should have some control on the emails send if price bounces around I'll get many
email on my phone (think with me how to control this!).
The cam level indicator should work on any currency pair.
When sound alert it should also show alert box with text eurusd breakout type and price
example : eurusd LongBreakout 1.45 exactly like this also for the email alert this I set to send as sms to my
phone so I can see the message in the subject.
When pips to level is set the email alert is send and the exact level is shown in the message.
So when the indicator is set on a different currency pair it should retrieve the currency pair for the alerts
sounds and email alert. eample : USDCHF Short 1.44
Also need a previous week high and low indicator working in all time frames.
For this indicator I need fibonacci levels between the high and low levels.
Color of the lines for this indicator are blue.
Should work just like this Vtrader2 indicator I wrote:
fib1:= if(IndicatorDisplay=1, WeeklyHigh - ((H1-L1) * 0), null);
fib2:= if(IndicatorDisplay=1, WeeklyHigh - ((H1-L1) * 0.236), null);
fib3:= if(IndicatorDisplay=1, WeeklyHigh - ((H1-L1) * 0.382), null);
fib4:= if(IndicatorDisplay=1, WeeklyHigh - ((H1-L1) * 0.5), null);
fib5:= if(IndicatorDisplay=1, WeeklyHigh - ((H1-L1) * 0.618), null);
fib6:= if(IndicatorDisplay=1, WeeklyHigh - ((H1-L1) * 0.764), null);
fib7:= if(IndicatorDisplay=1, WeeklyHigh - ((H1-L1) * 1.000), null);
Weekly - Fibonacci (0: %fib1%, 23,6: %fib2%, 38,2: %fib3%, 50: %fib4%, 61,8: %fib5%, 76,4: %fib6%,100: %fib7%)
This indicator should have also sound alerts and email alerts to be set on the fiblevels.
with option true/false for sound alerts and email alerts.