Page 139 of 177

Re: Coding Help

Posted: Fri Nov 04, 2022 10:28 pm
by alpha24
Hi Masters,
want to Shift this signal line by 2-3 candle please guide me.

Code: Select all

 Signal[i] = iMAOnArray(ao,0,SignalPeriod,0,MODE_SMA,i);

Re: Coding Help

Posted: Sat Nov 05, 2022 11:48 am
by kvak
alpha24 wrote: Fri Nov 04, 2022 10:28 pm Hi Masters,
want to Shift this signal line by 2-3 candle please guide me.

Code: Select all

 Signal[i] = iMAOnArray(ao,0,SignalPeriod,0,MODE_SMA,i);

Code: Select all

double  iMAOnArray(
   double       array[],          // array with data
   int          total,            // number of elements
   int          ma_period,        // MA averaging period
   int          ma_shift,         // MA shift
   int          ma_method,        // MA averaging method
   int          shift             // shift
   );

Re: Coding Help

Posted: Mon Nov 07, 2022 4:36 pm
by creativethinker
I am looking to add alerts to the simple RSI indicator, can any Guru on the platform help me add alerts to the indicator?

I downloaded the Indicator from the MQL5 codebase, I changed its name and added 20 and 60 RSI levels, and also changed the name of the indicator. What I am looking for now is to get alerts at
When RSI closes >60
When RSI closes >80
When RSI closes <40
When RSI closes <20

Please help me add alerts, it will make my trading strategy easy.

Re: Coding Help

Posted: Tue Nov 08, 2022 4:20 pm
by rexey
Greeting to you @Mrtools and all other coding experts,

I need help !!!!! . This is an indicator i edited and named it Checklist.mq4. I used various indicators created by forex-station expert @Mrtools, which i have adapted to my strategy to create this check list so that i can see the values on the market i am focusing on all at once.
NUMBERED BELOW IN THE PICTURE IS :

1. & 3. is tsi macd (mtf + alerts), created at this wonderful forum
2. 4. & 5. is Spearman Rank Correlation (price filtered) 1.02, created also at this beautiful forum.
6. 7. & 8. is ! Double jurik smoothed stochastic (mtf + arrows), created also at this forum.

I HAVE EXHAUSTED ALL OF MY LITTLE CODING SKILLS THAT I KNOW BUT THIS CHECKLIST SEEMS TO GIVE ME WRONG VALUES.

Can you Sir, @Mrtools or any other coding expert, help me, IF POSSIBLE TO:

1. Incorporate the three different indicators and create a single checklist of it. using the same individual values this indi's have in the coding.

2. Solve the problem of it giving me wrong values.

3. Add alert for any of the double groupings of indicator achieving the same color of either red or lime.

Even if 3. can't be done, i will be grateful if any one can help me solve 1 and 2. But solving 2 is most critical for me right now.

Attached is the picture of the indicator

The indicator itself

And other three indicators it used.

Any help is appreciated

Regards Rex

Re: Coding Help

Posted: Thu Nov 17, 2022 9:36 am
by kysbog
Hi, can some coder make like a box indicator based on this strategy in this video looks pretty good for price action!


Re: Coding Help

Posted: Sat Nov 26, 2022 6:23 pm
by luo83868008
I need your help,

What I want is to click the button all the time to display ABCDE


if(show_data)
{

ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_ON_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:A");

if(show_data)
{
ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_ON_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:B");
}
else
{


ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_OFF_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:C");

}}

else
if(show_data)
{
ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_ON_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:D");
}
else
{


ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_OFF_color);
ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,"button:E");

thank you

Re: Coding Help

Posted: Wed Dec 07, 2022 6:32 am
by Jackson Doh
rexey wrote: Tue Nov 08, 2022 4:20 pm Greeting to you @Mrtools and all other coding experts,

I need help !!!!! . This is an indicator i edited and named it Checklist.mq4. I used various indicators created by forex-station expert @Mrtools, which i have adapted to my strategy to create this check list so that i can see the values on the market i am focusing on all at once.
NUMBERED BELOW IN THE PICTURE IS :

1. & 3. is tsi macd (mtf + alerts), created at this wonderful forum
2. 4. & 5. is Spearman Rank Correlation (price filtered) 1.02, created also at this beautiful forum.
6. 7. & 8. is ! Double jurik smoothed stochastic (mtf + arrows), created also at this forum.

I HAVE EXHAUSTED ALL OF MY LITTLE CODING SKILLS THAT I KNOW BUT THIS CHECKLIST SEEMS TO GIVE ME WRONG VALUES.

Can you Sir, @Mrtools or any other coding expert, help me, IF POSSIBLE TO:

1. Incorporate the three different indicators and create a single checklist of it. using the same individual values this indi's have in the coding.

2. Solve the problem of it giving me wrong values.

3. Add alert for any of the double groupings of indicator achieving the same color of either red or lime.

Even if 3. can't be done, i will be grateful if any one can help me solve 1 and 2. But solving 2 is most critical for me right now.

Attached is the picture of the indicator

The indicator itself

And other three indicators it used.

Any help is appreciated

Regards Rex
Image
Rex,
This is a big ask but for my own learning purposes I had a go at addressing request 2. The only problem with that is I'm not too sure what values you are expecting. You will need to check these out.
My approach to this coding request was to provide a differently named indicator for each instance it was being called instead of using one like you had. The delay in this response was due to wanting to create multiple stochastic indicators with mtf and not being sure of my mtf coding skill.
I'm not sure if this will advance your quest but check it out and let me know what you think.
I wouldn't worry too much about the spacing. This is down to my monitor resolution settings; it should display like yours.
Cheers,
JD

Re: Coding Help

Posted: Fri Dec 16, 2022 12:09 pm
by saishala
Hello and sorry to bother with questions and ask for things.... I dont know nothing about coding and i dont have any idea about how to do things inside the indicators. If somebody have a time and want to do it i will be really grateful. My problem is that: I want to add one alarm to one indicator and if is possible add vertical lines on chart too. But with my knowledge of nothing about coding this will be impossible to me .

If someone want to do it and is easy and non time consuming i only can say Thanks For Life!

The indicator is Weis Wave 3c and the alert in mt4 is when the waves change. When finish one wave and begin the other. Only with this i will be really happy; if have any other things like plot vertical lines lines or have push or mtf this will be really amazing! But just the alarm works for me. I wish all the best to everybody and Happy Nearly Christmas and New Year!

(sorry about my written english...)

Re: Coding Help

Posted: Sat Dec 31, 2022 6:26 am
by rexey
Jackson Doh wrote: Wed Dec 07, 2022 6:32 am Rex,
This is a big ask but for my own learning purposes I had a go at addressing request 2. The only problem with that is I'm not too sure what values you are expecting. You will need to check these out.
My approach to this coding request was to provide a differently named indicator for each instance it was being called instead of using one like you had. The delay in this response was due to wanting to create multiple stochastic indicators with mtf and not being sure of my mtf coding skill.
I'm not sure if this will advance your quest but check it out and let me know what you think.
I wouldn't worry too much about the spacing. This is down to my monitor resolution settings; it should display like yours.
Cheers,
JD
Image


Checklist - 1.zip
CHECKLIST2.mq4
CHECKLIST2.ex4

Sorry for my late response

You just did me a world of Good

Thanks

Re: Coding Help

Posted: Sat Dec 31, 2022 7:00 pm
by doprotonu
It is difficult to find a system of indicators that gives hope for long-term success in the Forex market. I am looking for a coder who can appreciate such a system. By testing on a demo account, I found such a system consisting of three indicators. Two indicators do not have source code. I need a coder to write an EA for opening positions. Or a coder to write an indicator that will generate audio alerts and mobile alerts.