Trabalho concluído
Termos de Referência
Create Trading program/robot which should work in Meta trader 4 using moving averages, RSI and stochastic based on following rules by using mql4 language. Back test of same can be done. Program will be for any forex pair chosen.
Input as per below
Time frame will be from time frame of the chart
Maximum budget can be alloted to this program can be adjusted
Lot size fixed and can be adjusted
Trailing stop : yes, in terms of number of pips
Stop loss: Yes, value can be highest of last candle closed for sell order. And lowest of previous candle for buy order
Exit buy order: on reaching RSI below 45 or stop loss hits (can be lowest of candle previous to order opened or vice a versa)
Input for slow moving average can be adjusted or changed
Input for fast moving average can be adjusted
Input for RSI can be adjusted or changed
Input for stochastic can be adjusted or changed
Trading can be control by day and time of day
Implement the following rules for the buy condition:
Calculate the fast moving average (MA) and slow MA using the closing price. If the fast MA crosses above the slow MA from below and stays above that proceed to the check next condition.
Calculate the RSI using the closing price. If the RSI is 50 or above, proceed to check the next condition.
Calculate the stochastic oscillator and check if it favors the buy condition. It should have an upward slope.
If all the above conditions satisfies by all three indicator then, place a buy order instantly.
Implement the following rules for the sell Condition:
Calculate the fast MA and slow MA using the closing prices. If the fast MA crosses from above and stays below the slow MA proceed to check the next condition.
Calculate the RSI using the closing price. If the RSI is 50 or less than 50, proceed to check the next condition.
Calculate the stochastic oscillator and check the slop that should be downwards and favors the sell condition.
If all the conditions given to all three indicator supports the sell condition, place a sell order on that chart.
Note: some minor corrections in conditions may get changes depending on back test result. It is deemed to be get corrected in the same work order