View Full Version : MQL4 code help
supma2.000
03-18-2006 04:04, 04:04 AM
Hi there,
New tonigeriaforextrading FX (just paper trading in the mo) and have to say I'm happy I found this website, exceptional and very informative.
Recently installed MetaTrader 4 along with getting to grips with it, I would like to overlay a trailing stop loss indior for long short positions just as a visual reference on the charts, is this possible and if so could somebody please post this code.
Thanks Beforehand
isibpe
11-28-2021 09:57, 09:57 AM
Been Looking, nothing Discovered
Could you post a link
MvbenWesl
11-28-2021 11:18, 11:18 AM
Satman,
I discovered a trailing stop file for MT4. The file is called, ATR Trailing Stop.mq4. Not sure if it's the exact same stop5.mq4 file that highway3000 suggested as the attached file has a different name.
Hope this helps.
https://www.nigeriaforextrading.com/attachments/1518561212650270880.mq4
Amalinga
11-28-2021 12:39, 12:39 PM
1 Attachment(s)
Been searching, nothing found
Can you post a link
Here it is.
isibpe
11-28-2021 14:00, 02:00 PM
Thanks for the links,
Downloaded both and also have attempted to use the documents without success.
Have got both documents from the indior window but when I click them to use them only happens.
What's the procedure to rescue them to MT4 and use them?
Due
valemayag99
11-28-2021 15:21, 03:21 PM
Ordinarily I double click and get a popup window for placing options. If this does not occur you can try recompiling in the editor: ToolsMetaQuotes Language Editor.
LOxFu
11-28-2021 16:41, 04:41 PM
https://www.nigeriaforextrading.com/trading-system-and-egies/106-dumping-audjpy-yen-pairs-worth.html
Imene05
11-28-2021 18:02, 06:02 PM
Hi guys, please I need help to plug in both of these items together...
I have this EA (mql4), which will be monitoring the account Balance, Equity and Profit. When the established profit or the established loss % is attained the robot closes all open trades.
I also need the Autotrade in Mt4 to be turned off to protect against the most important EA to start new trades.
I have a Script for that, but I do not know how to plug it into EA. Can somebody please help me?
Inserted Code #include lt;WinUser32.mqhgt; extern bool DisableAllEAs = TRUE; emptiness DisableEA() keybd_event(17, 0, 0, 0); keybd_event(69, 0, 0, 0); keybd_event(69, 0, 2, 0); keybd_event(17, 0, 2, 0); int begin() if (DisableAllEAs == TRUE) DisableEA(); return (0);
Inserted Code //If sett reduction or profit attained close all trades and prevent EA extern double equity_percent_from_balances=0.9; extern int profit_target=200; int begin() if(AccountEquity()lt;(AccountBalance()*equity_perc ent_from_balances)
Amalinga
11-28-2021 19:23, 07:23 PM
Hi there,
New tonigeriaforextrading FX (just paper trading at the mo) and have to say I am happy I found this site, exceptional and very informative.
Recently installed MetaTrader 4 along with getting to grips with it, I would like to overlay a trailing stop loss indior for long short positions just as a visual reference to the charts, is that possible and if so can somebody please post this code.
Thanks in advance
Proceed to metaqoutes or google trailling stop5.mq4
It's all there.
Powered by nigeriaforextrading® Version 4.2.5 Copyright © 2024 nigeriaforextrading Solutions, Inc. All rights reserved.