I have writtern this EA for MQL4 but I'm having a difficult time with MQL5. I need someone's help.
Inputs
TakeProfit, StopLoss (in pips)
TradingTimeFrame - the chart's period
IndicatorBuffer - using the chart's timeframe, IndicatorParam1,IndicatorParam2,IndicatorParam3, I can add params if needed later
Example: iMACD(NULL,TradingTimeFrame,IndicatorParam1,IndicatorParam2,IndicatorParam3,PRICE_CLOSE,MODE_MAIN)
OtherTimeFrame - some other timeframe,
OtherIndicatorBuffer - using the OtherPeriod's timeframe + OtherIndicatorParam1, OtherIndicatorParam2, OtherIndicatorParam3
MaxSpread (in pips) - if current spread is bigger, stop trading until spread is back to normal
Leverage - multiplier of Balance to get lots, example: Leverage 10, Balance 1000, should trade 10,000 or 0.1 lots
MaxSingleDayLossCount, example if set to 2, after 2 losing trades in the same day, trading should stop until next day
WaitInMinutes - after a trade has reached SL or TP, wait before placing another trade based on new signal, also wait for next order if trading multiple based on new signal
MultipleTrades - bool, true or false. If true, will add to position in the same direction but must use WaitInMinutes and new Signal
StartHour - start of trading for the week, Sunday at 17:00PST
StopHour - stop trading, close all open positions, Friday at 12:00PST (implicit, no trading on Saturday)
AllowClose - bool. If true will close open positions based on opposite signals
OnInit
Write all parameters above to file, Symbols()+params.csv if not present
Read all parameters above to file, Symbols()+params.csv (useful because a recompile sets all params back to default)
If Optimizing or Testing, do not read nor write params files
Set MagicNumber by converting Symbol() to number.
for(int i=0;i<6;i++){
MagicNumber += MathAbs(StringGetChar(Symbol(),i));
}
OnTick
Alert if TradingTimeFrame != Period() and stop EA or just return(0)
Check dayofweek and hour of day use TimeLocal()
if Sat = no trading
if Sun and 17:00, start trading
if Fri and 12:00, stop trading and close all open positions
Signals:
bool TrendUp = OtherIndicator[0]>OtherIndicator[1]
bool SignalUp = Indicator[0]>Indicator[1]
bool TriggerUp = Ask>Previous bars high, TradingTimeFrame or chart's Period()
OpenBuy = TrendUp && SignalUp && TriggerUp
OpenSell = TrendDn && SignalDn && TriggerDn (need 3 more bools opposite of Up bools)
CloseBuy = OpenSell && AllowClose
CloseSell = OpenBuy && AllowClose
GetLots = Leverage * Balance (converted to lots)
GetLastClosedTradeTime - used with WaitInMInutes, I think this must be TimeCurrent()
GetLastOpenTradeTime - used with WaitInMinutes and Multiple, also TimeCurrent()
Trading:
GetSignal
check loss count (from history)
check lots
check wait and direction of open position if trading Multiple (GetLastOpenTradeTime)
check wait with GetLastClosedTradeTime
SendOrders - market orders only, then modify to add SL and TP
Symbol().Refresh after successfull send order.
That's it for now, I think I got all my requirements in. Let me know if you're interested and an estimate of cost. I can give you snippets of my MQL4 code if you are chosen.
類似した注文
An hft to pass prop firms sybthetic challengues fast. The bot has to be able to pass the challengues with no Dd. Please don't offer if You don't have what i post. I am not looking s friend. Ibwsnt tanto bebdone as soon as possible
Hey there! I’m looking for a talented NinjaTrader programmer to partner with on some exciting projects. If you have a knack for NinjaScript and a passion for trading tech, let’s team up! What You Can Expect: A friendly collaboration on diverse projects Fair pay—50/50 split on all earnings An opportunity to dive deep into innovative trading strategies What I’m Hoping You Bring: Experience with NinjaTrader and
Здравствуйте. Я новичок в трейдинге. Ищу робота для торговли золотом и валютными парами. Так как я новичок в этом деле, то хотелось бы найти хорошего робота, который бы сам определял прибыльную сделку (неважно валютная пара это или золото) и сам бы ее совершал, хотя бы с точностью 90%. О цене поговорим позже. Жду ваших предложений
I want to Trading to the real account and I need to work with robot so I don't how to find the robot so I need your help to find it or we can talk what's app my number 076 584 7256
Hello, i have a custom indicator on pinescript and i would like to convert it to a EA. Indicator basically gives buy sell signals and based on that orders to be placed and reversed. To give you complete requirement: 1. Use the TV pine script and convert it to EA 2. Reverse signals i.e. when buy order is running and sell signal shows then close previous order and open signal. 3. No
I need an EA that use the following Strategie. Please watch the videos on the Youtube channel. The EA should work on every Plattform https://www.youtube.com/@MXProfits/videos I need video call to explain
See the video and expert advisor should cater to all the requirements and setups shown in below video. Expert advisor will work on just 1 symbol and 1 timeframe which is present on the chart to which is attached. https://www.youtube.com/watch?v=PjigwAmhiT0& ;t=892s trading system is based on stochastic oscillators, particularly what "quad rotation" and divergences. Need to use four stochastic bands (9,3 - 14,3 -
MT5 中运行的 EA 的主要任务 : 1 EA 将同时选择两对货币进行交易,包括 AUDUSD 、 EURUSD 、 GBPUSD 、 NZDUSD 、 USDCAD 、 USDCHF 、 USDJPY 、 AUDJPY 、 EURAUD 、 EURJPY 、 GBPJPY 、 GBPNZD 和 GBPCHF ,默认设置 GBPUSD 、 EURAUD 。 2 蜡烛图 的时间 区间 包括 15M 、 30M 、 1H 、 2H 、 4H 或 1D 。对于两对货币中的 每一对而言, 将同时密切观察两个 时间区间图。 也就是说,两对 货币 同时 打开 四个窗口,每对默认设置 15M 和 4H 。 如果 您 不肯定如何 为同一货币对打开两个窗口,请不要考虑接受这项工作 。 3 将使用自主开发的指标 CMA 结合 CCI 预测走势。 在某些特殊情况下 ,将使用 马丁格尔策略进行操作。因此,如果您已经拥有基于 Martingale
Required to develop expert advisory which will work on any pair including crypto , forex, gold, silver, oil, simple stragy which will work on RSI,GRID, take profit, grid distance, start and stop button, only buy and only sell, filter for time frame Like 5m to 4 hr. stop loss and take profit .Detail will be shared once you except order
// กำหนดค่าตัวแปรพื้นฐาน input double lotSize = 0.1; // ขนาดล็อตที่ต้องการ input int takeProfit = 50; // ระยะ Take Profit (จุด) input int stopLoss = 50; // ระยะ Stop Loss (จุด) input int magicNumber = 123456; // หมายเลข Magic Number input int smaPeriod = 14; // ช่วงเวลา Simple Moving Average (SMA) // เวลาที่ออเดอร์ล่าสุดถูกเปิด datetime lastOrderTime = 0; // ฟังก์ชั่นหลักของ EA void OnTick() { //