NexusFi: Find Your Edge


Home Menu

 





Pullback Column Analyzer /acsil/


Discussion in Sierra Chart

Updated
    1. trending_up 1,688 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments




 
 

Pullback Column Analyzer /acsil/

 
 
slickiam's Avatar
 slickiam 
Tomsk, Russia
 
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435

Hi All

It is possible to use sc.PullbackVolumeAtPrice just the same way as sc.VolumeAtPriceForBars to analyze a pullback column and fire up an alert

this is the very simple example:

 
Code
#include "sierrachart.h"

SCDLLName("PcolmnVol") 

SCSFExport scsf_PcolmnVol(SCStudyGraphRef sc)
{
			
	if (sc.SetDefaults)
	{
		
		sc.GraphName 		= "PcolmnVol";
		sc.GraphRegion		= 0;
		sc.StudyDescription   = "Pullback column Volume  scanner  >> beta1 <<  @ganz";
		sc.AutoLoop 		= 0;
		sc.FreeDLL 		= 1;  
		
		sc.MaintainVolumeAtPriceData = 1;  
							
		sc.Input[0].Name = "Volume: ";
		sc.Input[0].SetInt(111);
		sc.Input[0].SetIntLimits(0, 2123456789);
		
		sc.Subgraph[0].Name 			 = "Volume";	
				
		return;
	}
		
	float 		 Price;
	int 		Volume;
		
	s_VolumeAtPriceV2 *p_PullbackVolumeAtPrice;
	int Count = sc.PullbackVolumeAtPrice-> GetSizeAtBarIndex(0);
	
	for (int ElementIndex = 0;ElementIndex < Count; ElementIndex ++)
	{						
			sc.PullbackVolumeAtPrice->GetVAPElementAtIndex(0, ElementIndex, &p_PullbackVolumeAtPrice);

			if (p_PullbackVolumeAtPrice)
			{								 
				Volume 	 = p_PullbackVolumeAtPrice->Volume;
				Price          = p_PullbackVolumeAtPrice->PriceInTicks * sc.TickSize;
				
				if ( Volume > sc.Input[0].GetInt() )  sc.Subgraph[0][sc.Index] = (float) Price;
				
			}												
	}
}

Scientia Libertas Prosperitas
Started this thread

 



Last Updated on October 18, 2013


© 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