When a bullish renko bar with a long wick closes, the ea should set a buy stop @ x number of pips.
When a bearish renko bar with a long wick closes, the ea should set a sell stop at x number of pips.
When a buy trade is in progress, and a sell signal occurs, and the sell stop is triggered, then the buy trade should be closed
When a sell trade is in progress and a buy signal occurs and the buystop is triggered, then the sell trade should be closed.
Stoploss for a sell trade should be placed at the high of a signal bar,
for a buy trade, the stoploss should be at the low of the signal bar.
In the attached image, place buystop at blue arrow and sell stop at red arrow.
For a renko bar to qualify as a signal bar, the wick must be equal to or longer than the body of the renko bar before it.
Partial close at breakeven.
6 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön
I have years of experience programming EAs. I have working renko bar code already. I simply need to apply your trading logic, which is all pretty standard. I provide clean, commented, correct code quickly.