Lavoro terminato
Specifiche
When a blue arrow appears open a buy trade at x pips from the high of the signal candle, if x is 0, open a buy market order. The stoploss should be placed at x pips from the last blue line. If x is 0, the stoploss should be at the last blue line.
When a red arrow appears, open a sell trade at x pips from the low of the signal candle. If x is 0, open a sell market order. The stoploss should be placed at x pips from the last red line if x is 0, the stoploss should be placed at the last red line.
The ea should use a z moving average to determine the direction bias. If the price is above the z moving average, only buy trades should be taken, if the price is below the z moving average, only sell trades should be taken.
The z moving average should be optional as in have a true or false option to use.
The take profit should be in relation to the stoploss.
There should be an option to choose, 1:1 risk reward ratio, 1:2 risk reward ratio, 1:3, risk reward ratio etc.
The money management should use x% of max logic. If x is 1 for instance, this means that for every trade, I should risk, 1% of the max amount of money in my account. If my balance is 300 dollars to start, the ea should risk 1% of $300, when the account falls to $298, the ea should still risk 1% of $300, if the account rises to $305, the ea should risk 1% of $305, if the account then falls to $295, the e should risk 1% of $305. This x can also be decimal like 0.8% or 0.5% etc.
Ea should have, trading time, number of trades, trailing stop, partial close, break even, an option to adjust indicator settings.