void OpenOrdersToTP() { //to place orders so as to TP in choppy markets. RefreshRates(); double point=MarketInfo( Symbol (),MODE_POINT); Print ( "in OpenOrdersToTP():Bid=" ,DoubleToStr(Bid, Digits )
Dear all, How to set the description of a trendline object programmatically? I want to monitor the account equity at each trendline and to debug the code. I cannot find related description in ObjectSet function. Many thanks for your time and
Dear all, May I know where to see the order's magic number? I use the following script to send an order with a magic number. The order was submitted successfully. But I cannot find the magic number...Many thanks for your time and consideration. Your
The indicator contained in the attached file produces no output. But if I changethe following code diff[i]= iMACD ( NULL , 0 , 12 , 26 , 9 , PRICE_CLOSE ,MODE_MAIN, 0 ); to diff[i]= iMA ( NULL , 0 ,FastEMA, 0 , MODE_EMA , PRICE_CLOSE ,i)- iMA ( NULL
Dear all, During the EA backtesting , the system outputs several types of information which might be of great value to debug the EA. : 1. the dash line in red or blue, as shown in figure below. 2. The ovals with red or blue arrows inside, also show
Dear all, I used the following code in my EA to create a text object at a position higher than the current bar's High. #property copyright "Copyright 2013, MetaQuotes Software Corp." #property link
Dear all, I met a problem when i tried to call an imported function with defaul value parameters. The function body is: #property library #define MN 13000 void alert1( string sym, int Type, double Lotz, int MagicNumber=MN, double PendingPrice = 0 ) {
Dear all, I am a newbie in using strategyg tester . My questio1ns are:. 1. What is the meaning of the line and icon generated during the back test? 2. How to display equity curve ? my terminal only shows balance curve. Sorry to apply your help
Dear all, I want to add external parameters for my EA while adding include files, as shown below: #include <test.mqh> extern int ExtParam1; But with the " #include <test.mqh> "
Dear all, Anybody interested to cooperate to develope an EA? You can send a message to 1273174547@qq.com. I have an attractive idea and have been paper trading based on the logic in the past 2 months. and the Result is satisfactory....I hope you are
I cannot access www.mql4.com last week. I suspect it is a problem of my computer or my local computer . One of my friend told me that he cannot either. Aother friend told me that he can last Thursday...... But today I can reach, too... May I
Dear all, The code attached is used to detect the number of peaks and troughs in the current chart(the chart I used the EURUSD of period 1 hour) . But the scripts always alerts "0 peaks and 0 troughs" at the end of the script while
Dear all, I have a problem on the output position of the text object. As shown in the code below, the text object will be out put with the text set to be "the time current." But from the screenshot below, the timecurrent is "2012.09.10", But
Dear all, IS there any preprocessors used to enablbe the duplicated inclusion of the header files? and how? Thanks a lot for your time and consideration, and your prompt reply
Dear all, How can I display multiple moving average lines (a moving average with multiple periods) with a single moving average indicator? Thanks a lot for your prompt reply.
Dear all, My strategy tester all reports "test generator: no history data "EURUSD15". The directory "C:\Program Files\Alpari UK MT4-1\history\AlpariUK-Demo-Pro" , contains a file "EURUSD15.hst". I downloaded the history data
Dear all, my EA frequently reports "OrderSend Error 130 " during backtest. The code snippnet is as follow: a double slprice=NormalizeDouble(High[iHighest(sym, 240 ,MODE_HIGH, 10 , 1 )]+ 40 *Point,Digits- 1 );
Dear All, I am a newbie in using the strategy tester. When I started to use it, I dont know how to make the setting correctly. My questions are: 1. how to ascertain that the data over the specified period is reliable? 2. Is there any
Dear all, when I am testing the EA with strategy tester no output was produced by in the equity curve tab. I am really puzzled and waiting for your help... The setting of the strategy tester is as shown in the figure below.I have downloaded the
Dear all, I have write a simplified version of MACD to show the rise and fall of the MACD historgram(the difference of the MACD line and the macd signal line). I use the following code to show a 1 to indicate the historgram is rising , a -1 to