Работа завершена
Техническое задание
Create Expert Advisor that trades the daily pivot, it should do the following:
Show arrow on right hand screen either green or red for the following:
Daily Bias: long/Short/Range ( with green/red/orange arrow depending on bias)
4 hour Bias: long/Short/Range ( with green/red/orange arrow depending on bias)
1 hour Bias: long/Short/Range ( with green/red/orange arrow depending on bias)
I would like the pivot points to be built into the EA so i do not need to add them to charts
This will be based upon the positioning of price in relation to EMA, For long confirmation price should be above 50 and 200 EMA and 50EMA should be above 200 EMA this will happen for each time frame above and should update continuously. For short 50EMA below 200EMA and price below 50EMA, for range bound anything else such as EMA are not in correct order, or price is in between the EMA.
Now if all of them agree with each other, for example long, then it will wait for price to break up through the daily pivot and when the bar breaks it will wait for the high of the bar to be taken out and then enter at market execution.
for sell positions all arrows agree, and it waits for price to break down through daily pivot and low of bar to be taken out before entering trade at market price.
Input options
-----------------------------
Stoploss:
TakeProfit:
Lotsize:
Risk%account:true or fale
%Risk:
MaxSpread: 4
dailyfilter:true or false
4hourfiliter:true or fale
1 hour filter:true or false
TakeProfitatR1: true or false
pipsfromr1takeprofit:10
Direction Bias:True or False
Trade EA:True or False