GrumpyDuckMan
GrumpyDuckMan
GrumpyDuckMan
Added topic Account Management
Hello everyone, I'd like to ask you all for some hints and tips on creating a professional style code to help maintain my trading account. I don't know there to start, but so fair this is all I have. void ACCOUNT_MANAGEMENT()   {
GrumpyDuckMan
Added topic Two problems with EA, IsConnected() - (SOLVED) and NormalizeDouble
Hello everyone, I have internet connection problems in my area, so I am interested in IsConnected(). I was trying to test this today, but after disconnecting my WiFi and cables from internet and restarting my computer. MetaTrader was
GrumpyDuckMan
Added topic (Solved) OrderClose problem
Hello everyone, I don't really understand order 1 and order 3 error messages.    void CloseTicket()   { // 0= order 61204533 /NZDJPY     / Market is closed // 1= order 61204413 /oil-oct17  /
GrumpyDuckMan
Added topic Create Button function
Hello everyone, Where I have "//---" is this a case of the button doesn't exist or, a possible function call if the button is pressed or, released?     if (!Create( 0 , "FIND" , 0 , 20 , 80 , 90 ,HEIGHT, CORNER_LEFT_UPPER , "FIND"
GrumpyDuckMan
Added topic No error returned, but the result is unknown
Hello everyone, I need some help to understand what this runtime error means. I have been trying to work it out, but I am making myself very confused about where the problem starts.    CurrAsk= MarketInfo (Curr, MODE_ASK );
GrumpyDuckMan
Added topic EA premission to trade, or Indicator only
Hello everyone, is it possible to make an EA that only allows trading posable if the correct account number is selected. Otherwise only attached indicators are applied to the EA and any trading code is dismissed
GrumpyDuckMan
Added topic Account Information
Hello everyone, I have started to write some account management code, but I don't understand what exactly AccountStopoutLevel means, at the moment ASOL = 20.0. The information in the reference manual says " The value of the Stop Out level."  Can
GrumpyDuckMan
Added topic Link two EA's together
Hello everyone, I have been trying to call a second EA from my main EA. I have tried to use #include <KeyBoard.mq4> which causes an error "Can't Open D:\xxx\xxx\xxx". I would like know the correct way to make this possible
GrumpyDuckMan
Added topic illegal else without matching if
Hello everybody, How come I am getting this error? void ACCOUNTS()   {    int Value= 0 ,        Orders= 0 ;    double TicketValue[]
GrumpyDuckMan
Added topic Ticket numbers
Hello everyone, I would like to know how ticket numbers created. Are they randomly assigned to orders
GrumpyDuckMan
Added topic Not sure if code is safe to run
void Test_Run() // Program   {    double CurrBid= SymbolInfoDouble ( "GOLD" , SYMBOL_BID );    double CurrAsk= SymbolInfoDouble ( "GOLD" , SYMBOL_ASK );    if (CurrAsk==BuyAt) buy();    if
GrumpyDuckMan
Added topic Sorting CSV to Array.
void ReadFile_Array()   {    FileHandle= FileOpen (subfolder+ "\\TestCSV.csv" , FILE_READ | FILE_WRITE | FILE_CSV );    if (FileHandle!= INVALID_HANDLE )      {       
GrumpyDuckMan
Added topic How much RAM is needed to run / debug code?
Hello everyone, I have been slowly making additions to code my EA. I only have 1 GB (Type-DDR1) on my laptop. The problem I am experiencing is that MetaTrader4/ MetaQuotes4 crash. I think I know the answer, but is there any way to use external ram
GrumpyDuckMan
Added topic Program will not close charts
Hello everyone, I must be missing some steps in trying shutdown some charts currently opened. The code below works with MQL4. How do I close charts by name or chart ID? #property copyright " " #property link       
GrumpyDuckMan
Added topic Don't show buttons
Hello everyone, How do I program button "HIDE" to toggle not visible/ visible any other buttons. I would like to have the ability to view chart without buttons showing up on chart, expect button "HIDE". 
GrumpyDuckMan
Added topic Problems with multiply enum's
Hello everyone, How should I program this?   I can't see a way to get string "sym" to receive more than one enum value. Example: METAL selection is only Gold, or Silver AUD selection  is only AUD vs other pairing EUR
GrumpyDuckMan
Added topic Turn ON/OFF Grid
Hello all, I would like to understand why this code doesn't work. Some expert help please.  Code:      bool ShowGrid= ChartGetInteger (chart_id, CHART_SHOW_GRID , 1 ,value);
GrumpyDuckMan
Added topic Change Time frame
Hello all, I have been trying to change a charts timeframe in my EA, but I haven't been able to get it to work.    string we = "GOLD" ;    ObjectSetInteger ( 0 ,we, OBJPROP_TIMEFRAMES , OBJ_PERIOD_M15 ); The code complied with no
GrumpyDuckMan
Added topic Trying to understand array use
Hello all, I am attempting to use arrays to get data. void TestReadCsvFile() // Arrays = OpenPrice,ClosePrice,PriceHigh,PriceLow,PriceHigh,TotalVolume {    FileHandle= FileOpen (subfolder+ "\\GOLD.csv" , FILE_READ | FILE_WRITE | FILE_CSV );
GrumpyDuckMan
Added topic Problem with write to filename.txt
Hello all, I need some coding help please. I am trying to write "Hello World" to text file "Test.txt". After running the code I check the file and nothing is there. Do I need a loop in here to write to the file? void WriteToFile() {