Fa Cao
Fa Cao
  • Information
10+ years
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Fa Cao
Added topic about information which is printed by indicator or EA
I have made an EA which call an indicator. when I test it on strategy tester , it is ok and in the journal we can see all the information about when and which price the order open and close. If I add the "Print();" in EA, after test, in
Fa Cao
Added topic the indicator will show or not when we run an EA which call this indicator
I ask this question just because I have test it; and sometime the indicator was shown on chart, but most time, not. So I don't know why
Fa Cao
Added topic a question about stop loss
according to my acknowledge, when we send an order on MT4 with its stop loss by ordersend(), the MT4 operator can see the stop loss, and if we set stop loss by EA, nobody can see it. so why not set 0 as stop loss in Ordersend() and set real stop loss
Fa Cao
Added topic It is really a big surprising for me to see the strange result
I have made an EA with a function to move " stop loss ", I set two parameters for this function"extern int Move_Stop_Small=5,Move_Stop_Big=10;", when I test it many times and modified these two parameters many times, once I set
Fa Cao
Added topic how to filter some abnormal bar?
the bars like below picture shows; most time I want to get bar A rather than bar B;but use iLowest(), it is easily to get bar B; so how get bar A
Fa Cao
Added topic some question about the section of codes
About below Indicator, I have some questions as below: 1. when " #property indicator_chart_window" is available, we get the result is: when "#property indicator_separate_window" is available, we get the result is: the first
Fa Cao
Added topic About importing historical data
Just now I have import historical data into MT4, and the data is from 2001.1.2 to 2013.11.29; and now my terminal shows like below, that is because of lack data from 2013. 12.02 to now; so my question is how to add these data into MT4
Fa Cao
Added topic I want to know what is the difference between two sections of codes in Indicator
The below codes are in Indicator, and I want to know the difference when I change a little About this Indicator, I don't want to draw any indicator in Terminal, I just want to select some points in Indicator and call this indicator in EA by
Fa Cao
Added topic it is very strange for EA tester
I have made an EA and test it, it is ok, the result profit is 5000; to optimize the EA, I copy it on an blank EA, named "test_0", then I changed many variables to test, and at last i find it become worse when I change variables. Now I copy
Fa Cao
Added topic some error 130 about code
about below codes, it is very different when the red code " if(Pro<10000*Point) " is activated or not when I test it on the history data; In the fact the history data is very simple, about consecutive 5 days, and Pro never exceeds
Fa Cao
Added topic How to get an int value from Indicator?
When we want to get value from an Indicator, we always should use iCustom() to get, and the value must be stored in a double array which also should be defined as indicator buffer ; so when we can only get double value from Indicator by iCustom()
Fa Cao
Added topic Need help about Indicator's codes
I want to write an indicator to connect all the peak which meet my requirement (a little like ZigZag, but different for defining the peak); I write the codes as below, but the codes never work well, and I don;t know where something wrong exist. the
Fa Cao
Added topic some confusings about tester
1. for the same EA, data of the same time section, for example, from 2013.5.1 to now; I test the EA on time frame H1 and M5 separately, I find 2020 bars have been tested in H1 and 5857 bars in M5; but I think tested bars in M5 should be 12 times of
Fa Cao
Added topic I just want to get some value from Indicator "ZigZag" by iCustom(), but always fail
My EA code is as below: int i_0= 0 ,i_1= 0 ,i_2= 0 ; double x[ 50 ],y[ 50 ],z[ 50 ]; int init()   {     ArrayInitialize (x, 0.0 ); ArrayInitialize (y, 0.0 ); ArrayInitialize (z, 0.0 );    return ( 0 );
Fa Cao
Added topic Shall I get the bars' information, price, open time and so on, by the "object text" which is created on the bar?
I mean some time I create an object, a text, and set it on a bar's open time and high price; some time later, I want to view this bar's information, open price , open time and so on,so shall I get this information when I just know an object 'xyz' was
Fa Cao
Added topic some error about code
the code for an Indicator #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Yellow // High Points Array Line extern int Seek_Period= 30 ; double Bar_High[]; int init()   {
Fa Cao
Added topic About" indicator_testor EURUSD,M5: array to be set is of incompatible type "
The code is very simple, but I can't understand why MT4's expert complain that "array to be set is of incompatible type" My codes are as below: #property indicator_separate_window int counted= 0 ; #property indicator_buffers 2 #property
Fa Cao
Added topic how to create a template ?
each time I create a new EA or Indicator by "Expert Advisor Wizard", and I find we can select "Generate from template", in which I find just several temples; so shall I add some new temple which made by myself? I have tried copy
Fa Cao
Added topic the difference of task for computer when Indicator and function do the same work
for example, now I have made an Indicator "x_y" and an function "x_y", and they make all most the same work---draw two lines, one connect all the low points, the other connect all the high points, and of course some of the points
Fa Cao
Added topic Shall I let MT4 not show the arrows which are produced by OrderModify()?
I mean I use OrderModify() to change stop loss line ticket by ticket, each time an arrow will be produced(as below picture); this must give computer more burden and also I don;t want to see so much arrows. So how or what I set to get no arrows when