Page 20 of 180

Re: Coding Help

Posted: Thu Apr 27, 2017 6:25 am
by smok
mladen wrote: Thu Apr 27, 2017 5:53 am You are mixing trend lines and arrows
Create first two separate objects
there are already two separate obj,
can you check it Mladen?

Re: Coding Help

Posted: Thu Apr 27, 2017 6:49 am
by mladen
smok wrote: Thu Apr 27, 2017 6:25 am there are already two separate obj,
can you check it Mladen?
Not in the code part that you posted in the previous post (there is only trend line in that part)
In any case change line 208 to be something like this :

Code: Select all

   ObjectSet(Name,OBJPROP_TIME1,Time[0]+_Period*60*25); // Replace 25 with any number of bars you wish it to be shifted to the right

Re: Coding Help

Posted: Thu Apr 27, 2017 6:57 am
by smok
mladen wrote: Thu Apr 27, 2017 6:49 am Not in the code part that you posted in the previous post (there is only trend line in that part)
In any case change line 208 to be something like this :

Code: Select all

   ObjectSet(Name,OBJPROP_TIME1,Time[0]+_Period*60*25); // Replace 25 with any number of bars you wish it to be shifted to the right
yes i can edit with shift text and trendline with that value, but i want to see them always there, which i change tf or zoom, it changes.

as like this ss

Re: Coding Help

Posted: Thu Apr 27, 2017 7:47 am
by mladen
smok wrote: Thu Apr 27, 2017 6:57 am yes i can edit with shift text and trendline with that value, but i want to see them always there, which i change tf or zoom, it changes.

as like this ss
Text anchoring is based on time. You can not fix them at some distance (from the right side, for example)
On the other hand, labels are independent from time, but can not be anchored to price. So they can not do the task either

I am afraid that you are forced to use approximation as the one from my example

Re: Coding Help

Posted: Thu Apr 27, 2017 11:42 pm
by yamahaqs300
I found this indicator : NASAP_Heiken Ashi.ex4
Is super ! (I didn`t find .mq4 version.)
Is any chance to make with values? When is red = value 1,when is blue= value 2 ?
I found a lot of Heiken Ashi indicators,but no values...only value 1 :(
thank.
P.S - thank you mladen for help.

Re: Coding Help

Posted: Thu Apr 27, 2017 11:55 pm
by mladen
yamahaqs300 wrote: Thu Apr 27, 2017 11:42 pm I found this indicator : NASAP_Heiken Ashi.ex4
Is super ! (I didn`t find .mq4 version.)
Is any chance to make with values? When is red = value 1,when is blue= value 2 ?
I found a lot of Heiken Ashi indicators,but no values...only value 1 :(
thank.
P.S - thank you mladen for help.
That is the heiken ashi that comes with mt4
See the attached

Re: Coding Help

Posted: Fri Apr 28, 2017 3:09 am
by yamahaqs300
mladen wrote: Thu Apr 27, 2017 11:55 pm That is the heiken ashi that comes with mt4
See the attached
And add values ? Can be done ? When is up.......value 1,down....value 2 ??? Can u do that please ???

Re: Coding Help

Posted: Fri Apr 28, 2017 3:13 am
by mladen
yamahaqs300 wrote: Fri Apr 28, 2017 3:09 am And add values ? Can be done ? When is up.......value 1,down....value 2 ??? Can u do that please ???
You mean some invisible buffer that would have those (1 and 2) values?

Re: Coding Help

Posted: Fri Apr 28, 2017 3:18 am
by yamahaqs300
mladen wrote: Fri Apr 28, 2017 3:13 am You mean some invisible buffer that would have those (1 and 2) values?
Yes....because I can`t use it to build EA .I need values for up and down.....

Re: Coding Help

Posted: Fri Apr 28, 2017 3:28 am
by mladen
yamahaqs300 wrote: Fri Apr 28, 2017 3:18 am Yes....because I can`t use it to build EA .I need values for up and down.....
try this - you have a separate buffer for that now
- when you have +1 in the buffer, then ha trend is up
- when you have -1 in the buffer, then ha trend is down
- or it can be 0 (when open and close are equal)