Candles - page 26

ra457
40
ra457  

Megandle = Megacandle

Alright. So I've started deconstructing and building my own version of custom candle. It's dependent on trends rather than on time.

I think I have all the logic in place to set the correct open and close prices for the indicator. But now that I'm actually trying to draw the candles, they aren't drawing.

Can anyone take a look?

Also, I pretty much abandoned the prospect of using shadows because I couldn't wrap my head around it and it seemed needlessly complicated.

Thanks if you can help!

Files:
megandle.mq4 4 kb
ra457
40
ra457  

next version

made some changes

still nothing drawing and i dont know what im doing wrong

Files:
bsrdv.jpg 69 kb
Jayson Davie
136
Jayson Davie  

ASK candle charts

Hi everyone,

I am looking for ask candle charts as my trading method requires the ask price to cross certain indicator levels but if I use the bid candles the indicator would be calculated from that price not that ask price.

Has this been achieved before? If not I would be really grateful if someone could help me with this issue.

I think it must be possible. My idea would be to some how shift the bid candles up vertically by the spread for that particular pair/instrument. As I have absolutely zero coding knowledge I'm not sure how this would be possible, but am sure someone with the correct knowledge would be able to do this.

Thanks for reading and for any help.

kolier1
120
kolier1  

Are your levels just lines?

That would be not hard.

Jayson Davie
136
Jayson Davie  

Hi Kolier,

Yes the levels are lines, they are lines of bollinger bands.

I need these bollinger bands to be calulated from the ask price not the bid.

I am after some sort of EA/indicator that can acheive ask price candles so that I can attach the bollinger bands indicator to the ask chart.

Let me know if you think this is possible so I can give you more details of what I need it to do.

Thanks

jd

cyber1
10
cyber1  
ra457:
made some changes still nothing drawing and i dont know what im doing wrong

I've looked at the code and you have several problems.

First, you will need a while or for loop to loop thru all the bars(Customcandle uses a while loop)

Second, you are trying to use the following:

MarketInfo(NULL,Bid) should be MarketInfo(Symbol(),MODE_BID)

MarketInfo(NULL,Open) there is no such function

I would suggest starting with something simple that just draws rectangles around each bar or several bars just to get the feel for it being you are new to programming.

dumbtrader
33
dumbtrader  

hi felows....i'm searching for candle body range (open/close) in pip where the pip numbers stated after the candle close...below or top of the candle...

the range also can be customized follow by timeframe or brokers time:

example:

CANDLE BODY RANGE IN PIPS TOP OR BELOW OF THE CANDLE.

GMT SETTING plus market hours. london japan n us sesion

Brokers time / SETTINGS

0.00 show range in pip true/false

1.00 show range in pip true/false

and so on...

sorry for my bad english,,,,hope some body can code this for me... tq

rome777
19
rome777  

Alarm on candle close in opposite direction

Have you ?

kardamon
25
kardamon  

int start()

{

if (Volume[0] >1)

return(0);

if ( Close[1]>Open[1] && Close[2]<Open[2] )

Alarm("Candle closed up");

if ( Close[1]Open[2] )

Alarm("Candle closed down");

........

}

Vadim
222
Vadim  

I need H4 in H1 indicator

Hi all!!! I looking for an indicator that show the H4 canddles on the H1 chart. It is likes 1 big H4 canddle around 4 canddles of H1 chart. I know, this indicator is at mql4.com forum but I can not remember the name of it. Please attache here this indicator if you have it or just reply me the name on this threat. Thank's much!!!