Hello, good afternoon, I hope everybody is fine I show you the following code that I have been doing at my own pace, because i am new to this and i am learning. Its objective is that: When I make a buy/sell by market, Stop Loss and Take Profit are already place by default With the idea that it can
Hi i have an indicator that gives arrows for buying and selling that I'm trying to turn into an EA, i do not have the source code for the indicator so I'm trying to write code that will identify these arrows on the chart but I'm not sure where to start. I know there's plenty of articles on using
Hello guys! Am not that good at coding, my code "find attached below" has a few errors while compiling. Anyone knowledgeable in the field kindly look over the code and help me out. Thanks in advance
I want to combine RVI Signal(1) (PERIOD_CURRENT), CCI(PERIOD CURRENT) and Chaikin(PERIOD_M1) into one value and turn it into an indicator. I have never coded an indicator and I need help. Please point me in the right article to read, or code it and paste it if you feel so kind. :D Timeframe of the
MqlTradeRequest Request; Request.sl = SymbolInfoDouble ( Symbol (), SYMBOL_ASK ) - 500 ; Hi guys, I want to set sl price to current price - 500dollar, but that does not work, so how can I write
Once an EA is developed and optimized for the first time (or if an EA is purchased with default setfiles for that matter), I may feel tempted to re-optimize when I see the EA starts to have a losing streak, but its default parameters MAY still be functioning well (as drawdowns happen). Is it
MqlTradeRequest Request; MqlTradeResult Result; MqlTick Tick; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void OnTick () { for
So I have it open accepting JSON messages 24/7 but it seems after being open for a certain period of time (this time it was about 1 week exactly) it just stops accepting new messages until I maximize the command prompt window, then suddenly all the previous messages it should have accepted come
I been sending the following request to close a position but it the print_statement keeps returning NONE. what can i do please. if pos.ticket == ticket: request ={ 'action':mt.TRADE_ACTION_DEAL, 'position':ticket, 'type':0, 'price':tick.ask
Please yell at me if I posted this in the wrong area. Idk why searching has brought zero results on how to post a question Genetic backtesting my EA using real tick data. If I back test over a year of data I run out of RAM and memory swapping kicks in. This makes backtesting nearly useless. It
hi guys im creating an EA that will place a pending order at a specific time,for example lets say i decide that at 3:30 pm i decide that my EA places a pending buy order,however what tends to happen and is the obstacle right now is that,at 3:30 the EA makes the pending order just as instructed,but
Hi everyone, I'm new around here, and just started using the pre-built Expert Advisors (Generate Templates) in MQL5. I don't know much about C++ or MQL5, so I was looking at a pretty steep learning curve, but decided to start somewhere. However, I noticed that there is support for MetaTrader5 using
If I open and pending order and then modify the price is this modified price reflected in ORDER_PRICE_CURRENT ? Or is this the current market price? Asking to be sure
I'm sending myself alerts on certain new bars, when two of my custom functions return a 1 for example, but it seems there's some slowness or lag causing the custom functions to respond to the previous bars value... I want to send the alert 20 or seconds after the new bar has started. What is the
Hi Everybody, Hope you are doing good, I want to know a best n easy way to convert mql4 to mql5 and vice versa, and should effect its working
Hello Has anyone tried to code the Price Rate of Change in an Advisor? Can you please share the code
I developed an EA that performs very well backtesting the last year, but when I run it on 2018 the result is a huge loss. 2019 also performs badly. I know that results in a certain year doesn't garantee results in other years. But I would like to be sure if this results are correct. How do I know if
Hi, I am using python to build an expert advisor. Right now I have a function which calculate the quantity by the investment but dosent take into account the leverage so how I calculate the leverage? Here is my function: def qty_buy(symbol, investment, df): try : ## price = float
IT KEFT RETURNING "UNSUPPORTED FILLING MODE" AS I TRIED TO MAKE A SIMPLE BUY ORDER VIA PYTHON SCRIPT. WHY IS THAT? CAN ANYONE HELP PLEASE
Hallo, I have script for pending order. But i need to add some function on it. - Can anyone help on how to add it as i very new on making something like this. - Pending orders can be determined from a certain price, not just from the current price. And can do Pending order on Buy limit, Sell stop
Hello everyone,
I want to write my own trade copier, because all available paid and unpaid do not meet my needs.
What are the basic principles of making trade copier EA?
We have 3 accounts live/demo with 20 traders each varying just the lot size. We have full acess to those accounts...
How do I change the Start, Step & Stop default settings in inputs Appreciate your help :)
#include <Trade\Trade.mqh> CTrade m_trade; COrderInfo m_order; CPositionInfo m_position; void OnStart () { m_trade.SetExpertMagicNumber( 1 ); m_trade.Buy( 0.01 , Symbol (), 0 , 0 , 0 , "script" ); } //+------------------------------------------------------------------+ This script places
So I want to build a simple EA that will open several trades based on simple. I'm using 1:100 leverage. OnTick(){ if trade_condition=true Check Money Mgmt; Open a trade Go through all open trades Close if close-condition of the trade is met Modify SL & TP accordingly Q#1: I'm opening trades using
I have Rsi Alert Code i need to when my receive my Alert that time Place a order Each time Help me Anyone I will attach Alert Code #property link "https://www.earnforex.com/metatrader-indicators/moving-average-crossover-alert/" #property version "1.02" #property strict #property
The problem is, after a few hours on this server, metatrader always closes with the error message...
(7)
Hello, I'm copytrading and I'm getting signals on my account which is running on my VPS. The problem is, after a few hours on this server, metatrader always closes with the error message "System to be shutdown, request for close PurpleTrading MT4 "followed by another message "PurpleTrading MT4
Hi guys, I am finishing an EA and I am testing it. So far everything is ok, but there are some situations that I couldn't test and it really worries me. For example: What is the ORDER_STATE of a partially filled order which has the pending part cancelled (IE. By order of 200 AAPL, 100 were executed,...
Hi Everyone, I am developing a multi-currency mean reversion strategy. I currently use instantaneous filtering to get rid of potential trades where there is high market noise, low volatility, lack of clear trend and particularly high relative volume. This has proven to be effective but I'm also
I am working with the following array of ENUM_TIMEFRAMES elements: ENUM_TIMEFRAMES H1andBelowTFS[ 12 ] = { PERIOD_M1 , PERIOD_M2 , PERIOD_M3 , PERIOD_M4 , PERIOD_M5 , PERIOD_M6 , PERIOD_M10 , PERIOD_M12 , PERIOD_M15 , PERIOD_M20 , PERIOD_M30
Ok, I won't beat around the bush. Got two different sets from the same advisor both working pretty nice so I'm trying to merge them into a unique algorithm. The problem here is that each one work through a different hedging loop which need to be identified by their own MagicNumber, and I guess
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.