Expert Advisors and Automated Trading - page 172

  Demark Auto Trader  (29   1 2 3)
Demark Trend Auto Trader EA
[Deleted]
I am relying on the new MQL5's function WebRequest in order to consume a RESTful webservice from an EA, however I can't POST some JSON data this way: string headers;char result[];string signal = "{\"ea_id\": 1,\"symbol\": \"AUDUSD\",\"operation\": \"BUY\",\"value\": 0.9281}";StringToCharArray(signal...
Hi, I'm curious what would be the best method of implementing these 2 platforms together? Binance has an API available here: https://www.binance.com/restapipub.html And Metatrader 5 is amazing because of it's cloud-enabled EA optimizations. Looking forward to a suggestion. Thank you.
So my current project has become quite, uh, webbed... In a bad way. I'm finding it problematic to define trade rules in a consistent and consolidated way, and if I step away for too long I find it hard to identify sometimes why a trade was opened or close, although my logging is pretty good. Is
hello, if my global variable is call abc1,abc2,abc3,abc4..... can i use like "for i=1 to 4" to calculate abc"i" ?? thank you for reply
Hi all, is there anybody out there who uses the standard libraries for MT5? I mean especially the financial libraries, libraries such as CExpert and so on. How reliable is this stuff, because the control classes are everything else than reliable and don´t work proper since they´ve been released....
My code is the following ... and I'm getting an error saying that "array out of range in '1.mq5' (23,13)" , when use it. How can I correct this error? Thanks a lot. #21/06/2020 2300 //+------------------------------------------------------------------+ //|
Hi! when evaluating the performance of my EA that's running on demo, i'm having trouble finding out which timeframe a pair was traded. I changed the TF a few weeks ago & unfortunately, didn't take a note of the exact day, as i thought (newbie...) it would be visible within /logs, MQL5/Logs or the
This trade was to help me in scalping. but it isn't closing trades. Objective was to find alternative for sl or tp at a level closer than stop levels of a pair. please help. Tried closing them by removing any condition for closing trades but it still didn't work. These set of statements to close
I have this input bool a= true ; input bool b= false ; If(a && b) #define result > else if (a) #define result < else if (b) #define result = else #define result != then I want to use result like this Print ( 5 result 3 ) Is it possible
Hi, I need a <Deleted> EA robot which can trade at pivot points support and resistance levels
Hello, When I make a get_position I have the list of my positions opened, and I have a colum with the "type". Type 0 is a Buy position and Type 1 is a sell position. positions=mt5.positions_get(symbol= "GOLDmicro" ) if positions==None: print( "Aucune position sur GOLD, code d'erreur={}"
Hi everyone, I'm trying to detect an order opened by my EA and closed manually. I tried with magic number but, unfortunately, get only 0 for manually closed orders. Anyone know how to reliable detect an order opened by an EA and closed manually ? Thank you
Hi I’m new to this platform and trading. So bear the newish question. I noticed in MT5 the MACD signal line is based on SMA. How do I go about calculating the MACD Signal line value based on EMA. I just am after the current value. I’ve read other posts about this but I am still confused. Some people
I am writing some files for state persistence, but this is not needed when back testing. What code or environment variable (or similar) can we use in the EA, so it knows when it's being executed by a backtest
Why as I getting this error? Is it because: #property indicator_buffers 6 #property indicator_plots 2 But I have: #property indicator_type1 DRAW_COLOR_CANDLES and #property indicator_color1 clrRed , clrGreen So I am using: Plot 1 4 buffers for the candles 1 buffer for the colour index Plot 2 1
I am trying to have a candle plot along with a line chart. The properties I have set us is: #property indicator_chart_window #property indicator_buffers 6 #property indicator_plots 2 #property indicator_label1 "candle" #property indicator_type1 DRAW_COLOR_CANDLES #property indicator_style1
Hello there, I did a very simple expert based on my personal trading strategy . Basically, I wait the indicators confluence and open a position following the trend, as you can see below. There are four EMA (8,20,50 and 200), Vwap, ADX(14), RSI(14) and Volumes. When all of them shows me what market
Hi all, I'm writing a CSV filewrite feature in my EA to basically track my equity curve as well as other data. This code works but everything is printed in one cell, rather than a different column for each parameter - any ideas? if (new_bar( PERIOD_M5 )) { string csv_name = "Infinity
Hellow, I hope somebody can help me :) I am storing a counter value in a variable. Each tick the value gets checked. For each time the value of the variable changes I want to perform a function. For example : variable = 0 variable changes to 1 > call to perform the function (one time) variable
In my EA I need to know how much money will I spend if I buy 1lot of current symbol. -- Pawel
Hello, I'm having issue with my time filter izit doesn't take trade on all instances evene if my setup show up within the specified time range on strategy tester while testing but if I increase the time session it might now pick up the trade
Hey all, I have written the following code to check if there is an open order with a matching symbol and magic number within my multi-symbol EA, but it does not prevent multiple orders from opening. The OpenTradeOrderTicket is a global array that is meant to store a 1 or 0 depending on whether there
Hi guys! I have developed an EA, with HFT strategy type, and the signals are working well, tested in scripts and single run, but when I am trying to do optimization, the results are coming as 0 trades in forex symbols and index symbols are working well . Does anyone have any idea? PS: I'm
hellow, Probably this is a newbie question but here we go. I regardless the discussion whether this is a good idea or not, what I want to do is the following as below : Instead of a stoploss, once my long or short order is triggered I want to set a sellstop (in case the long order is triggered) or a
Hello, I would like to understand how the TP works... If I open a request to open a trade like this: request = { "action" : mt5. TRADE_ACTION_DEAL , "symbol" : "GOLDmicro" , "volume" : 0.1 , "type" : mt5. ORDER_TYPE_BUY , "price" : mt5.symbol_info_tick(
Hello everyone, I want to link a trial account to my trial account on the MT5 platform, but I am not getting any response from the platform. It does not give an error, but it does not connect. My English is not good. I couldn't search the forum. I am sad. please someone help
I am trying to backtest an expert advisor and limit the number of pending orders to 1. However, when I place an order using the CTrade class, OrdersTotal() is still returning 0. I found this forum post but to no avail. Here's the function I'm running and the output: void Buy() { double sl = iOpen
Let's say I have 50$ to spend on single position. It is 1/100 of my account - this is my strategy (EA). How can I calculate size of position in lots based on FIAT? I'd like to use the same EA for different markets - I don't want to hardcode position size
When tested to be traded why? Compiled Many times Changed the location return Comment out traded method Delete .mq5 file The result does not change //+------------------------------------------------------------------+ //| FXModel_exp.mq5 | //|