Friends

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

sd59
Added topic Horizontal trend lines & zoom
The only way I know to draw a short horizontal line is using the following: ObjectCreate(string name,OBJ_TREND,0,Time1,price1,time2,price1); ObjectSet(string name,OBJPROP_COLOR,Orange); ObjectSet(string name,OBJPROP_WIDTH,1); ObjectSet(string
sd59
Added topic WindowPriceMax()/WindowPriceMin() problem
Guys, Very simply drawing a rectangle full height of chart. WindowPriceMax()/WindowPriceMin() do not change values when timeframe is changed. int init()   {    ObjectCreate ( "rect" , OBJ_RECTANGLE , 0 ,Time[ 30 ],WindowPriceMax(
sd59
Added topic Alerts, Timeframes and Deinit()
Hi All, I have tried different ways of writing 'Alert' indicators that do NOT keep alerting when you change timeframes - this is very annoying and occurs primarily because any flags that are set to prevent more than one alert are reset by
sd59
Added topic Vertical Line Problem
Guys, what unbelievably stupid thing haven't i done here? I just want to draw a vertical line between 2 points at a particular bar position (bar 5 in this example). It draws a line but the full height of the chart and at position 1!!! please can
sd59
Added topic Time disappearance!
Guys, I use the routine below to write a log file of data with a timestamp - worked perfectly for a few hours..then next day all parameters were written to file EXCEPT the timestamp which was ZERO! WTF!! void WriteLog() { int handle = FileOpen (
sd59
Added topic Select_by_ticket confusion!
I have been using the following code to select an open order in the client terminal: for ( int i= 0 ;i< OrdersTotal ();i++) { if ( OrderSelect (ticket,SELECT_BY_TICKET)==true)    { I have an EA running on several currency pairs but only
sd59
Added topic Understanding GlobalVariables()
Hi All, I am not an advanced MQL4 programmer and I am struggling to understand the proper use of the GlobalVariables() function. Very simply I have an EA running on four currency pairs and there are 3 key variables (Profit, Stoploss, Ticket) that I
sd59
Added topic Objprop_Angle??
Hi, Has anybody got ObjectGet("objectname", Objprop_Angle) to work? Draw a simple trend line between 2 points and try to get the angle? I don't think this function works but please prove me wrong! thanks
sd59
Added topic Accessing data from other timeframes problem
Hi Experts, I have written a fairly simple indicator which, when included on a chart will get data from 2 custom indicators on 3 different timeframes for the particular currency pair that is on. I then display this in a small table as shown: The code
sd59
Added topic Continue script between timeframes
Hi All, I am running a script in contnuous mode using a 'while' loop. int start() {    //initialise for other objects already existing   objectstotal = ObjectsTotal ();       while ( IsStopped ()==False)
sd59
Added topic No waiting for next 'tick'?
Hi All, Does anybody know how to code an EA, custom indicator etc; to be able to run a sequence without having to wait for the next 'tick' in start()? In its' simplest form let's say a horizontal line was added to a chart - grab the line and move it
sd59
Added topic chart properties control by code
Hi, Does anybody know how to control chart properties in code?For example what would be the code to delete 'period separators' from a chart? thanks
sd59
Added topic How to get indicator colour?
Hi All Experts, Does anybody know the code to get the colour of an existing custom indicator on a chart? thanks
sd59
Added topic Fib Levels price value programmatically
Hi All, Does anybody know how to get Fib level price values programmatically assuming you know the Fib name ( object name )? thanks
sd59
Added topic Fib creation
Guys, I'm trying to create a fib with 16 levels on a chart. The default 10 levels works fine but using the code below it doesn't draw all 16 levels. i can set the level descriptions no problem but the fact is it doesn'y draw the lines in the first
sd59
Added topic Strategy Tester start time
Hi All, Is there a way to get the tester to start at a specific time in VISUAL MODE? For example I want the tester to start running from 9th November at 14:00p.m - is there a way to do this? thanks
sd59
Added topic ObjectProp_Angle
double ang = ObjectGet( "HighLine" , OBJPROP_ANGLE );    Print (ang); Hi All, I've drawn a line on a chart called "Highline" - does anybody know the point of the OBJPROP_ANGLE used in the context above? it does not return the line
sd59
Added topic Arrays for chart objects!
Hi All, Can anybody fathom this one? I want to assign a particular variable obtained from a chart to an array diff[]. In the code below symb[] has already been assigned at a global level. I then want to place the calculated value i.e diffx on to some
sd59
Added topic How to handle broker "requotes"
Hi Guys, This is my attempt at trying to handle broker requotes . Recently my EA took 2 buy trades almost at the same time. I'm guessing that while the server was thinking about accepting the first request the 2nd loop kicked in and made a 2nd
sd59
Added topic "Old Tick" syndrome!!
Hi All, I'm running an EA reasonably successfully at the moment on Forex. What is incredibly frustrating is the fact that sometimes it doesn't take obvious trades and i can not find any reason for it except looking back in the 'journal' log it flags