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 text keeps moving in label?????
I am placing text in a label but as soon as the text length expands, instead of the text moving to the right, it moves off to the left like it is right justified or something. Any ideas?    ObjectCreate ( "alerttext" , OBJ_LABEL , 0 , 0 , 0
J Webster
Added topic alerts repeated on chart refreshes
I am having problems with alerts being repeated every time I change the chart period or reload metatrader. I though of using globalvariables but can you store datetimes in global variables? if ( iIchimoku ( Symbol ( ) , PERIOD_H4 , 9 , 26 , 52
J Webster
Added topic incorrect chinou span alert
I have some code which creates a little symbol indicator with buy/sell values. In this example the chinkou green line is above the price so it should be displaying an up arrow but it does not. Any ideas on what I have set incorrectly? The chinkou is
J Webster
Added topic 1 indicator monitoring multiple periods
I would like to have an indicator that I can leave open on the daily chart but it monitors all timeframes below it. How can I get the close of a timeframe with set period? if ( Period ( ) = = PERIOD_D1 | | Period ( ) = = PERIOD_H4 | | Period ( ) = =
J Webster
Added topic trying to set rectangles
I'm trying to set rectangles for the chart background but seem to be getting the same colour no matter what, which is orange????? Seems like it's laying the colours over each other regardless of the timeframe ObjectCreate ( "D1_Rectangle"
J Webster
Added topic ichimoku right hand chart
Is there a way to get MT4 to show 26 periods to the right of the chart like the indicator is supposed to
J Webster
Added topic Percentage of candle outside bollinger
Is there a way we could calculate the percentage of a candle outside a bollinger band ? For example, an upper bollinger band is at 1.5000 and a candle moves outside of this value to a high of 1.5020 and the low was 1.4990. Do we just calculate the
J Webster
Added topic Tenkan sen value
I am trying to list the value of the tenkan sen but it keeps displaying 0.00000 Any ideas? //---- Tenkan Sen    i = Bars - Tenkan ;    if ( counted_bars > Tenkan ) i = Bars - counted_bars - 1 ;    while ( i > = 0 )
J Webster
Added topic ichimoku alerts
Is this the right way t do ichimoku alerts in MQL4? The alerts are at the bottom. I haven't figure dout a way of swapping over the senkou span/kumo cloud alerts yet apart from the alert every time the Bid price crosses. Complete code in the attached
J Webster
Added topic modified osma to try and get difference between 2 moving averages
I'm trying to get a histogram to show the differences bbetween 2 moving averages . I modified the OsMa for this but am not sure i have the buffers right for the drawing? It seems to draw it correctly but somehow the code doesn't seem correct
J Webster
Added topic crossover not picking up the previous value
The alert is sounding every hour with this indicator, it should be picking up the previous value and only alerting if the lines have crossed back over. ANy ideas on what is wrong? //+------------------------------------------------------------------+
J Webster
Added topic volume limit unmatched data errors
I am getting a lot of errors in the report and no trades entered 2009.09.04 12:46:25 TestGenerator: unmatched data error (volume limit 1528 at 2009.08.17 01:00 exceeded) Any ideas what's wrong? #property copyright "Copyright © 2009, MetaQuotes
J Webster
Added topic extra pips on SELL orders
In my EA, I buy at the ASk, sell at the bid. On all SELL orders, I set a target profit and a stop loss both with 3 pips added due to the spread. However, when I run this in the strategy tester , BUY trades show profits of 400, losses of 400, yet SELL
J Webster
Added topic Check if most recent order hit stop loss or take profit?
Is there a way to check when an order closes whether it hit it's stop loss or take profit ? How do youm know when it has closed to trigger some code
J Webster
Added topic order modify error 1?
I am getting order modify error 1 in this code - any ideas why? MovetoBreakEven is set to 300 (30pips):        if ( MovetoBreakEven > 0 )              {
J Webster
Added topic JPY pairs comment
The ATR doesn't seem to display any text on the JPY pairs. Any ideas why not? double distanceAway = MathAbs ( currPANearest - Bid ) ;    double ATR = iATR ( NULL , PERIOD_H1 , 14 , 0 ) ;    Comment ( "currPANearest=" + DoubleToStr
J Webster
Added topic inlcude 0.25 rounding
I need to get the following code to also look at 0.25, 0.5, and 0.75 (ie 2 decimal places) in the range but not sure how to check that as well as checking the 1 st decimal place only. For example, it should alert me at all main 1.x numbers (1.1, 1.2
J Webster
Added topic JPY pairs rounding
Any ideas how to round the JPY pairs here? If price is at 85, I'm trying to find how far it is away from a number in the array, eg 80 and 90, it should round up . It works for the 5 decimal place pairs. I am trying to round to tens so 80, 90, 100
J Webster
Added topic Ignore entering more trades
I have an EA that I want to start when price nears a specified level in an array: double stops_array[11] = {1.0, 1.1, 1.2, 1.25, 1.3, 1.4, 1.5, 1.6, 1.75, 1.8, 1.9, 2.0}; So, I need to check the current Bid or Ask and round it to see which level it
J Webster
Added topic Working out if there is a trend
Is there a way to work out if say the last 10 hourly candles are in a trend up or down? What I want to do is find a trend when price nears major points like 1.1, 1.5, 1.6, etc. and then add some orders if the price action has been in an uptrend or