I am trying to get a simple script to write the values of the technical indicators to a text file but I do not get the right values. The output file dates are integers void OnStart () { int file_handle= FileOpen ( "h1.csv"
I noticed that on my daily charts that I am getting 6 daily candles per week (mon - fri & sunday). Since the market is only open for 2 hours on Sunday , I feel that is skewing my indicators such as the stochastics & macd. Is there a way to
I am running an EA in Strategy Tester without using visualization mode. Once it is complete I can see the results in the Results/Graph/Report/Journal tabs but I do not get the charts to display. I thought that as long as trades were executed when
I have a script that writes the values of technical indicators per candle, but I do not know how to get the script to run on a specified date range. If I attach the script to a chart it counts backwards the number of candles from the current
I want to create a script that will write the value of a technical indicator to an array or buffer for every candle in a chart. I saw the function ArrayCopySeries but that appears to only apply to open/high/low/close and not to things such as the
I need to download historical data on technical indicator values per candle. Is there an existing MT4 script on this forum that I could use as a template
I just setup MT4 on another machine. After downloading historical data from MetaQuotes for GBP/USD, I then tried to test my EA in StrategyTester, but nothing happens. The screen is stuck on 'waiting for update'
dev = dev * 1.0 ; Why does the above line compile, but if I add a negative sign (below) then I get a compile error '-' unexpected token? dev = dev * - 1.0 ;
I am trying to develop my first custom indicator . I only want the indicator to show on the charts during the overnight session. Therefore I added a simple IF clause to check for the hour of the day. The problem is that the indicator shows up for
I had been speaking to FXCM regarding historical data. I already had downloaded free historical data from MetaQuotes and the support person sent me a link where I could purchase 10 years of historical data from FXCM. The price was $500 which did not
While testing my EA on a demo account, I noticed that I got an order executed twice in the same second. Although I have a check before using OrderSend to make sure that I do not currently have an order open. What would you suggest I do to prevent
I have an EA that passes a SQL command to a Microsoft SQL Server instance to execute a stored procedure. The stored procedure takes a few seconds to process and then produces a text file. In a live environment that should not be an issue