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 alarm going off repeatedly
I have coded this so that once the alarm fires, it sets the Bars count and shouldnèt trigger again for 5mins. However, when the lines cross, the a;larm keeps triggering every few ticks as the values cross and uncross. How can I stop this"
J Webster
Added topic EMA of a buffer
I'm trying to get the exp moving average of the TSI buffer in this code and then draw the EMA on the indicator. However, it does not draw the value correctly as the red and yellow lines are very far apart, they should be crossing over each other. Any
J Webster
Added topic all symbols appear green
In the following code, all the symbols appear on the chart as green/buy. Is there any reason why it doesn't check the 2nd part of the else if statement? if (             (Bid >
J Webster
Added topic paint candles in indicator instead of line?
Is there a way to paint candles in an indicator instead of just straight lines so we could get high, low, open, closes of the indicator value
J Webster
Added topic standard deviation on buffer? why MAs?
This function https://docs.mql4.com/indicators/iStdDevOnArray iStdDevOnArray has a whole load of functions to do with moving averages? Isn;t a standard deviation just a simple calculation of the data in the array like in Excel
J Webster
Added topic work out correlation and 1 standard deviation
What is the best way to work out the correlation between 2 different instrument in MQL4? Should I load the data into an array and then draw a chart from that? In Excel, it is easy to do this with some functions but I'm not sure if MQL4 has them I
J Webster
Added topic code works on xxxJPY pairs but not others
I can't think why this code would work on JPY pairs but not on the 5 decimal place pairs. Any ideas? The indicator "testwindow" works on both so why doesn't iCustom pick up the value
J Webster
Added topic True STrength Index
I have this for the True Strength index: Parameters Raw (Raw = 25 ) Smooth (Smooth = 13 ) Indicator programming NetChg = MOMENTUM [ 1 ] Value1 = EXPONENTIALAVERAGE [Smooth]( EXPONENTIALAVERAGE [Raw](NetChg)) Value2 = EXPONENTIALAVERAGE [Smooth](
J Webster
Added topic weekly box
I have a problem with the times on this chart. It works with the one hour chart highlighting a box for the daily range but on the Daily chart, I am trying to highlight a box for the last week and it doesn't highlight the correct number of days
J Webster
Added topic rectangle for each day
I have sme code that draws a rectangle for the current day. How can I loop the code so that it draws a rectangle for every day on the chart? lprice is calculated by doing this: double lprice=iHigh(Symbol(),period_no,1)-iATR(Symbol(),period_no,14,0);
J Webster
Added topic rectangle from midnight
I would like to start this rectangle from midnight, how can I specify the time? ObjectCreate("box", OBJ_RECTANGLE ,0,Time[24],hprice,Time[0],lprice);
J Webster
Added topic print price on l;abel everytime an MA cross occurs.
I have an MA cross indicator with buffers to show MA crosses. How can I print a label with the price it crossed at just above the crossing area? Is it a case of adding a 3rd buffer? The current buffers use symbols so I am not show how to add a label
J Webster
Added topic code not working for 1 symbol...
This code works for FX symbols but not index symbols like the UK100. Any ideas what is wrong? int start()   {    if ( Period () == PERIOD_H1 ) {period_no = 1440 ;}    double hprice= iLow ( Symbol (),period_no, 0 )+ iATR
J Webster
Added topic HA paint bars not showing current candle
I need an alert for HA colour change but it should not be checking the current candle so I changed the code and the alert works but it is not paintiung the current HA candle. Any ideas on what to change? Maybe I need an indicator for the candles and
J Webster
Added topic alert on new candle not working
The alert is supposed to wait for the candle to close and then compare the candle to the previous one to see if the colour has changed. However, it is alerting on the current candle open. ANy ideas what to change? while (pos >= 0 )
J Webster
Added topic HA ALert at candle close
What is the best way to change this code so that the alert only happens at the end of the candle once we know for sure whether it is going to be green or a red candle? //+------------------------------------------------------------------+
J Webster
Added topic Calculate mean instead of average
Is there a way to work out the most common max reading pf the indicator? Alternatively, how can I get a mving average top show on this indicator window? ...or last option a bollinger band around the indicator
J Webster
Added topic arrows only show 1 direction
The arrows here are only shown in one direction. Any ideas where the error is? //+------------------------------------------------------------------+
J Webster
Added topic change background color
Is there a way to change the chart background color depending on a variable in MQL4
J Webster
Added topic rectangle percentage fill
I am trying to create a rectangle as a sort of meter that displays how much of the daily range the pair has moved. For example, if the pair has moved 75 pips today out of its daily 14 ATR of 100, then the rectangle would be 75% coloured in. Any ideas