Click here to Login





                                                   Logic for GapUp() & GapDown() functions

  0

0
Obuli Govindaraju
2012-01-18 16:09:15


What is the logic for Logic for GapUp() & GapDown() functions?

When I plot a using "PlotArrow(GapUp(),"Up",BelowLow,colorBlue)". I am not seeing the results I expect to see.

For example does GapUp() returns 1 only when a price gaps up and the gap is not closed the same day???



QuantShare
2012-01-19 05:27:01

  0

Best Answer
Yes, that is what GapUp indicator returns.

It returns 1 if today's low is higher than yesterday's high.

Are you looking for a different indicator?



Obuli Govindaraju
2012-01-19 11:08:45

  0

That is interesting because I thought a gap up is defined if today's open is greater than yesterday's close.


umair
2013-02-06 17:26:05

  0


umair
2013-02-06 17:26:50

  0

I agree w/ Obuli


umair
2013-02-06 17:34:35

  0

But I think this could be the solution:

HistoPrice(_Open,0) > HistoPrice(_close,1); for Gap up

HistoPrice(_Open,0) < HistoPrice(_close,1); for Gap down



No more messages
0




Reply:

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"










QuantShare

Trading Items
Strategy Indicator - Percent winning trades for a trading rule
FII & DII - Foreign and Domestic Institutional Investors
Open Interest Data for Equity, Index and Futures Securities
5-Minute Historical Intraday Data for Forex, Indices and Futures/...
EOD Quotes Data for Hong Kong Stocks and ETFs

How-to Lessons
How to display the number of stocks per day for different RSI gro...
How to download EOD quotes for active and valid stocks only
How to get stocks for a particular index using the global script
How to add future bars to plan for market scenarios
How to screen for stocks having a high correlation with the Dow J...

Related Forum Threads
how to creat support & resistance level for n days?
QS language functions color & font
Custom Fitness Functions for Walk Forward Testing
Code for built-in TA functions
Peak / trough indicators and issue with Functions

Blog Posts
New Ranking and Percentile Composite Functions
Create custom metrics for the statistical data analysis tool
Trading Indicators using the Rank and Percentile functions
Creating and managing notes for your stocks
Download historical EOD data for the stock, futures, ETF and Fore...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
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.