
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Sorry, forgot you're looking for same indicator multiple windows.
I'll try thinking of something else.
===============================================
Ah-ha, I've got it. Create a function which does a decent length calculation.
Then return the time-lapse for the function to complete as your unique number.
TimeCurrent() is a unique number..
why don't you try to use the time you attach the indi ?? save it into a label
Because I do not trial every advice. I am picking only those that have sense.
I suggest you moderate your arrogance with people who try to help you. Such attitude is not welcomed on this forum.
i will try to stay away.
how could you say my idea is non sense??
time current is unique number..
try this code.. attach it on 1 chart.. but different input periode
time current is unique number..
TimeCurrent() is not a unique number under various possible circumstances including the following:
* You are re-starting a copy of MT4 with multiple existing charts and multiple indicators attached to those charts. They will all get initialised at the same time, and see the same TimeCurrent()
*You are adding copies of the indicator during a period of thin liquidity. Depending on the type of your broker's price feed, there can be periods where there is no new tick for 5-10 seconds, and TimeCurrent() does not change. If you add new indicators during such a period then they will get the same value for TimeCurrent().
only adding time tag if we cant find TIME TAG label
so do not delete the label TIME TAG on deinit .. so the value never change
ok.. if we are affraid if there is no tick in 5 or 10 second.. may be we can use TimeLocal instead of Time Current
only adding time tag if we cant find TIME TAG label
so do not delete the label TIME TAG on deinit .. so the value never change
ok.. if we are affraid if there is no tick in 5 or 10 second.. may be we can use TimeLocal instead of Time Current
... There's also the problem discussed above about chart objects: if you add the indicator to a chart and then create a template, all new charts created from the template will have the same TIME_TAG value. And the use of the object only allows one instance of the indicator per chart; multiple indicators will get the same ID unless you put all possible parameters into the IndicatorShortName.
... There's also the problem discussed above about chart objects: if you add the indicator to a chart and then create a template, all new charts created from the template will have the same TIME_TAG value. And the use of the object only allows one instance of the indicator per chart; multiple indicators will get the same ID unless you put all possible parameters into the IndicatorShortName.
please try..
if you put 5 indi in different setting with 1 template..
ex.. time value is 111111000
in window 1 will show 1111110001in window 5 will show 1111110005
because i include the window number
ObjectSetText(name,DoubleToStr(TimeCurrent(),0)+DoubleToStr(wind,0),9,"Arial",Yellow);
multiple indicators will get the same ID unless you put all possible parameters into the IndicatorShortName.
yes.. it will be good to be considered.
but i think it will be easy for a master coder like OVO and You
if you put 5 indi in different setting with 1 template..