I need an EA based on a simple Heiken Ashi indicator.
Trades should simply be triggered by Heiken Ashi COLOUR changes.
Buy order: Every time HA candle changes colour to the default Bull candle colour, for example Lime Green.
Exit buy order: Whenever HA candle changes colour to the default Bear candle colour.
Sell order: Every time HA candle changes colour to the default Bear candle colour, for example Red.
Exit buy order: Whenever HA candle changes colour to the default Bull candle colour (Lime Green) for example.

Note: I understand that the candle may change colour many times, the EA should take action accordingly each time the colour changes, i.e. buy when the new signal candle turns GREEN, but if the same candle turns back to RED, EA should automatically close the buy order and then place a sell order. If that same candle still turns GREEN again, that sell order should be closed and a buy order should be opened. Basically, the COLOURS control the trades.
In the picture above where the blue arrow is pointing, the GRREN candle was a buy signal following the last RED candle, indicating the end of bearish trend and the beginning of a bullish trend. However, market later decided to resume the down trend, and one of 2 scenarios could apply.
1. That GREEN candle could turn RED and the bearish continues, this was not the case shown in the picture above. For this scenario, the EA should take the following 3 actions;
a. Action 1 - When the GREEN candle first appears, the GREEN candle closes the existing sell order which was opened at the top where the red arrow is pointing. (Use option for Opposite signal close orders, in the parameters)
b. Action 2 – The GREEN candle immediately opens a buy order.
c. Action 3 - When the GREEN candle turns RED, close the buy order and immediately open a sell order. Then the downward trend continues, otherwise repeat the process.
2. The GREEN candle remains GREEN until it closes, and it is followed by a RED candle, this was the case in the picture above. For this scenario, the EA should take the following 2 actions;
a. Action 1 - When the RED candle appears next to the GREEN candle, the RED candle closes the buy order opened by the GREEN candle.
b. Action 2 - RED candle immediately opens a sell order.
I understand that a candle may change colour many times and many small losses may occur, but that is tolerable. I intend to use longer TF to manage that situation.
Parameters:
Lot type: Option between fixed and MM
Take Profit
Stop Loss
Trailing Profit
Other profit/loss money management
Magic Number
Max Spread
Slippage
Option: Close by opposite signal
Then add all other parameters as you consider necessary.
비슷한 주문
: Hello, I am looking for an experienced MQL4 developer to create a custom Binary Options Trading Bot for MetaTrader 4 (MT4). The bot needs to automate trades based on clear conditions and must have a reliable integration feature. I would like the bot to work smoothly with Telegram so that it can either receive signals from a channel/group or send instant trade notifications directly to my Telegram. The code should
I am looking for an experienced MQL4 developer to create an Expert Advisor (EA) based on signals from a custom indicator. Requirements: 1. The EA must use a single custom indicator that draws buy and sell arrows directly on the chart. 2. When a buy arrow appears, the EA should wait until the current candle closes. If the arrow is still present after the candle closes, it should open a BUY trade. 3
//+------------------------------------------------------------------+ //| ThreeBullEMA10EA | //| Strategy: 3 Bullish + EMA10 Break | //+------------------------------------------------------------------+ #property strict extern double LotSize = 0.01; extern int Slippage = 3; extern int MagicNumber = 12345; extern int EMA_Period = 10;
I have an expert advisor's investor login. I want you to study it and make me the exact same EA. There should be absolutely no differences or mistakes. You should have great observation skills for this aswell
I am looking for a developer to create an Expert Advisor (EA) for MetaTrader 5. Requirements: Trade XAUUSD (Gold) Automatically open and close trades Include Stop Loss and Take Profit settings Adjustable lot size and risk percentage Work on MT5 Allow me to change settings from the EA inputs Include backtesting support Source code preferred
> izz: #property strict input double LotSize = 0.01; input int BuyStopDistancePips = 50; input int SellStopDistancePips = 50; input int TrailingStartPips = 30; input int TrailingDistancePips = 30; input int MaxPositions = 3; input double StopLossPips = 0; input int MaxSpreadPoints = 300; input ulong MagicNumber = 20260702; input double DailyLossLimitUSD = 50; double PipValue; int digits; int OnInit() { digits =
Technical Description of the EA The Ghost Sovereign engine is a trend-following breakout system optimized for XAUUSD (Gold) . Its logic operates through several distinct layers: Trend Filtering: It utilizes a 144-period Exponential Moving Average (EMA) to establish the primary institutional trend direction . Momentum Entry: The EA executes trades when the closing price of the previous bar confirms a trend breakout
I have build a trading view indicator which monitors trades. The strategy is based on OB, it buys and sells bullish and bearish OB. Also valid re enters on the retest of orderblocks only if TP is hit the first time. I’m looking for someone to develop me a EA which works on the same logic and buys and sells of the same logic as my Indicator. I currently have my indicator firing signals into a telegram channel so I
Order Block Forms / Price Touches │ ▼ Break Touch Candle High/Low │ ▼ Strength Alignment or BR Valid │ ▼ No Opposing OB within X Pips │ ▼ HL/LH Fractal OR Two-Candle Break │ ▼ ENTRY │ ▼ ──────── Trade Management ──────── │ ├─ Opposing OB Breached │ AND │ Opposite Strength Alignment or BR │ └──► Loss Exit │ ├─ Opposing OB Reached │
I am looking for an experienced MQL5 developer to code a simple grid trading strategy into an Expert Advisor. The strategy logic is already defined, and I am looking for someone with strong MQL5 development experience to implement it accurately and efficiently. If you are interested and have relevant experience, please get in touch so we can discuss the project details