Expert Advisors and Automated Trading - page 208

Is it possible to set up the strategy tester to test an EA over several different time windows - e.g. run over Jan 2021, Feb 2021 etc, and store the results. I guess I could just run the EA over the whole period that data is available and manually wort out for each period how many trades it did
Hi! Please see subject. I have balance and enabled cloud network, but it's only using my local machine currently. Not sure if it's possible to engage the cloud network for this task, and if so, how? Thanks much! =)
Hi, Is there any way to block or avoid someone use more than one EA at the same account. I wish to use only my EA and avoid someone use a "copier trades" to another account (from demo to real for example)
I built a trading robot with the MetaTrader 5 api. Everything works great until the system crashes every few hours. It opens about 20 or 30 trades at a time on a currency pair in a candlestick, which often does not include SL or TP. In these cases, everything is wrong. The point of entry into
I've come across an issue that's a bit strange, the code below is able to tell anytime a pending order is deleted/cancelled on the chart. Outside tester the result.order field carries the ticket of the pending order that was cancelled, but if you run this same code on the strategy tester the
if both conditions are true in a logical OR statement, what will be the outcome? Eg - if (A=1) then C=1 if (B=1) then C=1 so, accordingly, if (A=1) || (B=0) then C should be 1 if (A=0) || (B=1) then C should be 1 if (A=1) || (B=1) then what will be the C? is it still C=1 when both conditions are
When demarker period 2 crosses above level 0.6 and mfi period 2 is below level 20,bot should take a buy Then bot should take profit when mfi period 2 is higher than level 35 Please help me code it please,anyone help me
Hi there! Sorry if this is the wrong place to post, i just didn't find a better one. i've found a discrepancy between the documentation and the real behaviour: For FrameAdd() , the documentation states: data [in] An array of any type to write into the frame. Passed by reference. But in
hi new mql5 developer here I have 2 errors can you help me? '{' - function definition unexpected 4MA.mq5 462 1 '{' - function definition unexpected 4MA.mq5 471 1 //+------------------------------------------------------------------+ //|
Hello guys, I couldnt find any example on codebase. I'm pretty sure there is something out there about this. A simple interface with two textboxes where you can define stop loss = 200 and take profit = 300 (for example) and when you enter an order at market price (both values, sl and tp go along
hello, I start programming in MQL5, and I progress little by little but I do not understand an event. I put the code below but when I run the Script and look at the log in MT5 it tells me that my stop loss is not good (stop loss = 700,000). At the beginning I thought to myself that I had coded badly
Hello everyone I use MT5 for trading but I need some help I want to have an expert for my stop lost that fix on kijun sen or tenkan sen value. can you help me to make it
Hi! I have been doing some research but so far can't find an actual yes or no answer to this. I'm looking to create an EA that will work with renko bricks and can autotrade. Thanks much
Hello, Just bought a month of the MQL5 VPS service. I read the instructions and set up my charts and system options as I want them to be before migration, including all my custom indicators. When I go to migrate, the migration says it's successful and all the message in the journal say this too -
trying to change the stoploss of an order, I get the error in question and "error n 4756" i'm using a library downloaded from this site, it's called k_orders, i've changed it a bit believing i'll solve the problem but i still get the error. the library is in the attachment. p.s. I'm trying to move
High Win/Loss Ratio (high % of profit trades), High Risk/Reward Ratio (example: sl=100; tp=400), Balanced
Hi, I couldn't find any satisfying solution, so I created my own, maybe it will be useful for someone, will be glad for any feedback. Tested with online calculator on multiple pairs, and looks like it works. class PositionSizeCalculator { public : double Calculate( double risk, double
hi, in the expert advisor I am writing there are 2 sma, I would like to make sure that they are colored differently in the strategy tester because they are both red. If possible I would like to show them also when I attach the EA to the chart. there's a way? thanks
Hi all, i am a MQL5 newbe, i made my first EA. I'd like to start my EA at comouter startup (so linuxmint). I read documentation and followed this official example: https://www.metatrader5.com/en/terminal/help/start_advanced/start i changed common.ini file adding [startup] section as mentioned. But
handleHull=iCustom(_Symbol,PERIOD_CURRENT,"Hull",Hull_Period,Hull_Power,Hull_Price); slowHandleHull=iCustom(_Symbol,PERIOD_CURRENT,"Hull",Slow_Hull_Period,Slow_Hull_Power,Slow_Hull_Price); ArrayFree (hullVal); ArrayFree (slowHullVal); CopyBuffer (handleHull, 1 , 0 , 2 ,hullVal); CopyBuffer
Hello, when I press "T" I want to enter trade levels (entry, stoploss, takeprofit). At the moment I can only do it by using OBJ_TEXT. Is this also possible with a Message Box or something similar? I don't use the regular trade window because I use an automatic position calculator and I don't want to
hi Im very new mql5 **EA opens Many Trades, How to Open 1 buy & 1 sell I would like to open 1 buy & 1 sell. For some reason my EA opens many trades** **here is my code** ***
why the bool logic is returning a number when i set Percentage_greater_than a small number like 0.001 or even zero ? its so strange... and when i put this line into a bool variable i get false even though it should be definitely true: ((wick / (body + tail + wick)) >= (Percentage_greater_than / 100
I notice that my EA trades work fine but, auto-trading is not executed when there is an open drawing object pop-up window. The auto-trading only executes when closing the object pop-up window. Is this correct and, if so, is there a way to give priority to the trading signal? Thanks for helping
Hi ,Thanks for helping me figure out how to get tickets based on a specific symbol. I used loop positiontotal but if I open a position in another chart it also displays it, I want a list of chart tickets Have current symbols THIS HELP https://www.mql5.com/en/code/32739
Hi, I'm writing an EA for testing combinations of different indicators. For that I want want to have different parameter sets for each indicator. My problem is that the code is getting a bit redundant I would like to initialize the indicators based on the metadata. Parameters shal be stored in an
Hello everyone, I'm stuck with an issue and i'd appreciate your help. Usually in a normal way here it's how i'd define and read a new indicator in an EA (and that's worked fine): 1. Define the handle in OnInit() part (My Handle is an array of int because of the specific currency i): Handle[i]=
Hello, after a number of self-developed Expert advisors I find my way around using the "OnTick" function together with a number of self-programmed functions. I keep coming across the other events, like for example "on trade" or others. Even after quite some research, it is not clear for me how I
In the StrategyTester the Bilanz is now in pips how to change this? Is there still the trading cost calculation included? Thx