Hi, i need to translate this easy code from PRT to Mql4
DEFPARAM CumulateOrders = False // Max 1 position open (usually 2 orders when not on market, when on market 1 position and 1 order to close)
TIMEFRAME (2 hour, updateonclose) // if possible make it variable
mylongentry = low // if possibile make the number of the candle variable
mylongexit = high[1] // if possibile make the number of the candle variable
myshortentry = high // if possibile make the number of the candle variable
myshortexit = low[2] // if possibile make the number of the candle variable
TIMEFRAME (DEFAULT)
stopluca = 100 // extern variable
Mystarttime = 100000 // extern variable
myendtime = 214500 // extern variable
MyendtimeFriday = 224500 // extern variable
Position = 1.00 // extern variable
LucSpread = 20 // extern variable
// condition to operate
c2 = currenttime >= Mystarttime and currenttime =< myendtime and dayofweek <> 5
c4 = currenttime >= Mystarttime and currenttime =< myendtimefriday and dayofweek = 5
// condition for long entry
IF c2 or c4 THEN
BUY position CONTRACT AT mylongentry-LucSpread*pipsize limit
ENDIF
// condition to close long position
if longonmarket then
sell position contract at mylongexit - LucSpread * pipsize limit
elsif longonmarket and dayofweek = 5 and currenttime = myendtimefriday then
sell position contract at market
endif
// condition to enter short
IF c2 or c4 THEN
SELLSHORT position CONTRACT AT myshortentry+LucSpread*pipsize limit
ENDIF
// condition to close short position
if shortonmarket then
exitshort position contract at myshortexit + LucSpread * pipsize limit
elsif shortonmarket and dayofweek = 5 and currenttime = MyendtimeFriday then
exitshort position contract at market
endif
// stop loss
set stop ploss StopLuca
Benzer siparişler
I need to create an EA (MQL4) MT4 with can auto create buy and sell according to the Indicator " Machine Learning Adaptive SuperTrend [AlgoAlpha]" in trading view Setting could be same as trading view Additional setting such as : Start lot Stop-Order: same as indicator
I have a really very, very simple professional, proven, profitable forex strategy that works on a higher time frame with over 85% winning rate. I am searching a professional programmer to create expert advisor based on this stategy, in general I am searching a developer for a longer co-operation. I am a forex trader with over 12 years experience. telegram: fxMiguel It's a 15minute work job, 30min max, My budget is 10
// กำหนดค่าตัวแปรเริ่มต้น input double DailyProfitTarget = 200; // กำไรที่ต้องการในแต่ละวัน (2% ของทุน) input double LotSize = 0.1; // ขนาด Lot input double TakeProfit = 10; // กำไรต่อการเทรดใน pip input double StopLoss = 5; // การหยุดขาดทุนต่อการเทรดใน pip double dailyProfit = 0; // กำไรที่ทำได้ในวันนี้ // ฟังก์ชันเริ่มต้น int OnInit() { dailyProfit = 0; return(INIT_SUCCEEDED); } //
I need to compile my mt4 EA but there are some errors and warning if you can fix and compile send me your application I will select you upon Demo
i need someone to help me take 6 pieces of code from this script and simplify it into a new code .. . note this project is needed urgently in 2 to 5
1. The idea of the trading system is as follows: market entries are performed when MACD's main and signal lines intersect in the current trend direction. 2. Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is below
We need an Expert Advisor for MetaTrader 5 that will be simply based on Rsi, chart patterns and price levels (e.g 2366,250)… Basically when the robot notices a chart pattern, for example “double top/M pattern” it enters a trade based on confirmation from Rsi & price level and the stop loss is moved to the entry price…That is all. The expert advisor is only for Xauusd/Gold…The expert advisor should target 10 pips
Hi, Expert should be Brazilian. I need the scalping ea for xauusd, usdjpy, AUDUSD, eurusd, gbpusd, nzdusd, uascad and usdchf with any strategy. But don't use buy limit in down trend and sell limit in sell trend. I need the profit with 0.5 usd minimum per trade
Hello, I am looking for an experience MQL5 coder who can help me automate my trading strategy. Since this is an advanced coding so I would appreciate if only an experienced coder reaches out. I have attached a word doc of strategy, if you think you can build it then do let me know. Thanks, Sadaquat
I Need A Hedging Ea With Daily 2% of returns. I might think that ea work consistently. hedging Is The only Way To Make A Profit. That ea work in 1:200 Leverage and lot size is starting from 0.01