Expert Advisors and Automated Trading - page 146

Any information about MT5 Auto Trading for Indian Market
Hi, im looking for drag & drop script to work with multiple entry in floating, example; 1 entry in profitable close all other same direction sell/buy entries once reached to targeted price line or targeted profit amount instantly. Targeted price line need to shown on chart. Targeted price OR
I have the following case: I want when a pending limit order is canceled or when it is executed the EA gives me the information of this order. I tried the following, but it didn't work: //+------------------------------------------------------------------+ //|
I want to add the magic number to the manual open position list, but what I wrote doesn't seem to work. See if there is a solution? int total = PositionsTotal (); for ( int i = total - 1 ; i >= 0 ; i--) { if ( PositionGetString ( POSITION_SYMBOL ) == _Symbol && PositionGetInteger (
Hi there, While trying to run a backtest that involves placing a pending sell order on the daily chart I get the strategy tester journal displays the message "failed sell stop.. [Market closed]" as below: The strategy tester settings are as below: The trade sessions times are below, but since the
Hello, I'm using some shortcut keys to perform some actions via keyboard.. the problem that when I configure a hotkey that MT5 also uses.. it works but also activates the function of MT5, for example the "SPACE" that activates a search box at the bottom of the chart.. my question is, how to "undo"
Hi, how would you approach the problem of displaying multiple equity curves from the optimisation results? Thanks
Hi there, I've followed these instructions on importing data: https://www.backtestmarket.com/en/blog/post/how-to-load-data-in-mt5. The MT5 user guide also has instructions on importing data but both resources related to 1M bars. I'm interested in daily bars for coffee for 10 years which I can get
i have a strategy that can switch between using market orders and stop orders/ pending order . When i switch to pending orders and try to optimize. The optimizer starts with an arbitrary balance max and never changes until all steps are completed any assistance will be highly appreciated. Can share
Hey guys, why doesnt this Print out the Symbols of open positions please? void print_symbols() { for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) { string symbol = PositionGetString ( POSITION_SYMBOL ); Print (symbol); } }
I need to code 1 EA, copy one of my existing EAs working on VPS Copy order according to capital ratio <...>
Hi, how can I load optimization results programmatically into the tester for further testing of those results only for a different date period? Thanks
Hi, How do I receive an email notification when an expert advisor I have having unloads itself from the chart? Thanks, Zijian
Hello, I was wondering if there is a way to "play" with mt5 operating(buy/sell) on past days (historical data), being able to speed up/forwarding the time. Thanks in advance
I want to make a function that can automatically sort according to the high, low, open, and close values in the mqlrates structure, but when calling the function, I find that the member variable name cannot be directly used as a function parameter. void getdata::Get_struct_sort(Type_Name
This indicator has no buffers and I'm not really sure how to extract the data i need (the pivots). If anyone can point me in the right direction it would be greatly appreciated. edit:I'm modifying the code to add a buffer, seems like the logical way to proceed
Hi There,is there a Website/ or anything else which offers for free full and correct data for ***?( Expert Advisor testing )i think i did not need to mention why. Warm Regards C.B
I am able to get the profit of the first buy trade but when I open another buy it does not sum it. How can I calculate the profit for all open buy orders? Thanks in advance. if ( PositionSelect ( _Symbol )== true ) { double Profit_Sum= 0 ; for ( int i= PositionsTotal ()- 1 ; i>= 0
Goodnight, I'm creating a bot and I need to extract some information for analysis, so I'm trying to create a txt, or csv, or even bin file, whatever I can make it work to receive this information; everything seems to work fine, as stated in the documentation, however the generated file has
I'm trying to get open price from ticket number and I'm using CTrade library to open position. I can open the position with no problem, but I think I cannot select the openned position by the ticket I have. I have tried OrderSelect() function, but it return false with error code 4754 which mean...
Are commisions and slippages included in EA automatically? Thanks
Hello everyone, I want to backtest my code with the strategy tester but i want an external input that say sometimes it's "&&" sometimes it's "||", is it possible ? Example : External_Input_1 between 1 and 10 (in the strategy tester) External_Input_2 between 1 and 10 (in the strategy tester)
Hello, I would like to write a piece of code that allows me to open a position (buy or sell) at a certain time (for instance 11:58:45) every day. I would like to let it open the trade on it owns, for a DCA stratagy (buy at 11:58:45 every ady). DO you guys have a code already doing that ? I can't
Good Afternoon, I'm currently working on my first EA and working with pre existing code. Here is the question, is there a simple relatively clean way to have the EA check open orders, and ensure that if it would not open another order on the same currency? The only way I can think of would be lots
I've been trying to code my EA to trade multiple symbols and multiple timeframes and have reached a point where i do not know how to proceed, it complies just fine but i know it's not how it should be done, should i use 3d arrays ? and how so ? How do i get the ChartOpen() to distinguish which
Part 1: According to the documentation, TimeCurrent() “returns the last known server time” and is not dependent on your computer's clock while TimeTradeServer() “returns the calculated current time of the trade server” and is dependent on your computer's clock. Can somebody explain in detail what
Hello all, I am new to EA progamming. I need help with finding the previous low under the current price value like in the pictured represented by ( x ) do any of you know how to do this, thank you very much
Hi all My EA will not open sell stop orders & opens too many orders instead of 1. If you know the problem please help. #property copyright "Copyright 2022, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #property strict #include <Trade\Trade.mqh> #include
//+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart () { TestFunction(testClassInstance1); }
Hello all. Please can anyone help me. i am creating EA based on Ichimoku. when Ichimoku give buy signal than open 3 buy orders on same candle with 3 different SL TP.. and close buy orders on opposite signal. thanks in advance