Coding help - page 325

 

Hi 12BPRO,

Thank you for coding it nice looking now but what I want is LTR and STR will be in the description area not in the trendline name. Can this be possibly coded this way? Not manually typed. Kindly look at the image attach.

12BPRO:
Try this if it is OK with you
Files:
description.jpg  20 kb
 
fxmillionaire:
Hi 12BPRO,

Thank you for coding it nice looking now but what I want is LTR and STR will be in the description area not in the trendline name. Can this be possibly coded this way? Not manually typed. Kindly look at the image attach.

If 12BPRO changes that the description is like you say, then you will have only "LTR" and "STR" displayed on chart (no pip values).

 
mladen:
If 12BPRO changes that the description is like you say, then you will have only "LTR" and "STR" displayed on chart (no pip values).

Dear SIR MLADEN,

I think, I did it wrongly SIR..... I change the NAME.....

What he wants is to add a DESCRIPTIONtothe trendline....

BUT I have not found the codes to add that description.... could you PLEASE paste that code, I have NO idea how to do that... .... (LEARNING)

Thanks for your HELP SIR...

yours truly

AZRUL...

Files:
zigzagsg_1.jpg  124 kb
 
12BPRO:
Dear SIR MLADEN,

I think, I did it wrongly SIR..... I change the NAME.....

What he wants is to add a DESCRIPTIONtothe trendline....

BUT I have not found the codes to add that description.... could you PLEASE paste that code, I have NO idea how to do that... .... (LEARNING)

Thanks for your HELP SIR...

yours truly

AZRUL...

AZRUL

When you set the text (using ObjectSetText() function) the second parameter is the description

 
mladen:
AZRUL When you set the text (using ObjectSetText() function) the second parameter is the description

Dear SIR MLADEN,

Thanks for the TIP... You are always HELPFUL and knowledgeable.....

Learn something new today...

yours truly

AZRUL...

 

Hi Mr Mladen,

Can you please create a Mt4 Indicator based on a simple condition ......

Original Criteria was this :

1) A bar whose entire range exceeds the last 10 bars by at least 2.5 to 3 times

2) A bar that exceeds the previous bars range.

For condition 1 a green dot should appear under the bar

For condition 2 an red dot should appear under the bar

The person gave another explanation :

1) Lets consider the previous 10 bars

2) Each of those bars had a range of 3 points to 25 points

3) Now condition 1 is that this bar should be atleast 2.5 to 3 times ( in terms of points) the previous 10 bars, ie a sudden increase in number of points

Something like average true range I think.

Below is the already created Indicator for Amibroker :

condtn1 = ((H-L) > Ref(atr(10),-1)*2.5);

condtn2 = (H > Ref(H, -1)) OR (L < Ref(L, -1));

PlotShapes(condtn1, colorGreen);

PlotShapes(condtn2, colorRed);

I want it for MT4 ...... Thanks a lot

 
rpasupathy:
Hi Mr Mladen,

Can you please create a Mt4 Indicator based on a simple condition ......

Original Criteria was this :

1) A bar whose entire range exceeds the last 10 bars by at least 2.5 to 3 times

2) A bar that exceeds the previous bars range.

For condition 1 a green dot should appear under the bar

For condition 2 an red dot should appear under the bar

The person gave another explanation :

1) Lets consider the previous 10 bars

2) Each of those bars had a range of 3 points to 25 points

3) Now condition 1 is that this bar should be atleast 2.5 to 3 times ( in terms of points) the previous 10 bars, ie a sudden increase in number of points

Something like average true range I think.

Below is the already created Indicator for Amibroker :

condtn1 = ((H-L) > Ref(atr(10),-1)*2.5);

condtn2 = (H > Ref(H, -1)) OR (L < Ref(L, -1));

PlotShapes(condtn1, colorGreen);

PlotShapes(condtn2, colorRed);

I want it for MT4 ...... Thanks a lot

Looks familiar

Will check if it exists already

 

Alert NOT?

A am sure this has been covered, but I missed the memo.

Why isn't Alert() working?

This shows in the comment but no alert.

Alert(msg); Comment(msg);

msg is String.

A typical msg: (Symbol() + ": " + PeriodToText() + " - Sell Signal / " + tn, 1)

(The '1' is a second parameter passed to the function.

 

mladen, do you know?

 
Big Be:
A am sure this has been covered, but I missed the memo.

Why isn't Alert() working?

This shows in the comment but no alert.

Alert(msg); Comment(msg);

msg is String.

A typical msg: (Symbol() + ": " + PeriodToText() + " - Sell Signal / " + tn, 1)

(The '1' is a second parameter passed to the function.

Are you trying alerts in a back test?

If yes, then that is the cause : alerts do not work in back test