Click here to Login

                                                   Same High Low in charts


Hmt Ptl
2016-12-12 12:51:20

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).


2016-12-13 03:33:42


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;

Hmt Ptl
2016-12-14 06:19:44


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).

2016-12-15 03:31:06


"histoprice(_low..." gets current day's low in an intraday time frame.

2 same lows is:
cond = absolute(low - low[1]) < 0.05;

Hmt Ptl
2016-12-15 03:37:16


I want to plot arrows on candles having atleast 2 same *lowest* low for the current day, I don't want all the candles with same lows....

can i do something like:

cond = absolute(llv(low,?) - low[1]) < 0.05;

let me know!

2016-12-16 04:23:10


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.

No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Time-series location relative to its high and low
High to low stock pattern for the close price
High Low Chart - Drawing Item
Percent High Low Range as a measure of stock volatility
Filter high and low spikes

How-to Lessons
How to plot a stock using different periods in the same chart
How to plot two different time frames in the same chart
How to drag & drop indicators in charts
How to display two stocks on the same chart
How to screen for stocks having a high correlation with the Dow J...

Related Forum Threads
trend line stick to high and low
Previous day high and low in in intraday chart
Highest high and Lowest low difference intraday chart
charts disappeared
Charts Stuck On Showing Only 1 bar

Blog Posts
How to filter quotes data from high and low price spikes
Lock, Link and Undock your Charts
Charting & Scripts - Manage stock charts using the global script
How to Adjust the Time Displayed in your Intraday Charts
Same chart, different symbols

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2024
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

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.