NexusFi: Find Your Edge


Home Menu

 





Joe Ross Hook' and 123's


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Big Mike with 2 posts (0 thanks)
    2. looks_two jimfini with 2 posts (4 thanks)
    3. looks_3 cbritton with 1 posts (2 thanks)
    4. looks_4 chiyu219 with 1 posts (0 thanks)
      Best Posters
    1. looks_one jimfini with 2 thanks per post
    2. looks_two cbritton with 2 thanks per post
    3. looks_3 Shaban with 1 thanks per post
    4. looks_4 swingbatter with 1 thanks per post
    1. trending_up 12,573 views
    2. thumb_up 8 thanks given
    3. group 4 followers
    1. forum 9 posts
    2. attach_file 2 attachments




 
Search this Thread

Joe Ross Hook' and 123's

  #1 (permalink)
 jimfini 
Sydney NSW
 
Experience: Intermediate
Platform: Multicharts
Trading: AUD/USD
Posts: 5 since Sep 2010
Thanks Given: 5
Thanks Received: 4

Hello all
Below is code that i got from -> RE: Ross Hook, Omega TradeStation Email Archive | PureBytes.Com.
New to multicharts and Easy language . Get errors in multicharts not sure why.. Thanks



A Ross Hook. Trade the breakout of the point.

|
| |
|
|

I have the following Ross Hook indicator. Never used it and have no idea
where I got it. Don't even know how or if it works. I just collect this kind
of thing with the idea of looking it over before I die. Probably won't.

Use at your own risk.

JFB
Shaven Heads Trading
NYC

------------------------------------------
INPUT: GannDays(4),SigExpir(50);
VAR:
MarketHigh(-99999),MarketLow(999999),PHi(0),PLo(0),Idx(0),PrevPHiBar(0),PBar
Count(0),LowestPLo(0),LowestPLoBar(0),PLoFound(FALSE),Lo2HiDays(0),

TempBuyPrice(0),TempBuyBar(0),TempBuyON(FALSE),PrevPLoBar(0),HighestPHi(0),H
ighestPHiBar(0),PHiFound(FALSE),Hi2LoDays(0),
TempSellPrice(0),TempSellBar(0),TempSellON(FALSE);

ARRAY: PHiBar[1500](0),PHiPrice[1500](0),PLoBar[1500](0),PLoPrice[1500](0);



PLoFound=FALSE;
PHiFound=FALSE;

If High>MarketHigh Then {Capture Highest High of Market}
MarketHigh=High
Else
MarketHigh=MarketHigh[1];

If Low<MarketLow Then {Capture Lowest Low of Market}
MarketLow=Low
Else
MarketLow=MarketLow[1];

If High<High[1] and High[1]>High[2] {Identify Privot Highs}
Then Begin
PHi=PHi+1; {Pivot High Counter}
PHiBar[Phi]=CurrentBar -1; {Most Recent Pivot High Bar}
PHiPrice[PHi]=High[1]; {Most Recent Pivot High Price}

If Low>Low[1] and Low[1]<Low[2]
Then Begin
PLo=PLo+1;
PLoBar[PLo]=CurrentBar-1;
PLoPrice[PLo]=Low[1];
End;

If PHiBar[PHi]=CurrentBar -1 and PHiPrice[PHi]<MarketHigh and PHi>1 and
PLo>1
Then Begin
For Idx=PHi-1 DownTo 1
Begin
If PHiPrice[PHi]<PHiPrice[Idx]
Then Begin
PrevPHiBar=PHiBar[Idx];
Idx=1;
End;
End;

PBarCount=PHiBar[PHi]-PrevPHiBar;

If PBarCount>GannDays
Then Begin
LowestPlo=PLoPrice[PLo];
LowestPLoBar=PLoBar[PLo];

For Idx=PLo-1 DownTo 1
Begin

If PLoBar[Idx]>PrevPHiBar
Then Begin
If LowestPLo>PLoPrice[Idx]
Then Begin
LowestPLo=PLoPrice[Idx];
LowestPLoBar=PLoBar[Idx];
PLoFound=TRUE;
End;
End Else
Idx=1;
End;
End;

If PLoFound
Then Begin
Lo2HiDays=PHiBar[Phi]-LowestPLoBar;
If Lo2HiDays>=GannDays and PHiBar[PHi]>TempBuyBar
Then Begin
TempBuyPrice=PHiPrice[PHi];
TempBuyBar=PHiBar[PHi];
TempBuyOn=TRUE;
End;
End;
End;


If TempBuyON
Then Begin
If High<TempBuyPrice and CurrentBar-TempBuyBar<=SigExpir
Then
Plot1(TempBuyPrice+1*MinMove POINT,"Phi")
Else
TempBuyON=FALSE;
End;


If PLoBar[PLo]=CurrentBar-1 and PLoPrice[PLo]>MarketLow and PHi>1 and PLo>1
Then Begin
PBarCount=0;
For Idx=PLo-1 DownTo 1
Begin
If PLoPrice[PLo]>PLoPrice[Idx]
Then Begin
PrevPLoBar=PLoBar[Idx];
PBarCount=PLoBar[PLo]-PrevPLoBar;
Idx=1;
End;
End;

If PBarCount>GannDays
Then Begin
HighestPHi=PHiPrice[PHi];
HighestPHiBar=PHiBar[PHi];
For Idx=PHi-1 DownTo 1
Begin
If PHiBar[Idx]>PrevPLoBar
Then Begin
If HighestPHi<PHiPrice[Idx]
Then Begin
HighestPHi=PHiPrice[Idx];
HighestPHiBar=PHiBar[Idx];
PHiFound=TRUE;
End;
End Else
Idx=1;
End;
End;

If PHiFound
Then Begin
Hi2LoDays=PloBar[PLo]-HighestPHiBar;
If Hi2LoDays>GannDays and PLoBar[PLo]>TempSellBar
Then Begin
TempSellPrice=PLoPrice[PLo];
TempSellBar=PLoBar[PLo];
TempSellOn=TRUE;
End;
End;
End;

If TempSellON
Then Begin
If Low>TempSellPrice and CurrentBar-TempSellBar<=SigExpir
Then Plot2(TempSellPrice-1*MinMove POINT,"PLo")
Else TEMPSellON=FALSE;
End;
End;

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Exit Strategy
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Futures True Range Report
The Elite Circle
Deepmoney LLM
Elite Quantitative GenAI/LLM
 

  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,392 since Jun 2009
Thanks Given: 33,170
Thanks Received: 101,530


Tip
Please post code snippets using the [code]put code in here[/code] code tags. If you are posting an entire indicator, please attach the file where possible instead of cutting and pasting.



Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,392 since Jun 2009
Thanks Given: 33,170
Thanks Received: 101,530


jimfini View Post
Get errors in multicharts not sure why

Post the errors or a screen shot of the errors.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 
cbritton's Avatar
 cbritton 
Atlanta, Georgia
 
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
Posts: 230 since Mar 2010
Thanks Given: 152
Thanks Received: 256

I copied this from the referenced link. It compiles in TS with a few fixes on the line breaks. Here's the code in code blocks:

 
Code
INPUT:  GannDays(4),SigExpir(50);
VAR:
MarketHigh(-99999),MarketLow(999999),PHi(0),PLo(0),Idx(0),PrevPHiBar(0),PBarCount(0),LowestPLo(0),LowestPLoBar(0),PLoFound(FALSE),Lo2HiDays(0),

TempBuyPrice(0),TempBuyBar(0),TempBuyON(FALSE),PrevPLoBar(0),HighestPHi(0),HighestPHiBar(0),PHiFound(FALSE),Hi2LoDays(0),
            TempSellPrice(0),TempSellBar(0),TempSellON(FALSE);

ARRAY: PHiBar[1500](0),PHiPrice[1500](0),PLoBar[1500](0),PLoPrice[1500](0);



PLoFound=FALSE;
PHiFound=FALSE;

If High>MarketHigh Then    {Capture Highest High of Market}
    MarketHigh=High
Else
    MarketHigh=MarketHigh[1];

If Low<MarketLow Then    {Capture Lowest Low of Market}
    MarketLow=Low
Else
    MarketLow=MarketLow[1];

If High<High[1] and High[1]>High[2]    {Identify Privot Highs}
Then Begin
    PHi=PHi+1;        {Pivot High Counter}
    PHiBar[Phi]=CurrentBar -1;    {Most Recent Pivot High Bar}
    PHiPrice[PHi]=High[1];           {Most Recent Pivot High Price}

If Low>Low[1] and Low[1]<Low[2]
Then Begin
    PLo=PLo+1;
    PLoBar[PLo]=CurrentBar-1;
    PLoPrice[PLo]=Low[1];
End;

If PHiBar[PHi]=CurrentBar -1 and PHiPrice[PHi]<MarketHigh and PHi>1 and
PLo>1
Then Begin
    For Idx=PHi-1 DownTo 1
Begin
    If PHiPrice[PHi]<PHiPrice[Idx]
Then Begin
    PrevPHiBar=PHiBar[Idx];
    Idx=1;
    End;
End;

PBarCount=PHiBar[PHi]-PrevPHiBar;

If PBarCount>GannDays
Then Begin
    LowestPlo=PLoPrice[PLo];
    LowestPLoBar=PLoBar[PLo];

For Idx=PLo-1 DownTo 1
Begin

If PLoBar[Idx]>PrevPHiBar
Then Begin
    If LowestPLo>PLoPrice[Idx]
Then Begin
    LowestPLo=PLoPrice[Idx];
    LowestPLoBar=PLoBar[Idx];
    PLoFound=TRUE;
    End;
End Else
    Idx=1;
    End;
End;

If PLoFound
Then Begin
Lo2HiDays=PHiBar[Phi]-LowestPLoBar;
If Lo2HiDays>=GannDays and PHiBar[PHi]>TempBuyBar
Then Begin
    TempBuyPrice=PHiPrice[PHi];
    TempBuyBar=PHiBar[PHi];
    TempBuyOn=TRUE;
    End;
End;
End;


If TempBuyON
Then Begin
    If High<TempBuyPrice and CurrentBar-TempBuyBar<=SigExpir
Then
    Plot1(TempBuyPrice+1*MinMove POINT,"Phi")
Else
    TempBuyON=FALSE;
End;


If PLoBar[PLo]=CurrentBar-1 and PLoPrice[PLo]>MarketLow and PHi>1 and PLo>1
Then Begin
    PBarCount=0;
For Idx=PLo-1 DownTo 1
Begin
    If PLoPrice[PLo]>PLoPrice[Idx]
    Then Begin
    PrevPLoBar=PLoBar[Idx];
    PBarCount=PLoBar[PLo]-PrevPLoBar;
    Idx=1;
    End;
End;

If PBarCount>GannDays
Then Begin
    HighestPHi=PHiPrice[PHi];
    HighestPHiBar=PHiBar[PHi];
    For Idx=PHi-1 DownTo 1
Begin
    If PHiBar[Idx]>PrevPLoBar
Then Begin
    If HighestPHi<PHiPrice[Idx]
Then Begin
    HighestPHi=PHiPrice[Idx];
    HighestPHiBar=PHiBar[Idx];
    PHiFound=TRUE;
    End;
End Else
    Idx=1;
    End;
End;

If PHiFound
Then Begin
    Hi2LoDays=PloBar[PLo]-HighestPHiBar;
    If Hi2LoDays>GannDays and PLoBar[PLo]>TempSellBar
Then Begin
    TempSellPrice=PLoPrice[PLo];
    TempSellBar=PLoBar[PLo];
    TempSellOn=TRUE;
    End;
    End;
End;

If TempSellON
Then Begin
    If Low>TempSellPrice and CurrentBar-TempSellBar<=SigExpir
    Then Plot2(TempSellPrice-1*MinMove POINT,"PLo")
    Else TEMPSellON=FALSE;
End;
End;
I put this on a daily chart of SPY (see attached). I'm not sure what I'm looking at tho. Maybe someone with experience using RH can chime in?

Regards,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Attached Thumbnails
Click image for larger version

Name:	spy_ross_hook.PNG
Views:	1208
Size:	46.3 KB
ID:	26256  
Reply With Quote
Thanked by:
  #6 (permalink)
 jimfini 
Sydney NSW
 
Experience: Intermediate
Platform: Multicharts
Trading: AUD/USD
Posts: 5 since Sep 2010
Thanks Given: 5
Thanks Received: 4

https://www.getfreeebooks.com/wp-content/uploads/Law_of_Charts.pdf

Started this thread Reply With Quote
Thanked by:
  #7 (permalink)
chiyu219
Hong Kong
 
Posts: 5 since Mar 2014
Thanks Given: 3
Thanks Received: 1

Thanks for sharing. do you have the updated working version of this indicator?

Reply With Quote
  #8 (permalink)
 tr8er 
Europe
Market Wizard
 
Experience: Advanced
Platform: TradeNavigator, BookMap
Trading: ES, CL, 6E, 6B
Posts: 704 since Jan 2017
Thanks Given: 220
Thanks Received: 709


chiyu219 View Post
Thanks for sharing. do you have the updated working version of this indicator?

I hope you can see that the post above yours are 10+ years old

Reply With Quote
  #9 (permalink)
swingbatter
Arlington
 
Posts: 18 since Feb 2020
Thanks Given: 6
Thanks Received: 3


chiyu219 View Post
Thanks for sharing. do you have the updated working version of this indicator?

It still works, although not really sure what is shows...

Attached Thumbnails
Click image for larger version

Name:	image_53.png
Views:	234
Size:	195.5 KB
ID:	310992  
Reply With Quote
Thanked by:
  #10 (permalink)
Shaban
Turin + Italy
 
Posts: 194 since Feb 2020
Thanks Given: 24
Thanks Received: 129


Joe Ross' hook should look like it does in these images:

https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=57962

Reply With Quote
Thanked by:





Last Updated on May 19, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts