
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
hi again.
i learned about my request.
i want to check last low and high of two closed currency pair (for example: 'USDCHF' and 'USDJPY').
if low and high in first currency pair less than second currency pair then draw a red bar else if low and high in first currency pair greater than second currency pair then draw a green bar.
i want to repeat it in every 1 minute.
how to do this?
USDJPY is always going to be "greater" than USDCHF
USDJPY is always going to be "greater" than USDCHF
i said for example.
i said for example.
You are trying to compare apples with pairs (also an example)
USDJPY is always going to be "greater" than USDCHF
i said for example.
As Mladen has hinted at with your 2 examples (or any 2 currency pairs), there is absolutely no point in comparing the highs and lows of different currency pairs.
As Mladen has hinted at with your 2 examples (or any 2 currency pairs), there is absolutely no point in comparing the highs and lows of different currency pairs.
can you write this code or not? compare for example USDCHF and USDJPY together and draw that chart.
Please help me.
i write this.
Please help me.
Your code seems ok, go on.
i write this.
Please help me.
What is this for?
int Counted_bars=prev_calculated;
You are counting all bars every tick
Very inefficient and you will get an array out of range - should be
also rates_total may well not apply to the pair that is not the chart pair.
I don't know what the reasoning is behind your calculations but the indicator may be better placed in a separate window, otherwise the lines may be off the chart.
Also you are assigning values to only 1 buffer depending on the outcome of your calculations. A line buffer needs consecutive values in order to be drawn, so you may get blank periods if the results are oscillating around zero.
how to draw my bars in chart?
and how do it in separate chart?
if i need array then how to add new number to new cell of array?need to have any array?