You have allready written here the working pseudocode, and that is basically all you need. Where exatly do you have problems with this code?
And normally you get sooner answers if you post the not working code so that people see you have actually done something..
//z
ok, i have get this indicator for know higher and lower candlestick value in certain time..
how to put the parameter(about higher and lower candlestick) that indicator to ea?
my ea code:
double higher= iCustom(NULL,0,"breakout",0,1);
but that code can not get that higher parameter..
how to take the higher parameter?
how to make like that?
ok, i have get this indicator for know higher and lower candlestick value in certain time..
how to put the parameter(about higher and lower candlestick) that indicator to ea?
my ea code:
double higher= iCustom(NULL,0,"breakout",0,1);
but that code can not get that higher parameter..
how to take the higher parameter?
Since your indicator does not any buffers even your iCustom() call can never get any value. Not the higher not the lower. You basically have 3 Options.
1) Modify the indicator to use buffers and then call iCustom() to get the values (Nice for visual backtesting and searching filters. but not optimal)
2) Modify the EA to read the values from the rectangles the indicator draws (Worst Solution)
3) Implement the logic direct into your EA. (Best, fastest, cleanest Solution)
hello WHRoeder, i want to learn something that very difficult in this forums.. and FREE.... hehe...
ya, gjol ..
maybe this is that code must using :
iBarBegin = iBarShift(NULL, 0, dtTimeBegin); iBarEnd = iBarShift(NULL, 0, dtTimeEnd); dPriceHigh = High[Highest(NULL, 0, MODE_HIGH, iBarBegin-iBarEnd, iBarEnd)]; dPriceLow = Low [Lowest (NULL, 0, MODE_LOW , iBarBegin-iBarEnd, iBarEnd)];
hello zzuegg, is this code must convert to buffer?
iBarBegin = iBarShift(NULL, 0, dtTimeBegin); iBarEnd = iBarShift(NULL, 0, dtTimeEnd); dPriceHigh = High[Highest(NULL, 0, MODE_HIGH, iBarBegin-iBarEnd, iBarEnd)]; dPriceLow = Low [Lowest (NULL, 0, MODE_LOW , iBarBegin-iBarEnd, iBarEnd)];
hello WHRoeder, i want to learn something that very difficult in this forums.. and FREE.... hehe...
ya, gjol ..
maybe this is that code must using :
iBarBegin = iBarShift(NULL, 0, dtTimeBegin); iBarEnd = iBarShift(NULL, 0, dtTimeEnd); dPriceHigh = High[Highest(NULL, 0, MODE_HIGH, iBarBegin-iBarEnd, iBarEnd)]; dPriceLow = Low [Lowest (NULL, 0, MODE_LOW , iBarBegin-iBarEnd, iBarEnd)];I'm very sorry but this code is incorrect
hello WHRoeder, i want to learn something that very difficult in this forums.. and FREE.... hehe...
There is a lot of good informations in this forum. for coders and pleople who want lern to code i think this is the best place. Of cource if you don't have a clue about coding (which i assume is the case with you) it's a bit hard to begin with a complete EA. maybe going trough the mql book (or any other programming book) would help.
But i don't think copy and pasting code trough the whole forum is the right way. if you realy get a EA which work in the tester, in worst case it will be profitable too, but then in live trading it fails completly and you don't know even why. there are reasons why good EA's cost some money. first the know how of the code and second the error handling.
i suggest if you want to learn code and "save" you some bucks:
read the book and the examles in it. Learn to read the code. You must be able to recognize what some specific code does. (like the example above)
write your own EA's starting with a simple MA crossover, the adding some filters, then adding Moneymanagment. so sooner or later you will be able to code more sophisticated EA's.
but you can also try it the hard way and start with a complex system. just my 2 cents
//z
ya zzuegg..
it's true that must study from the book at the first time..
but every book always show much code, so be confusion quickly.. hehe...
when i see in the mql ebook/pdf that have downloaded, my head always confusion.. hehe..
because i want to finish the my strategy on ea, so ask in the forums..
and when get the answer, i learn from that code that senior gave in the forum..
i learn the code one bye one, but not confusion..
but i always try the coding that i get from ea, and if it's not work, so i ask in this forums..
learn in the forums is the best and fun.. hehe..
and thanks to 7bit and gjol that many help in the coding,,,
o.. and zzuegq too, last day, u help in the order close.. hehe..
now, i will try this indicator first, i am trying to add buffer..
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hello every one..
i want the ea make open pending based of highest bar at certain time..
example:
now the time is 10.45,
the higher from time 5-9 is 1.4000
so after time 11, the ea open buy limit at 1.4010..
open pending order =the higher bar + 10 pips..
how to make like that?
thx..