GrumpyDuckMan
GrumpyDuckMan
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() {   
GrumpyDuckMan
Added topic Problem with spread and point
Hello everyone, I am experiencing problems applying variables "points" and "Spread" to a decimal values. What does the value shown in points mean? How do I get Spread to show only 2 places after the decimal
GrumpyDuckMan
Added topic SymbolName/Symbol. OrderSend
Hello everyone, I'm experiencing problems with the my first part of the code isn't interacting with the second part. How could it be possible to change the String to a OrderSend? // First Part    string
GrumpyDuckMan
Added topic Symbol()
I have been reading over the reference manual "MQL4". I can't find the correct reference to a string for Symbol(). Alert("Currency=",(),Symbol()); At the moment the Alert reads the currency at the top of the watch window. How can I
GrumpyDuckMan
Added topic Help with Button Depressed/Released
+------------------------------------------------------------------+