macpee
macpee
macpee
Added topic What is a current chart?
Which one of these is a current hart 1. The chart upon which the EA is attached. 2. The chart that is last clicked on the window. A little confused here. Any help
macpee
Added topic IsNewCandle not branching to true
Hi guys and complements. The following is a code is designed to show true if a new candle is seen for the given time frame (Not necessarily the current timeframe ) . However it does not branch to the 'true' section, only to all the 'false' sections
macpee
Added topic Error 138
My EA tried to OrderSend(...) a direct order (OP_BUY) and encountered Error 138: Reference cannot be initialized. Please what is the meaning of the error and how can I get rid of it? Thanks
macpee
Added topic Possible loss of data due to type conversion
Hi guys, I don't seem to be comfortable with the warning " Possible loss of data due to type conversion". See the code below: int PriceLeftShift = GlobalVariableGet ( StringConcatenate ( "LineVert " , Symbol (), " " , ChartPeriod ())); I understand
macpee
Added topic Why am I getting the warning "implicit conversion from 'string' to 'number"?
//Trying to get the shift value of a vertical line whose name is stored in the variable VertName.    long PriceDateLong = ObjectGetInteger ( 0 ,VertName, OBJPROP_TIME , 0 );    long PriceDateString = IntegerToString
macpee
Added topic How to get the date or shift coordinate of OBJ_VLINE
Hi guys, I have a VLINE ( vertical line ) that I want to obtain the date or shift value. I tried the following functions but to no avail. Please I need your support. Thanks datetime VLineDate = ObjectGet( "My VLine" ,OBJPROP_TIME1); datetime
macpee
Added topic How can I tell my EA that a new candle has arrived?
How can I program my EA to do something when a new candle has appeared? What is the command for a new candle appearing? Anything like: OnNewBar() I need to do something when a new candle arrives, e.g. to reinitialize the content of a variable
macpee
Added topic What is the chart id of the current chart?
How can I call the chart id of the current chart
macpee
Added topic How to check the current timeframe
What is a good example code of how to use ENUM_TIMEFRAME, PERIOD_CURRENT, Period() and _Period? Can I check the timeframe of the current chat by writing the following? if (Period() == ENUM_TIMEFRAME)    Bla bla bla or if (ENUM_TIMEFRAME ==
macpee
Added topic Little help needed. Copy VLine has different date from paste VLine
This program actually copies and pasts vertical lines as intended but original date is different from paste date by up to 10 seconds. Why is that? Thanks in advance. int OnInit ()   {    ChartSetInteger ( 0
macpee
Added topic My VLine Code is ready but it is not working yet
Hello! Below is my lines of code to auto create VLine on other visible charts when I manually create it on the current chart. I don't know where I have made a mistake. Please I need your help. Thanks in advance. int OnInit ()   {
macpee
Added topic How to obtain the properties of an object
How can I get the properties of an object, say the date value of a vertical line which I have placed manually
macpee
Added topic How to move the Vertical line simultaneously across all open chart
How can I create and move a vertical line on all open charts simultaneously and corresponding to the same time? In other words, How can I program the vertical line to be created and moved across all visible charts by creating and moving it only on
macpee
Added topic Large or small Slippage, which is better?
I was wondering the use of slippage and what value to specify? MT4 documentation uses 3 for slippage. Can slippage minimize the annoying requote when trying to place an order? What value of slippage can minimize 'requote'? Can I use slippage as large
macpee
Added topic Can I host my EA on a virtual machine
All I have noticed so far is that virtual hosting is all about getting signal, auto trading, hosting indicators and copying trades. But I want to host my own EA on a remove server so that I can trade using my EA on a hand held device. My EA has
macpee
Added topic Help on how to insert/delete a record in a file
I need to know how to insert a record to file, or to delete a record for that matter. More like database management. I used to think that FileSeek(Handle, 0, SEEK_CUR ) would point to a position where a record would be written. But it does not point
macpee
Added topic HELP COPYING FILE TO ANOTHER FILE
Hi, I want to copy from "AdjustFile.txt" to "TransferAdjustFile.txt" one record at a time The content of the "AdjustFile.txt" is as follows: But I am getting the following content for "TransferAdjustFile.txt" I used the following codes
macpee
Added topic Which ChartEvent does this...?
What is the ChartEvent that recognizes that an order has been placed or modified manually?  Thanks in advance. 
macpee
Added topic How EA understands a modified order?
Hi everyone.  How can I make my EA to understand that an order has neen modified manually?   Thanks in advance. 
macpee
Added topic How to SHADOW orders
Please how can one shadow orders. It was recommended to me as part of the solutions to a question I had asked.