Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

Recommended Posts

Posted

Could someone please code an indicator, if of course having free time, for the following logic.

The idea is to assist in reading price action in real time, I read it in YTC

Need an indicator that will divide the whole candle length in one/thirds and then locate the close to be in one of the thirds

so we can have

close in above one third of the range of candle, the candle is bullish

close in middle one third of the range of candle, the candle is neutral

close in the lower on third of the range of candle, the candle is bearish

 

Thanks in advance,

Jay

Posted (edited)

Here you go:

www.4shared.com/file/-ZquyCBs/_Jay007.html

 

You will notice that some of the candles have different colors body and shadow

That's due to the way MT4 is handling the data

A red shadow with a blue body means that the closeprice was in the lower section of the range but it was still a upcandle

 

You can use the code of the indi as a template for other calculations to get colored candles

e.g. if price closes between ma50 and ma100 it's neutral, above both ma's its bullish and below bearish

So if someone has an idea how to classify the pa you can either post your indi here or post the rules and we can see what can be done

 

Bug should be fixed

Edited by iwjw
Bug (hopefully) fixed
Posted

Thanks mate,

I am waiting, I would like to see the code, since at first my idea was to see only the last candle and create object on the chart window about it..but i am not a coder as you see..

Here you go:

www.4shared.com/file/-ZquyCBs/_Jay007.html

 

You will notice that some of the candles have different colors body and shadow

That's due to the way MT4 is handling the data

A red shadow with a blue body means that the closeprice was in the lower section of the range but it was still a upcandle

 

You can use the code of the indi as a template for other calculations to get colored candles

e.g. if price closes between ma50 and ma100 it's neutral, above both ma's its bullish and below bearish

So if someone has an idea how to classify the pa you can either post your indi here or post the rules and we can see what can be done

 

Please wait with download because I just detected a bug

Posted

Thanks mate,

I am waiting, I would like to see the code, since at first my idea was to see only the last candle and create object on the chart window about it..but i am not a coder as you see..

Here you go:

www.4shared.com/file/-ZquyCBs/_Jay007.html

 

You will notice that some of the candles have different colors body and shadow

That's due to the way MT4 is handling the data

A red shadow with a blue body means that the closeprice was in the lower section of the range but it was still a upcandle

 

You can use the code of the indi as a template for other calculations to get colored candles

e.g. if price closes between ma50 and ma100 it's neutral, above both ma's its bullish and below bearish

So if someone has an idea how to classify the pa you can either post your indi here or post the rules and we can see what can be done

 

Please wait with download because I just detected a bug

Posted

fixed version is availlable now under same link

The current candle repaints because it takes until the close to classify it

The bug was that the candle could be a mix of blue/red and gray color

Should be solved

Posted

Made a little progress in controlling the body color

I first thought that the color is depending on the underlying candle but now I can control it

Here's an "advanced" version of the indi:

www.4shared.com/file/tIQcL2M1/_Jay007_1.html

 

and here is an example of a simple 2ma indi

www.4shared.com/file/2WlWwoYX/_2ma.html

Posted

Thanks mate, the MA indi is also the basis of heikin ashi

Made a little progress in controlling the body color

I first thought that the color is depending on the underlying candle but now I can control it

Here's an "advanced" version of the indi:

www.4shared.com/file/tIQcL2M1/_Jay007_1.html

 

and here is an example of a simple 2ma indi

www.4shared.com/file/2WlWwoYX/_2ma.html

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...