Hello,
1.) How to put an arrow, change candle color or draw a line (vertical or horizontal) for easily spotting occurrence(s) of *same* HIGHs or *same* LOWs of two or more candles of any time frame.
So that, Just by eyeballing charts one can figure out candles making same Highs or Lows.
2.) Also, for Intraday charts how to "restrict", finding same Highs or Lows for current day only.
Note: By *same* I mean within specific min/max range. e.g. High of one candle could be 1.05 and other candle's High could be 1.15 and they both should be regarded as *same* Highs
(here min is 0.05 and max is 0.15).
1/ You can plot an arrow by typing the following line for example:
cond = absolute(high - high[1]) < 0.05; // You type your condition here
PlotArrow(cond, "", BelowLow, colorRed);
2/ You create the same condition and add the following rule:
lastday = day() == lastvalue(day()) && month() == lastvalue(month()) && year() == lastvalue(year());
cond = cond && lastday;
Hello, I tried following from your suggested code to get arrows plotted when there are same Lows:
cond1 = absolute(histoprice(_low,0) - low) == 0; // i want exact same low
PlotArrow(cond1, "", belowLow, colorRed);
But, I only want to plot arrows when there are _atleast_ 2 same lows.
Above code shows arrows at every single new low made on the chart, which is redundant for me (as chart gets filled with arrows).
Yes you can. Why don't you try it on a chart and see for yourself.
You can click on the "Add Indicator" button and see all the available functions, their description and parameters.
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.