Lavoro terminato
Specifiche
ENTRY CRITERIA
*ONLY ONE POSITION OPEN AT A TIME*
BUY ORDERS = When the 9 EMA and the 20 EMA cross from the bottom place a buy order. (At shift 1 the 9 EMA is below the 20 EMA, and at shift 0 the 9 EMA is above the 20 EMA)
SELL ORDERS = When the 9 EMA and the 20 EMA cross from the top place a sell order. (At shift 1 the 9 EMA is above the 20 EMA, and at shift 0 the 9 EMA is below the 20 EMA)
The above are the initial entry criteria. However, I have another set that would be dependent on the result of the last order. If the reason for the last order was that it was placed as a result of a stop loss activation, a trailing stop activation or a break even activation, I would like the EA to re-evaluate the conditions and place another order as a result.
BUY ORDERS = Place a buy order if the reason for the last order was the result of a stop loss activation, a trailing stop activation or a break even activation and the 9 EMA is above the 20 EMA (no cross needed this time).
SELL ORDERS = Place a sell order if the reason for the last order was the result of a stop loss activation, a trailing stop activation or a break even activation and the 9 EMA is below the 20 EMA (no cross needed this time).
EXIT CRITERIA
A trailing stop of 20 pips
A stop loss of the ATR*4
A break even function to be set at 15 pips into the profit zone. (Once the position has reached a profit of 15 pips, the stop is automatically moved up to break even.
A take profit of 100 pips
NOTE: The exit criteria are not a reversal of the entry criteria
MONEY MANAGEMENT
I would like the trade volume to be a result of the account balance. On every trade I would like the fixed volume at 0.1, the risk percent to be 2 and the stop loss to be 50 pips for the purpose of calculating the position size, but in practice the stop loss that will actually be used will be the ATR*4. The 50 pip stop loss is only used in theory to calculate the position size/trade volume.
Risk percent with a specified stop loss of 50 pips