Closed

Expert Advisor - moving averages, candlesticks and logic

This project was awarded to AIMonster for $90 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Skills Required
Project Budget
$30 - $250 USD
Total Bids
7
Project Description

General requierments are:
1. TimeFrame must be user inputable value in Expert Advisor settings
2. All values (EMAs, MAs and other) must also be user inputable values in Exeprt Advisor settings
3. EA should check for conditions and execute orders at the Close of market (the end of the daily "signal" candlestick)


Entry for BUY:

EMA(20) is above EMA(50)
and EMA(50) is above EMA(100)
and EMA(50) has been increasing for EVERY DAY FOR PAST WEEK. Number of days/periods should be user inputable value in Expert Advisor settings
and price crossed from BELOW to ABOVE EMA(20) during the current candlestick
and price is above EMA(20) at the close (when the order is placed on the market - explained in nr.3. of general requirements)
and close for current day/candle is above 70% (user inputable in EA) relative value to size of entire candlestick for that day
and Open for current day/cangle was below 30% (user inputable in EA) relative value to size of entire candlestick for that day (in effect this represents a solid green candle)

Close position when:

close price is below EMA(50) OR during the day/current period price FALLS 1% under EMA (50)
AND
IF price was above SIMPLE MOVING AVERAGE (10) at CLOSE of previous day/candle AND IF price is below SIMPLE MOVING AVERAGE (10) at close of this day/candle, THEN CLOSE POSITION AT CLOSE PRICE.
HOWEVER this rule CAN ONLY BECOME ACTIVE on the 2nd day/candle after entry (user inputable period in Expert Advisor) BUT ONLY IF close on the first candle after entry is below MA10 (if not, the rule is active on the first day after entry.
(example, if BUY is executed on Tuesday's close, then SMA based rule can only become active on Thursday if on Wednesday close is below MA10).



Entry for SELL:

EMA(20) is below EMA(50)
and EMA(50) is below EMA(100)
and EMA(50) has been decreasing for EVERY DAY FOR PAST WEEK. Number of days/periods should be user inputable value in Expert Advisor settings
and price crossed from ABOVE to BELOW EMA(20) during the current candlestick
and price is below EMA(20) at the close (when the order is placed on the market - explained in nr.3. of general requirements)
and open for current day/candle is above 70% (user inputable in EA) relative value to size of entire candlestick for that day
and close for current day/cangle was below 30% (user inputable in EA) relative value to size of entire candlestick for that day (in effect this represents a solid red candle)

Close position when:

close price is above EMA(50) OR during the day/current period price RISES 1% above EMA (50)
AND
IF price was below SIMPLE MOVING AVERAGE (10) at CLOSE of previous day/candle AND IF price is above SIMPLE MOVING AVERAGE (10) at close of this day/candle, THEN CLOSE POSITION AT CLOSE PRICE.
HOWEVER this rule CAN ONLY BECOME ACTIVE on the 2nd day/candle after entry (user inputable period in Expert Advisor) BUT ONLY IF close on the first candle after entry is above MA10 (if not, the rule is active on the first day after entry.
(example, if SHORT is executed on Tuesday's close, then SMA based rule can only become active on Thursday if on Wednesday close is above MA10).

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online