whoowl
whoowl
Friends

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

whoowl
Added topic What was my worst loss in a day?
I want to put a cap on losses before I turn off the EA to avoid further damage on a clear bad day. Do you think this is the correct way to do it? starting up: double TodaysEquity = AccountEquity(); double InitialEquity = AccountEquity(); double
whoowl
Added topic Strategy Tester refuses to run EA
I ran an EA and had an interesting result. Not very good, but interesting curves. I have to study it more. Then I ran a second EA, two timeframes. It was worse. Then I ran third EA, two timeframes. Also worse. So I thought about something I should
whoowl
Added topic How do I install MT4?
I already have it, but I need it in a new machine. I went to this page and downloaded the file that is clearly identified as MetaTrader 4 for Desktop, Windows. I received a file named mt4setup.exe. I already had mt5setup.exe stored in the first
whoowl
Added topic What do TranslateKey and CryptEncode do?
The manual says about TranslateKey: "Returns a Unicode character by a virtual key code considering the current input language and the status of control keys." Does that mean I can print Unicode characters in my labels and buttons, for example
whoowl
Added topic My function is dividing by zero
This isn't really my function. I copied it from somewhere (possibly this forum) quite some time ago, and now I am struggling to understand how to fix it. What it does: I determine an amount in currency and I choose between StopLoss or TakeProfit. The
whoowl
Added topic Is there something wrong with my code? if OrderCloseTime() != 0
I have been using this piece of code for a long time: if ( OrderSelect (orderTicket, SELECT_BY_TICKET) == true ) {    if (OrderCloseTime() != 0 )   {         isTradeRunning = false ;
whoowl
Added topic CopyBufferMA1 error =4807
This EA ran for almost two full days without any problem at all. Then, suddenly, without absolutely no change to the code, it doesn't work anymore. I have googled the error and I have no idea what it means. "Wrong indicator handle" is 100%
whoowl
Added topic Strange problem with input values and Strategy Tester optimization
I have this code: input double X = 6 ; input double Y = 10 ; plus some other code that uses the X and Y variables. I ran it through Strategy Tester and the result was not good. So I ran it again but this time with optimization and a bunch of values
whoowl
Added topic Does any math explain this?
I made an EA. Fast moving average crosses slow moving average upwards. Open a buy order. Fast moving average crosses slow moving average downwards. Open a sell order. SL and TP are always the same distance. Whichever the price hits first wins. The EA
whoowl
Added topic Array out of range
I googled and read some pages but I am still struggling with this. Will someone please help me? double getMovAv( ENUM_TIMEFRAMES timeframe, int maperiod, int mashift, int barshift) {    double myMovingAverageArray[];    int
whoowl
Added topic It seems MT5 is too slow to be reliable
MT5 seems to be a lot slower than MT4. I have labels that give me information in real time, for example PositionsTotal(), and it takes about two or three seconds to update after an order is placed. At first I thought it was just a slow GUI problem
whoowl
Added topic How do I close a position without CTrade?
I am trying to learn how to close a position. I found at least a dozen examples, more like two dozen, but it seems that ALL of them either require CTrade or present a solution that involves iterating over many open orders and selecting by position
whoowl
Added topic OrdersTotal() not working
I have this code in a loop: if ( OrdersTotal () > 0 )   {    monitorTrade(); } if ( OrdersTotal () == 0 )  {    orderOpen( "buy" );    return ; } I expected the EA to never open more than one
whoowl
Added topic My OrderSend function doesn't work
I am migrating from MQL4 to 5 and having a bump ride. This order placement function I wrote isn't working. I get this error message: '61059710': failed market buy 0.01 BTCUSD [Unsupported filling mode] Can someone please help me get it right? void
whoowl
Added topic Why is Strategy Tester so unreliable?
I had abandoned Strategy Tester for more than a year. Then I decided to try it again. Terrible experience just like in the old times. I write an EA that is an absolute winner in the backtests, then I put it to work on a live account (demo, of course)
whoowl
Added topic Can I comment and uncomment code from the keyboard?
In MetaEditor, "Edit" menu, "Advanced" option, there are 'Comment' and 'Uncomment' options. They work for me, but only from that menu. Can I use those tools from the keyboard? Next to the 'Comment' option, there is an indication of key combination
whoowl
Added topic How do I protect a variable from changing?
int OnInit ()   {    TF = Period ();    drawLabel();    return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason)  {    if ( ObjectFind ( "LabelDebug" ) != - 1
whoowl
Added topic MT4 forcing doubles into int
256 divided by 5 is 51.2, but MT4 gives me 51.00000000. int OnInit ()   {    Average = ( 256 / 5 );    drawLabel();    return ( INIT_SUCCEEDED ); } double Average; void drawLabel()  {   
whoowl
Added topic How do I set the chart background to a custom color?
It's easy with preset colors: ChartBkg = ChartSetInteger ( 0 , CHART_COLOR_BACKGROUND , White); ChartBkg = ChartSetInteger ( 0 , CHART_COLOR_BACKGROUND , Lavender); What about custom colors? Manual selection returns something like 181,230,210. But
whoowl
Added topic How do I draw a MA line above an existing MA line?
I have a MA line, say 28 exp close, and I want to have some kind of "shadow" line that mimicks the exact same trajectory, but a certain number of PIPs or points or rather price figure above or below the main MA line. I've been thinking about it and I