ProRealTime to MQL4 easy code

MQL4 Experts

Tâche terminée

Temps d'exécution 1 jour
Commentaires du client
Top developer! he is very helpful! i appreciated it a lot!
Commentaires de l'employé
Thank`s a lot

Spécifications

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


Répondu

1
Développeur 1
Évaluation
(253)
Projets
408
38%
Arbitrage
86
43% / 19%
En retard
70
17%
Chargé
Commandes similaires
Good Day I would like to create a trading bot that is able to link to my news provider. The bot will execute trades based on the actual news release data as soon as the data is released. I will need to input parameters that would automatically trigger once the actual data is released (Need to know what format you will require or other recommendations) Execution speed will be a crucial factor in this regard. Adding to
The strategy uses a grid trading system where trades are placed at set intervals (grid levels) and are managed using Bollinger Bands for entry and exit signals. A fixed lot size, trades are managed to comply with maximum spread conditions and specific trading hours, with the possibility of closing trades based on Bollinger Bands signals. The use of Bollinger Bands indicates a focus on volatility-based trading, while
Hi, I would like to create an expert advisor to fully automatic trade in MT4 as below, it should be possible with gold or any currency pairs and need to possible with 2, 3, 4 or 5 after decimal quotes PAROL MA CROSSOVER 1. Magic Number : Customize 2. Take profit in points : Customize 3. Stop loss in points : Customize 4. Strat time in GMT : Customize 5. End time in GMT : Customize (It means no need to open a new
Hi. I will require a MT4 EA with 3 indcators for a specific time frame, certain parameters can be adjusted and should be able to automated trading. 1. RSI 2. EMA EA 3.Trading Volume . 4 & 5 digits can use 1.) 1 RSI . and 2 EMA ( cross over ) 1.1.) All different timeframe can use ( adjustable ). 1.2.) Entry pricing will need to meet at least 2 out of 3 indicators levels. 1.3.) Each indicators can be adjusted. 2.)
Need MT4 EA which will trade based on Round Number and Supertrend. Trading conditions: If buy supertrend is >= lower round number and <= the higher round number, EA will place a buy pending order at the higher round number. If sell supertrend is <= higher round number and >=lower round number, EA will place sell pending order at the lower round number. If the trade is exited because of SL/BE, EA will place another
Hi Everyone, I need a cloud based licensing system to protect my MT4 / MT5 Indicators and Expert advisors Secure an unlimited number of EAs, indicators, and scripts. Create and manage unlimited license keys for secured EAs, indicators, and scripts. Instantly suspend license keys in case of refund. Lock EA/indicator to specific accounts and time frame similar to this
I need a ea 50+ USD
I need an ea for my prop firm challenge 5000usd account. that can execute trade itself with 0.5R risk and at least 1:2 target.Not maximum drawdown 2-3% and can generate monthly return 10 to 20%
Hello Devs! I like to create a new EA based on the below conditions: (Please do not bid if you have no confidence of fulfilling the codes requirements. Thanks!) You can code MT4 or MT5 or both depending on your preference. 1. Different Magic numbers for BUY and SELL 2. Add on time filter for each day individually. Eg: Mon = 00:01-23:59, Tue = 01:00-23:30 etc. (Monday to Sunday) True/false to close all trades at end
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
I need an EA which takes confluence of 4 ema on 3 different time frame before taking a trade. Ea should have risk to reward option, option to add xyz pips above stoploss criteria in order to avoid hitting sl due to spreads. Customizable RR to cl9se trade partially when desired RR is reached. Also require source code to get future changes done

Informations sur le projet

Budget
60+ USD
TVA (22%): 13.2 USD
Total: 73.2 USD
Pour le développeur
54 USD
Délais
à 1 jour(s)