J Webster
J Webster
Friends

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

J Webster
Added topic Point == 0 not working
I have some indexes like the DAX and FTSE on my platform. I am trying the following code, which works for other pairs where Point == 0.01, 0.00001 etc but not for the indexes: if ( Point == 0.0 ){ ObjectSet( "signal" +x+ 3 , OBJPROP_XDISTANCE
J Webster
Added topic start of day rectangle
I am trying to display a rectangle from the start of the day 0000 to the current candle. How can I get start of the day into the Time[] section? ObjectCreate("Rectangle", OBJ_RECTANGLE ,0,Time[24],RectangleLow,Time[0],RectangleHigh);
J Webster
Added topic No historic data? Strategy tester won't run date period
I am trying to run a strategy in the tester but it will only run the test for 1 month at a time. For exampl, when I select 01 Jan to 01 July, it only runs the test for 01 Jan t0 28 Jan. Any ideas on a solution? I downloaded the history for the pair
J Webster
Added topic 1.5 SD on bollinger bands
Bollinger Bands don't seem to allow 1.5 standard deviations in the external variable setting. If I use 1.5 in the iBands it doesn't work. Is this just a setting in the Bollinger Band code because it is set to an integer maybe? Do I need to create a
J Webster
Added topic alert once
Does this code only check the Bid > Bands at the first tick of each bar? I want the alert to sound once but for the code to be checked on every tick during the bar:          // See if this bar is new
J Webster
Added topic alert once not working
I tried adding this code to stop the alerts from sounding continuiously. They should only sound once for each candle. If a new candle starts, then it should be reset and allowed to sound again. Any ideas on what is wrong with the code? // Store the
J Webster
Added topic Linux, cannot set global variables
I have MQL4 running in Linux but I seem unable to set the global variables. I can open the screen by pressing F3 but when I double click on a value, it does nothing and will not edit the variable. ANy other ways to do this
J Webster
Added topic tick value - multiply?
I have this to calculate my lot size. Am I supposed to be multiplying it instead? double Lots = NormalizeDouble((AccountBalance()*0.00001)/(MarketInfo(Symbol(), MODE_TICKVALUE)), 2);
J Webster
Added topic MT on Linux problem with fonts?
I have instralled fonrts into windows/fonts and also windows/media/fonts on my wine section on Linux. MT4 starts up and all works properly but the top menu isn;t displayed - any idea son how to fix that
J Webster
Added topic MT4 on Linux - no menu display
I have instralled fonrts into windows/fonts and also windows/media/fonts on my wine section on Linux. MT4 starts up and all works properly but the top menu isn;t displayed - any idea son how to fix that
J Webster
Added topic Average of price exceeding MAs
I have some code to work out the average amount of pips that price exceeds a 2 period LWMA on my chart. Someone advised me it had to be worked out using the moving average but shouldn't it be using all the candles on the chart? So, if price exceeds
J Webster
Added topic alarms don't turn off
I think I've set the flags properly but the alarms keep sounding, shouldn't they turn off after 1 alert? //+------------------------------------------------------------------+
J Webster
Added topic calculate pip size for currency?
Is there a way for MQL4 to adjust lot sizes based on the currency pair . For example I use AccoutnBalance to calculate the trade size but this should be adjusted for each pair. If my account is in GBP, then a trade size of 1 on GBPUSD is actually
J Webster
Added topic new order each hour
I have some code to create some orders once per hour. Do I need to run it in a for lopp for each section ie 0 to 24 to do this?              //create new orders, open at xx:00
J Webster
Added topic run code once
I would like to run this code once on Sunday at the opening of the broker. However, I have this EA running on 12 different pairs. Any ideas on how to run through the code just once for each pair? I thought about putting in the Hour and Minutes and
J Webster
Added topic HA averaging
Is there a way to draw a linear weighted moving average of the highs and lows of a Heiken Ashi candle? It often seems that the HA candles reach a higher/lower price than the actual candle - is this normal? Also, is there a way to get the readings of
J Webster
Added topic zero divide error
I have a zero divide coming up in my experts journal. Any obvious errors in the code below? //+------------------------------------------------------------------+
J Webster
Added topic av. movement of pips beyond a band?
I have a band on my chart, which is the 2 LWMA high and 2 LWMA low. I can work out the distance between the 2 easily enough but what I want to work out is the average amount of pips that price exceeds the bands over say the last 20 periods. Any ideas
J Webster
Added topic price near 200MA
I am trying to design an EA to place a buy when price has been above the 200MA for at least 5 bars and price comes down to the moving average. it should do the opposite for a sell, ie price must have been below the 200moving average for at least 5
J Webster
Added topic pattern recognition indicators?
Are there any decent pattern recognition indicators for MQL4