Hey guy, i want to use this indicator in my EA. Below you can see a picture of the indicator in any chart: Now a picture from the same chart, but within the backtester: I´ve used 1m OHLC and tick data as well. nothing works. In the left upper corner you can see all the buffers. This values are
I have Problem with modified SL Error, Please help me to correct it. I am attache Price Error Screen Shot and Code for TrailingSL . Here is Screen Shot. Trailing SellSL Code void AdvanceSellStop(double Bid) { // Set Desire stop Loss for buy trade double ssl = NormalizeDouble(Bid +100
I started genetic. Forward started after genetic, but forward stuck in 256. I saw that in link but i dont understand. link: https://www.metatrader5.com/en/terminal/help/algotrading/strategy_optimization link text: There is a lower limit for the number of passes of forward testing. If the number of
Hello, I have trained keras model which is i want to use in EA, how can i add the keras model to MQL5?? from tensorflow.keras.models import Sequential,load_model model = load_model('MyModel.h5') Predict = model.predict(Data,verbose=2) In python i use like this, is there a way to use this in MQL5
[Deleted]
How to create a handle for 2 indicators in 1 Window (Stochastic oscillator & Ichimoku Kinko Hyo)
(3)
How best can i first create a handle for my window containing Stochastic oscillator & Ichimoku Kinko Hyo if possible? I want to use this handle to create Indicator values for my buy, sell conditions and Take profit I had clearly defined and created Arrays for my indicators but my conditions show
Hi Experts, I have a few subscribers who are using a particular broker due to the region they live. I am however, using a different broker and I mainly trade indices CFDs. I know their symbols and they know mine. I was wondering if anyone can help me with a reliable code to match these names so that
I have been unclear on my doubts about forward testing even after researching a lot. I test with a 1/3 forward testing period with criteria as "complex criterion max". My optimization has 2835 passes. This is the data for first optimization pass. --- After forward testing the optimization results
I'm developing a new robot and I'm having trouble to figure this out.. Lets say my robot opened a new order and it hit my SL. How could I temporarily block new orders to be triggered until the price hits a moving average ? Examples would be great if possible
MqlTradeRequest myrequest; MqlTradeResult myresult; ZeroMemory (myrequest); ZeroMemory (myresult); myrequest.type = ORDER_TYPE_BUY ; myrequest.action = TRADE_ACTION_DEAL ; myrequest.sl = 0 ; myrequest.tp = 0 ; myrequest.deviation = 20 ;
Hi all, I have a problem doing some simple file reading in MQL5, while I was able to do the same pretty fast in MQL4. Here's the problem. I'm trying to read double and string from a CSV file that looks like this: 0 ,EURUSD, 8.555000000038934 , 1 , 0 , 1.18117 , 1.1810900000000004 , 1.18129 Here is
Hi I'm looking for an expert who will automatically save my trading strategy so that I can sometimes use that expert as an automated trading robot. please guide me. thank you
I have trouble connecting my MT4 to the signals themselves. In the bottom Toolbox, in the Signals tab, I do not see any signal providers. In the options menu, it says I am not connected and the link just takes me to the signal tab of the MQL5 website. I did log in in the community tab already with
Hey Guys .....I'm new here So I've been trying this coding thing for some time now and now my biggest challenge is that my EA does enter a trade when the requirments are met , the only problem is that after it enters a trade given a signal ...it continues taking trades after signal and it trades
Please someone help me with converting iMA function from MT4 to MT5. I need call iMA with other pair and different shift. I do not see the input shift with the iMA for MT5. mq5 compiles without error but while testing it give this error: " (EURJPY,M5) cannot load indicator 'Moving Average'...
Im looking for someone how can program several EA/Indicators for MT5 - Firts one to create 10 seconds charts -Second one to know the price equivalance between the spot and the futures , you can add the desviation value and see it in the chart, http://prntscr.com/s26s9u -3's one EA to place limit
input string StartTime = "08:00"; input string StopTime = "20:00"; /-------- bool HoursFilter() { datetime time = TimeCurrent (); string hours_minutes1 = TimeToString (time, TIME_MINUTES ); if ( StringToInteger ( StringSubstr (hours_minutes1, 0 , 5 ))>= StringToInteger (StartTime) &&
Dear All, Can anyone help me to create EA with my trading strategy. I call it the Margin Maker strategy, because every time I open a BUY position I always close it with SELL after 20 pips and vice versa. like Strategy GRID. I've never used SL and TP. because my final goal is to make a RANGE SELL at
Heloo. I have now look at many EA:s for when MA1 cross MA2 but I don´t understand them. How to write an EA for that strategy without anything else then this condition for buy and sell. There are so many things that I don´t need in an EA. No one has so that it can calculate how many LOT it should
I recently migrate from mql4 to mql5 .when I put a pending order with a magic number , I can modify or delete the same order by the magic number. But my problem is when the pending order opened . After it opened i couldn't access to position by the magic number I specified for pending order. I think
Hello there, I'm backtesting my EA, which is based on MA crossings and other indicators. Right now, I get blue arrows and lines when partially closing a sell position. I use ctrader. However, it's still a sell position, not a buy position. That happens just in the strategy tester visualization
What is the most effective way to have an EA catch a sudden strong momentum in one driection? I'm currently using a trading strategy where I have large trades open over a long time. Always only buy trades (to avoid swap rates). I was thinking that I could sort of "buy insurance" against a sudden
I have a working script - to a huge part thanks to the precious help I had received from this forum. The script now successfully performs the following steps: gets a filename input and reads the corresponding csv file that contains Yahoo Finance OHLCV data for a given stock, e.g. Microsoft
I purchased the <Deleted>, buyer beware my account immediately started loosing. I don't suggest this EA. They keep taking my comments off. I wonder why? ;-)
Hello all, I’m trying to write an ea where when price breaks an EMA, and comes back to touch it again, I’m placing an order to anticipate a bounce. I’ve tried this but lots of trades are missed: Buy if previous candle low > previous EMA and current close <= current EMA The first part simulates a
Does anyone know how long a demo EA signal remains active and available for subscription? It seems to me that after about 3 weeks following publishing, it is no longer possible to subscribe to demo signals, even if you have a direct link to the signal. Has anyone got more detailed information on
Hello, how to close an opened position? For example, I opened a position in this manner: request.type=ORDER_TYPE_SELL;request.price=SymbolInfoDouble(Symbol(),SYMBOL_BID); request.symbol=Symbol();request.volume=0.1;request.type_filling=ORDER_FILLING_FOK;request.sl=NormalizeDouble(stop_loss...
Hi, I don't understand why, it's been a while i'm wondering what's the problem . I have an expert advisor that works fine if I set fixed sl and tp ; I want to remove fixed tp because I want to close my position from indicator signal , so I set request.tp = 0 as mentioned in references and the error
Hey I am trying to get the history of the values when my trade was closed. I am using this to get the ticket from the history. It is sometimes correct but there are times when it gives me the wrong value. With the below function I get this: TradeOrder(ticket=113690916, time_setup=1616627110
Hi can someone help me how to insert a bitmap to my EA ? i tried the manual of MQL5 and i didnt secsussed for example i want to add the defult bitmap of dollat from folder \\Images\\dollar.bmp" to middle of the chart how can i do it
I would like to involve OnInit() in a .mqh file so that OnInit() will be executed both in the main .ex4 file and in the .mqh file. Is this possible? One must then override OnInit() in the .mqh file in some way.
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.