Naim El Hajj / Publications
Forum
Multi-Criteria Optimization
Hello, I've been messing around a bit with some ratios, trying to come up with a way to optimize multiple criteria. And here's the result: double OnTester () { // Calculate the lowest monthly return double min_monthly_return= 0 ; if ( ArraySize (returns)> 0 ) min_monthly_return =
error 130 on OrderSend
void SellStop( double price, int MagN, double LotSize, datetime expiration= 0 , double sl= 0 , double tp= 0 , string comment= NULL ) { double stoplevel=MarketInfo( _Symbol ,MODE_STOPLEVEL)* Point (); price=NormalizePrice( MathMin (price,Bid-stoplevel)); //===============================|| SELL
Indicator Values messed up
I did this small variation of the MACD indicator, where I only changed the moving average from Simple to Exponential, then added two buffers to make the indicator line change colors. However, my indicator is bugged. After running for some time the values start getting messed up, and I get multiple
Open Url in Browser
Is there any function in MQL4 which allows me to open a url in the browser
Skipping redundant optimisation parameters
Hello, I have a strategy in which I have a few filters I am using, namely OsMA, Stochastic , RSI and CCI. Apart from the parameters of each indicator, I have on and off inputs for each one of them: input bool use_osma= true ; input bool use_sto = true ; input bool use_rsi = true ; input bool use_cci
Modifying Order Error 1
Hello, I have this High/Low trailing function on which I'm getting an Error 1 while running. I know this error is not very significant but I can't understand why it's coming up. the strangest part is that I wrote if (prevsl<newsl && newsl<= Bid -stoplevel && prevsl!=newsl) which is now actually
FileRead from CSV help
Hello, I have an indicator that I use in an EA, which does its calculations using many symbols, which means that while optimizing the EA, the indicator gets different results than on live. So what I'm trying to do is export the live indicator buffer to a csv file, which I was able to do, and then