Elite indicators :) - page 273

Codex
94
Codex  

Hi MLaden,

Would it be possible for you to code an indicator that can display the output to the equation I will show you below.

Output would just be two numbers (Percentages, positionable at either corner of a chart).

Data needed :

(Ask) price

(Bid) price

(High) candle

(Low) candle

(Range) candle Length = ( Highest price - Lowest price )

The equation :

buy Percentage % = High - Ask / Range * 100

sell percentage % = Bid - Low / Range * 100

Condition :

If the buy Percentage is greater than the sell percentage

Example ( buy Percentage % = 75% At least ) and ( sell

percentage % = 25% At most ) here we enter long

And vice versa in the case of a short

Example :

EUR CAD

Bid = 1.6239

Ask = 1.6246

High = 1.6319

Low = 1.6237

buy Percentage % = 1.6319 - 1.6246 / 1.6319 -1.6237 * 100= 73/82*100

=89%

sell percentage % = 2.4%

In this example we would enter long

Thanks in advanced for any help.

Cheers

Codex

altoronto
318
altoronto  

Hmm, sell percentage will be 11% not 2.4%

Mladen Rakic
154601
Mladen Rakic  

Codex

This is done according to your specs

Two issues though :
Bid and Ask are accessible only for current bars, so the "historical" Bid and Ask are simulated : bid is equal to close in the historical data and ask is close+spread. For that reason the indicator is divided into 2 parts : regular lines are showing historical part and histogram shows current value calculated from actual Bid and Ask. Histogram should spread as the time pass but it can not be tested in back-test (because of the Ask and Bid) so we shall have to wait for market to open to see how that part that leaves those values intact works On bars with very low range you can get "unreal" percentages : here is an example with a bar that is 1.3 pips high and then the percentage went out of the +-100
PS: Values are adapted to vary between +100 and -100 (so that histogram can be drawn too) I did add a 0 line too but due to spread difference, it is not the actual "center line" of the indicator (it is a bit "asymmetrical" even without the adaption).

Try it out

regards

Mladen

Files:
Codex
94
Codex  

Thank you very much Mladen.

I will start testing asap.

Cheers

Codex

Hercs
2957
Hercs  

Need an explanation....

Mladen,

Do you have any idea why an indicator would "pull apart" during a certain period as per the example I have here? The indicator stays "normal" going UP when all of a sudden the "down"-colours start appearing all over the place, not affecting the accuracy of the indicator, though.

Thanks in advance.

Pleasant weekend.

Files:
tsd.png 50 kb
traderduke
533
traderduke  

Mladen,

Any chance you coulld add arrows?? Post #2697

Ray

traderduke:
Mladen,

Thanks for the MTF explaination, it appears mtf won't work well on an EA. So I guess i'm back to my straight time indicators. This KC which you added alerts to months ago would be more visiable with arrrows, is there any chance you could add arrows when the alert fires.

thanks again

Ray
traderduke
533
traderduke  

Mladen,

Sorry to be such a pest but I'm trying to get this indicator and the KC to work together. This HMA which has been touched by many. I like this version because it displays the "Trend' data 1 or -1.

1. The problem is that the up/down color doesn't match the 1 or -1 all the time particularly at rhe reversal. I would like to use this in an EA do you think its possible or can you suggest another with the trend 1 -1??

2. The arrow buffer never worked properly is there any chance you can repair it??

Ray

Files:
Mladen Rakic
154601
Mladen Rakic  

Ray

Disregard the color appearance on chart.

The trend data is correct in that indicator (you can easily check it : set the period to some small value and when Filter is set to 0 it should change colors when hma changes slope up or down, you will find quickly where the difference happens).

See the example (period 3 and HMA_Mode 3 (which is the original - Hull moving average is calculated using LWMA not EMA as the default parameter setting in in hma 3.2)) and values where arrows are placed. But at those places values in trend buffer are correct, so, simply use just the trend data

regards

Mladen

traderduke:
Mladen,

Sorry to be such a pest but I'm trying to get this indicator and the KC to work together. This HMA which has been touched by many. I like this version because it displays the "Trend' data 1 or -1.

1. The problem is that the up/down color doesn't match the 1 or -1 all the time particularly at rhe reversal. I would like to use this in an EA do you think its possible or can you suggest another with the trend 1 -1??

2. The arrow buffer never worked properly is there any chance you can repair it??

Ray

_____________________________

ValeoFX

I can not tell why without a code. There can be a lot of reasons in the code itself

regards

Mladen

ValeoFX:
Mladen,

Do you have any idea why an indicator would "pull apart" during a certain period as per the example I have here? The indicator stays "normal" going UP when all of a sudden the "down"-colours start appearing all over the place, not affecting the accuracy of the indicator, though.

Thanks in advance.

Pleasant weekend.
Files:
hma.gif 24 kb
Leverage1
50
Leverage1  

Randy

Is there an Indicator that can monitor the margin level for a trading period and record the lowest margin level reached-

thank you

Randy

Leverage1
50
Leverage1  

to go further with this thought- trying to find a balance between safe trading and aggressive trading- for example, trading 4 currency pairs at the same time- using a software that is preset, if the margin level goes below this preset percentage, the trade that has the most drawdown is automatically closed to protect the margin and not take the chance of losing all 4 trades- is there software available that can do this?

thank you

Randy