Friends

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

sd59
Added topic ToolTip for Rectangle Label
I have a row of dynamic rectangle labels drawn on a chart as above - they change size with certain data that is generated by price which works fine. I would like to display their value by hovering the mouse above the label so I am using the
sd59
Added topic Rates function problem
Hi All, I am baffled by the issue below. Very simple code asking for the high & low of the first bar on a chart of specified timeframe. extern ENUM_TIMEFRAMES tf = PERIOD_D1
sd59
Added topic MQL4 Forum editor problem
This is driving me ************* CRAZY!! If I add code using the SRC button above and click 'INSERT' the cursor remains in the 'window area' generated for the code. If I press ENTER it simply adds more empty lines to the bottom of the code!! I
sd59
Added topic Drawing Opaque objects
Hi all, I need a sanity check on drawing objects on charts. Below is a snapshot of what a rectangle looks like on a chart - the red candles are hidden because they are the same colour as the rectangle fill. Changing chart foreground/background
sd59
Registered at MQL5.community
sd59
Added topic ChartTimePriceToXY() vs. Pixels
I have found the function ChartTimePriceToXY() to be quite useful but exploring in more detail there may be some discrepancies. Pick a candle using Time[] then use the code below to show the position of the candle as a percentage down the chart
sd59
Added topic When OrderSymbol() doesn't equal Symbol()
Just messing around with code to get it right before implementing - this is to find the first trade of a particular type in the history pool. Code below + printed output. Does anybody know why it seems to think that GBPUSD is the same as EURUSD? void
sd59
Added topic Scripts and chart change
If I run the script below and change charts during it I get the message shown - does anybody know how to get the script to "ignore" a chart change command and just continue? thanks void OnStart ()   {      while (
sd59
Added topic Objects creation problem
Hi All, i am creating a table on a chart that uses a "Wingdings" arrow. The simple code below produces an arrow in the label named "arrow" - I want to use OBJ_LABEL because of x,y coords and not time/price. ObjectCreate ( "arrow" , OBJ_LABEL , 0 , 0
sd59
Added topic Import or Include?
I have a custom indicator which I will be using in an EA to establish trade levels etc; I also want to be able to draw the indicator on the chart using the EA and without having to load it manually all the time. can this be easily done using either
sd59
Added topic Drawing Short Horizontal Lines
 am trying to draw short horizontal lines that form part of a 'cross' on charts using the OBJ_TREND function. void DrawLines( double price, int tf, color col) { datetime time_zero = iTime( NULL
sd59
Added topic Time Confused!!
Please can someone show me how to calculate the number of seconds between 2 time points. i.e the difference in seconds between Bar[0] and Bar[10]? The  datetime  type is intended for storing the date and time as the number of seconds
sd59
Added topic Uninitialised variable
Please can someone explain why I get the following warning from this code? (I know it's only a warning but why?) int CheckTrades() { int num_orders; for ( int i= 0 ;i< OrdersTotal ();i++) {    if ( OrderSelect (i
sd59
Added topic Writing to new columns in CSV format
this code produces the file shown: int start()   {    int handle = FileOpen ( Symbol ()+ "_logfile.csv" , FILE_CSV | FILE_READ | FILE_WRITE , ',' ); if (handle> 0 )   {    //write file header   
sd59
Added topic new Compiler
I have recently tried to modify an existing MQ4 indicator and with the new (joint MQL4/MQL5) compiler have masses of errors produced from a program that has worked perfectly well when compiled with the old MQL4 compiler. Below is an example: #define
sd59
Added topic Printing 2D arrays
I have a 2D array which I print to check on values: double array [][ 2 ]; ArrayResize (array,count); for (i= 0 ;i<count;i++)    for (j= 0 ;j< 2 ;j++)    Print (array[i,j]); the output looks like this: Can anybody please let
sd59
Added topic Filling a 2D Array
I am trying to generate a 2D array of high, low, open, close prices and I am totally lost as to how to fill the array. double    PriceArray[ 1000 ][ 4 ]; int init()   {    {    for ( int i= 1 ;i< 1000 ;i++)
sd59
Added topic Cycle in increments > 1
Is there a more elegant way of running a cycle loop in increments greater than one: i = 0 ; While(i < 100 ) { . ....code . i = i + 3 ; } Is there a format using the 'For' function ? thanks
sd59
Added topic ArrayBSearch....Baffling??
I have a 101 element array (shown):    ArrayResize (Array,count);    ArraySort (Array, WHOLE_ARRAY , 0 ,MODE_ASCEND);    int c = ArrayBsearch (Array, NormalizeDouble ( 1.6124 , 4 ), WHOLE_ARRAY , 0 ,MODE_ASCEND);
sd59
Added topic Simple "string" read problem!
I can't fathom this one.. string EUR[ 7 ] = { "EURUSD" , "EURGPB" , "EURAUD" , "EURNZD" , "EURCAD" , "EURCHF" , "EURJPY" }; int start()   {    for ( int j= 0 ;j< 7 ;j++)    Print (EUR[j], "  "