NexusFi: Find Your Edge


Home Menu

 





median line


Discussion in Platforms and Indicators

Updated
    1. trending_up 6,213 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 13 posts
    2. attach_file 3 attachments




 
Search this Thread

median line

  #11 (permalink)
sr114
Kolkata+India
 
Posts: 27 since Aug 2012
Thanks Given: 10
Thanks Received: 1


TheTrend View Post
Apply this code to an exploration for a ticker.

In the 2nd Col you'll see the date of the yearly high or low IF the 3rd or 4th column is different from 0.


 
Code
NewHigh = H > Ref(HHV(H,250),-1);
NewLow = L < Ref(LLV(L,250),-1);

Filter =1;
AddColumn(IIf(NewHigh,H,0) ,"Yearly High ?");
AddColumn(IIf(NewLow,L,0),"Yearly Low ?");
Hope that helps.

thanx for the code. it explores all the quotes for the desired time period and post all result.

can i filter the zero result and get only the hi or lo dates.

wud i use any filter or put any condition?

regards
sr

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
static margin on the right side of a chart
NinjaTrader
Footprint for strategy Builder
NinjaTrader
Can I use Ehlers Periodogram as the lookback for another …
NinjaTrader
Quantum physics & Trading dynamics
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
16 thanks
GFIs1 1 DAX trade per day journal
14 thanks
Trading with Intuition
11 thanks
The Trading Pit "Futures VIP" Account Journal
11 thanks
TopStepX from TST
10 thanks
  #12 (permalink)
 TheTrend 
Paris, France
 
Experience: Advanced
Platform: Amibroker
Trading: Futures, Stocks
Posts: 95 since Jun 2011
Thanks Given: 118
Thanks Received: 105


sr114 View Post
thanx for the code. it explores all the quotes for the desired time period and post all result.

can i filter the zero result and get only the hi or lo dates.

wud i use any filter or put any condition?

regards
sr

You can filter that in Excel very easily or re-formulate the code to give you buy or sell signals and then run a scan i/o an exploration.

Reply With Quote
  #13 (permalink)
 TheTrend 
Paris, France
 
Experience: Advanced
Platform: Amibroker
Trading: Futures, Stocks
Posts: 95 since Jun 2011
Thanks Given: 118
Thanks Received: 105


Actually no need to run a scan, just use this updated code for exploration:

 
Code
NewHigh = IIf( H > Ref(HHV(H,250),-1),1,0);
NewLow = IIf(L < Ref(LLV(L,250),-1),1,0);
Clr = IIf(NewHigh,colorGreen,colorRed);

Filter =NewHigh ==1 OR  NewLow ==1;
AddColumn(IIf(NewHigh,H,L) ,"Yearly High / Low",1.2,colorDefault,Clr);
It gives you 1 column with green cells for highs and red cells for lows, how nice is it ?

Attached Thumbnails
Click image for larger version

Name:	High - Low.png
Views:	181
Size:	18.2 KB
ID:	88486  
Reply With Quote
  #14 (permalink)
sr114
Kolkata+India
 
Posts: 27 since Aug 2012
Thanks Given: 10
Thanks Received: 1


TheTrend View Post
Actually no need to run a scan, just use this updated code for exploration:

 
Code
NewHigh = IIf( H > Ref(HHV(H,250),-1),1,0);
NewLow = IIf(L < Ref(LLV(L,250),-1),1,0);
Clr = IIf(NewHigh,colorGreen,colorRed);

Filter =NewHigh ==1 OR  NewLow ==1;
AddColumn(IIf(NewHigh,H,L) ,"Yearly High / Low",1.2,colorDefault,Clr);
It gives you 1 column with green cells for highs and red cells for lows, how nice is it ?

The Trend

thats was a big help for me. a heartfelt gratitude for u

regards
sr

Reply With Quote




Last Updated on September 11, 2012


© 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