Candle Body in Pips MTF //Help needed

Post Reply
Ribelo
Trader
Posts: 62
Joined: Thu Nov 17, 2011 12:58 am

Candle Body in Pips MTF //Help needed

Post by Ribelo »

Short and to the point.

I tried to make an multitimeframe indicator that shows the candle body in pips. It works, but only on history candles. The newly created candles are .... crazy. I have no idea what the problem. Anyone would be able to help?

PS.

Everything is well prepared to draw a MTF moving average. I think I can do it yourself, but if someone would have done it at one stroke, It would be great.

Regards,
Raphael.
You do not have the required permissions to view the files attached to this post.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Candle Body in Pips MTF //Help needed

Post by gaheitman »

Ribelo wrote:Short and to the point.

I tried to make an multitimeframe indicator that shows the candle body in pips. It works, but only on history candles. The newly created candles are .... crazy. I have no idea what the problem. Anyone would be able to help?

PS.

Everything is well prepared to draw a MTF moving average. I think I can do it yourself, but if someone would have done it at one stroke, It would be great.

Regards,
Raphael.
I started to try to correct your code, but it was taking longer than I wanted, so I just wrote another version :) . It has a slightly different approach, but I think it gives correct results. I'm not sure about speed, but I almost always use iBarShift() when working with other time frames.

George
You do not have the required permissions to view the files attached to this post.
Ribelo
Trader
Posts: 62
Joined: Thu Nov 17, 2011 12:58 am

Re: Candle Body in Pips MTF //Help needed

Post by Ribelo »

Thanks George. I knew I could count on you. You are awesome.
Post Reply

Return to “Coders Hangout”