Re: Coding Help

1615
JGREEN wrote: Mon Aug 19, 2024 12:43 am thank you so much bro ..but please can you make it calculate the weekends that means all days so the cycle will be true 14 days ..
thank you in advance
Don't know about this, but when I use google I read that mean moon phase is 2,551,442.8 sec (29 days, 12 hours, 44 minutes and 2.8 seconds).
This number is very close to #define MOON_CYCLE 2551500

Maybe try it to calculate for 14 days and rewrite this number....
These users thanked the author kvak for the post:
JGREEN


Re: Coding Help

1616
kvak wrote: Mon Aug 19, 2024 6:21 am Don't know about this, but when I use google I read that mean moon phase is 2,551,442.8 sec (29 days, 12 hours, 44 minutes and 2.8 seconds).
This number is very close to #define MOON_CYCLE 2551500

Maybe try it to calculate for 14 days and rewrite this number....
thanx bro ..will tr it out

Re: Coding Help

1617
friends.
i am Looking for an MT 4 indicator, where i can get to see 1 minutes and 15 mins candles in same chart window , along with my main chart of 5 mins. \
we use 5 mins candle on chart. we need 1 mins candles to be seen in other window on the same chart. if there is any such readily available indicator, kindly do inform..

Re: Coding Help

1618
Hello mrtools.

I'm playing with an indicator that draws 2 lines between 0 - 100 value.

By default setting, Green line (using Low Price) reaches to 0 value impulsively
but Red line (using High Price) doesn't reaches to 100 value impulsively.
I think the red line should work the same as the green line.

I have had the same experience before with other indicators that use highs and lows, or maximum and minimum of price.
(I forgot the name of the indicator.......)
Do you know why like this happens ?
Because of the spread?
price data comes from only ask price something like this ?

Could you take a look the code please ?

Re: Coding Help

1619
t2g wrote: Sun Sep 01, 2024 11:41 am Hello mrtools.

I'm playing with an indicator that draws 2 lines between 0 - 100 value.

By default setting, Green line (using Low Price) reaches to 0 value impulsively
but Red line (using High Price) doesn't reaches to 100 value impulsively.
I think the red line should work the same as the green line.

I have had the same experience before with other indicators that use highs and lows, or maximum and minimum of price.
(I forgot the name of the indicator.......)
Do you know why like this happens ?
Because of the spread?
price data comes from only ask price something like this ?

Could you take a look the code please ?
Far as I can tell the code looks good, remember what you are talking about when this indicator was first posted added jurik smoothing and t3 signal lines, seemed okay.
These users thanked the author mrtools for the post:
t2g