• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Suggestion Building a SoeHoe Community EA - #001

Oh ya, sorry this is what I mean:


Code:
double ind_01=iCustom(NULL,0,"HalfTrend-1.02 mtf",0,1);
double ind_11=iCustom(NULL,0,"HalfTrend-1.02 mtf",1,1);

signalBUY =ind_11<Bid;
signalSELL=ind_01>Ask;

I copied the text from the old program, haven't replaced it with the correct variable name.
 
Because in the new program I've changed the name of the indicator to "HTIndi" (HT = halftrend) to make it easier to write and move it to the "Market" folder, so it doesn't mix with other indicators.
So writing the code to retrieve the indicator becomes:

Code:
double ind_01=iCustom(NULL,0,"Market\\HTIndi",0,1);
double ind_11=iCustom(NULL,0,"Market\\HTIndi",1,1);

signalBUY =ind_11<Bid;
signalSELL=ind_01>Ask;

That's why I made a mistake while copying the text.
 
Sorry for late reply friends. I had a little challenge with all mt4 on which i run demo trade on my PC, they are not connecting. I chat with customer cares of each broker to detect error and find solution. It takes longer time.
 
I made a small change to the indicator. I disabled all input.

View attachment 149234

View attachment 149235

So instead of writing a function like this:

Code:
double ind_01=iCustom(NULL,0,"HalfTrend-1.02 mtf","Current time frame",2,true,false,true,true,true,false,false,true,2,233,234,true,0,1);
double ind_02=iCustom(NULL,0,"HalfTrend-1.02 mtf","Current time frame",2,true,false,true,true,true,false,false,true,2,233,234,true,1,1);

I just need to write it this way:

Code:
double ind_01=iCustom(NULL,0,"HalfTrend-1.02 mtf",0,1);
double ind_02=iCustom(NULL,0,"HalfTrend-1.02 mtf",1,1);

And then Buy/ Sell signal:

Code:
signalBUY =ind_11<Bid;
signalSELL=ind_01>Ask;
Thank you Niguru for this development. Can we now replace this modified Half trend with the former? What are the possible effect of it on the ea performance?
 
Thank you Niguru for this development. Can we now replace this modified Half trend with the former? What are the possible effect of it on the ea performance?

papa j I just renamed and moved the files from the root folder to the Market sub folder. There is no modification at all.
Rename is just to make writing easier, and moving it to the Market sub folder so that special indicators are not mixed with standard indicators. :)
 
papa j, after seeing Ozymandias' performance, I tried to review the Halftrend indicator that you shared.
The results from fetching buffers #4 (= up) and #5 (= down) were indeed repainted (display as Arrow on the chart), but after I tried to retrieve data from buffers #0 (=up) and #1 (=down), which displays a line graph, it gave similar results to Ozymandias. :ok::)

Hopefully this review can help Chee Ho to improve the performance of the EA he programmed.
Can you share with me this Ozymandias, you talk about it a lot?
 
I would love to try to turn an indicator into automated EA. If you have an indicator would love to share, I will try to code an EA to work with the indicator.

#It is only for SoeHoe community here.
#It is a free service by personal interest.
#If you would like to donate for appreciation, you are most welcome.

Hello!
Happy New Year!

I have a profibyle stratage, and want to sumbody create expetr on its basis. In attached file resalts of hand tradig throw my stratage.
I can not attach files becous I am new.
Files with resalts hand trading, Technical Task and indicators for creating expert I can send to you by email. My email: [email protected]

I am disable person, and have no for proramming. Becouse of that I ask to help me, and write expert for me free.
 
Back
Top