Bartlomiej Winter
Bartlomiej Winter
Friends

Add friends via their profile or user search and you will be able to see if they are online

Bartlomiej Winter
Added topic Changing the comment to trades which hit a stop loss or take profit
Hi all, Thank you for looking at this thread. I want to know whether or not it is possible to change the comment on MQL5 to trades which hit a stop loss or take profit ? I have a comment added to trades which closed based on my exit condition, but if
Bartlomiej Winter
Added topic EA which prints out daily returns
Hi all, I'm looking for a good technique which can extract the daily returns of a trade history on the backtester of an EA. Would anyone be able to direct me to the best way to do this? Cheers and thank you for looking at this thread
Bartlomiej Winter
Added topic Using MetaTrader 5 to backtest a portfolio of strategies
Hi all, I've got a simple question. I've got a bunch of strategies that I want to test simultaneously (using different markets also) on the MetaTrader 5 backtester . What is the best way to go about doing something like this? Thank you for looking at
Bartlomiej Winter
Added topic Array out of range
Hi all, I get the array out of range error and I cant seem to figure out why! Any help is greatly appreciated!    MqlRates PriceInfo[]; //Sorts it from the current candle to the oldest candle    ArraySetAsSeries (PriceInfo, true
Bartlomiej Winter
Added topic ArrayResize for 2D arrays
Hi all, A quick question here, how would I write the following using ArrayResize?  Thank you :) double arr[ 10 ][ 12 ]
Bartlomiej Winter
Added topic Reading a CSV file into an EA
Hi all! Thank you for looking at this thread. I'm having an issue at the moment of trying to import a matrix from a CSV file into a MetaEditor script.  The file below is what the CSV file looks like in MetaEditor. What piece of code could I
Bartlomiej Winter
Added topic EA removing itself from chart on tick
Hi all! Thank you for looking at this thread. I'm having an issue where an EA keeps removing itself from a chart on tick. It occurs when I add a function to my main EA script. The function is down below. Any help would be greatly appreciated, this is
Bartlomiej Winter
Added topic EA disappears off chart when this library function is applied
Hi all! Thank you for looking at this thread. I'm writing some basic indicators in MQL5, and I am currently writing one for a simple average true range with no smoothing. Compiling the code leads to no errors or warnings. For some reason when I apply
Bartlomiej Winter
Added topic Closing trades using the Expert iD magic number
Hello! Thank you for having a look at this thread! I'm looking to use multiple EAs on the same symbol and the same timeframe but each EA has its own magic number. Could someone give me a short algorithm which will close an open position which was
Bartlomiej Winter
Added topic Using SetExpertMagicNumber using the CTrade class
Hello! Thank you for taking your time took look at this thread. I'm having an issue with the CTrade class SetExpertMagicNumber function . If I write something like trade.SetExpertMagicNumber(12345), how would I be able to print that result out so I'm
Bartlomiej Winter
Added topic Would you be interested in this?
Hi, I am an avid trader who started programming automated trading strategies 3 years ago. My background is in physics, in which I have a first-class Masters degree in and now I am currently a PhD student working as a physicist. I have used physical
Bartlomiej Winter
Added topic Error in my code "possible loss of data due to type conversion"
Hello, When compiling I have the error " possible loss of data due to type conversion" i suspect it is because of the variable type which the price is being stored in. Any help is greatly appreciated. Here's the code: (by the way I know it doesn't do
Bartlomiej Winter
Added topic Help with the MQL4 language
Hello, Currently I am writing an expert advisor but I am not sure how to code what I want. Essentially I want to measure the difference in the closing price of the latest candle and the opening price of the candle which is five candles back from the
Bartlomiej Winter
Added topic My EA only seems to place buy orders. I need a helping hand so it can place both buy and sell orders!
//--- input parameters extern double    Lots= 20 ; double MAX_RISK = 0.005 ; //The maximum to be risked of the account. int MAX_ORDERS = 3 ; int StopLoss; //Defining a stop loss. int MagicNumber = 99 ; int ticket; double Ma1,Ma2; void
Bartlomiej Winter
Added topic Why is this not producing any results on strategy tester?
Hello, This is the code which strategy tester won't print any results from. I don't know why. Any help would be very greatly appreciated. //--- input parameters extern double    Lots= 20 ; extern int
Bartlomiej Winter
Added topic Why won't my EA Close Orders?!?!?!
Hello, I am attempting to write an EA which opens a trade using moving averages. I can get my EA to open trades but I cannot get it to close live trades. What is wrong with my code??? Here it is:  extern double    Lots=20; extern int
Bartlomiej Winter
Added topic Moving Average EA Help
Hello, I have only been learning to code with MQL4 for a couple of months and I am looking to write an EA which opens a trade when MA cross and closes the trade when they cross again. I need a helping hand as the EA won't seem to close the trade
Bartlomiej Winter
Registered at MQL5.community