Has anybody seen Hawkeye indicator equivalent in afl?

#21
hi KelvinHand

While I got mt4 codes for indicators,still cant move an inch becoz we got stuck due to a missing dll file called
Hawkeye2012MT.dll

Well,I hope you have been able to get the TS eld codes and look at them.
Since I am not a tradestation user,I cant move forward .

status = Train halts.
Regards
ford
Hi ford7k,

Good initiative bud! I have Hawkeye Professional package but for NinjaTrader 7. hxxps://hawkeyetraders.infusionsoft.c0m/app/storeFront/showProductDetail?productId=179 (replace x=t, 0=o in the link)

The package contains a dll HawkeyeNinja2012.dll. Do let me know if you need it to proceed with further developments.

Thanks.:)
Phantom.
 
#22
Hi Phantom

Thank you for the hint and initiative of offering to help.
kind of you.
We start thinking nothing is impossible and traderji experts always did their best to keep that spirit alive.
Ninjatrader is a Casoni territory-but for his efforts,support resistance zones
afl could not have come,not to forget trash to push it thru into advanced zone.

I have no idea of Ninja.
We request him to see if he can help.


I have asked some tradestation guy to help with ELD code decoding,
once that is done,we get basic concept clear-then the roadblock clears.
All we need is basic contents of volume bar segregation,heat map and trend dots.
it will unfold.matter of time.

best regards
ford
 
#23
Hi freinds
here is an attempt to take a look at volume and grade it by its std deviation in the lines of hawkeye volume indicator.
it is not same just a trial n error thing.
---------------
experts can perfect it
-------------------
HTML:
grid_day = IIf(Day()!=Ref(Day(),-1),1,0); 
Plot(grid_day,"",colorGrey50,styleHistogram|styleThick|styleNoLabel|styleOwnScale);
SetChartBkColor(64);


dynamic_color = IIf( Close < Open, colorRed,IIf(Close>Open, colorBrightGreen,colorGrey50 )); 
Plot( Volume, "Color volume", dynamic_color, styleHistogram | styleThick ); 
MAV20 =MA(V,20);MAv50 =MA(V,50);
Plot(MAV20,"MA(V,20)",colorLightBlue,styleThick);
Plot(2*MAV20,"2*MA(V,20)",colorPaleGreen,styleThick);
Plot(3*MAV20,"3*MA(V,20)",colorBrightGreen,styleThick);
Plot(5*MAV20,"5*MA(V,20)",colorOrange,styleThick);
Hivolume =1.5*MAv20 ;ultravolume =4*MAv20 ;
_SECTION_BEGIN("Bollinger Bands volume");
PV = ParamField("Volume field",-1);
Periods = Param("Periods", 20, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
//Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
Plot( BBandTop( PV, Periods, Width ), "BBTop" + _PARAM_VALUES(), colorRed, Style ); 
Plot( BBandBot( PV, Periods, Width ), "BBBot" + _PARAM_VALUES(), colorGreen, Style ); 
_SECTION_END();
Width3 = Param("Width3", 3, 0, 10, 0.05 );
//Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
Plot( BBandTop( PV, Periods, Width3 ), "BBTop" + _PARAM_VALUES(), colorRed, Style ); 
Plot( BBandBot( PV, Periods, Width3 ), "BBBot" + _PARAM_VALUES(), colorGreen, Style ); 
Width5 = Param("Width5", 5, 0, 10, 0.05 );
//Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
Plot( BBandTop( PV, Periods, Width5 ), "BBTop" + _PARAM_VALUES(), colorDarkRed, Style ); 
Plot( BBandBot( PV, Periods, Width5 ), "BBBot" + _PARAM_VALUES(), colorGreen, Style ); 
//PlotShapes(IIf(Cross(V,BBandTop(pv,20,2)) , shapeSmallCircle, shapeNone), colorBrightGreen, 0,High, Offset=25);//-15
//PlotShapes(IIf(Cross(V,BBandTop(pv,20,4)) , shapeSmallCircle , shapeNone), colorRed, 0, High, Offset=35);
what is yet to be done?
mark high volume bars with a green dot on top and mark high volume selling bars with a red dot on top.
a powerbuysignal may occur after 4 green buy volume bars happen. similarly a power sell signal can occur after 4 red sell volume bars.


Next step to hawkeye heat Map
HeatMap uses momentum and combines 3 different speeds of it to bring a color ribbon of net outcome.

The concept is not clear.
may be the formula looks into multiple tf and plots mom of HTF on LTF chart.
however a starting attempt is made here to plot 3 levels of momentum or trendspeeds here.
This is just something an attempt not perfect-long way to go.


EXPERTS CAN PERFECT IT.
MOMENTUM -TRENDSPEED
-----------------------------------------
SetChartBkColor(64);
function Momentum( array, period )
{
return array - Ref( array, -period );
}

Plot( Momentum( Close, 10) , "mom10", colorBrightGreen );
Plot( Momentum( Close, 20),"mom 20", colorRed );
MC30 =Momentum( Close, 30 );
//Plot( Momentum( Close, 30 ),"mom 30", colorYellow );
PlotOHLC(MC30,MC30,0.9950*MC30,0.9950*MC30," ",colorYellow,styleCloud);

--------------------------------------------------------------------------
Looking for help and pushing initiative based hints- not dumb questions as I already have too many of them on my mind.
 
Last edited:
#24
hi
here is MTF MOMENTUM chart for HEATMAP

HTML:
function Momentum( array, period )
{
  return array - Ref( array, -period );
}
MC10 =Momentum( Close, 10 );

//Plot( Momentum( Close,  10) ,	"mom10", colorBrightGreen  );
//Plot( Mc10 ,	"Mom10-ON 5MIN NOW", colorBrightGreen  );

// Plot( Momentum( Close, 20),"mom 20",  colorRed );
MC30 =Momentum( Close, 30 );

//Plot( Momentum( Close, 30 ),"mom 30",  colorYellow );
//PlotOHLC(MC30,MC30,0.9950*MC30,0.9950*MC30," ",colorYellow,styleCloud);
MC10 =Momentum( Close, 10 );
SetChartBkColor(64);
//==================================================
TimeFrameSet(0.5*inHourly);
Mta30=MC10;
TimeFrameRestore();
taa30=TimeFrameExpand(Mta30,0.5*inHourly,expandFirst);
//====================================================
TimeFrameSet(inHourly);
MtaH=MC10;
TimeFrameRestore();
taaH=TimeFrameExpand(MtaH,inHourly,expandFirst);
//========================================================

TimeFrameSet(inDaily);
MtaD=MC10;
TimeFrameRestore();
taaD=TimeFrameExpand(MtaD,inDaily,expandFirst);

TimeFrameSet(inWeekly);
MtbW=MC10;
TimeFrameRestore();
tbbW=TimeFrameExpand(MtbW,inWeekly,expandFirst);

TimeFrameSet(inMonthly);
MtcM=MC10;
TimeFrameRestore();
tccM=TimeFrameExpand(MtcM,inMonthly,expandFirst);
//Plot(C,"",2,64);
Plot(taa30,"30 MIN",colorAqua,1);
Plot(taaH,"Hourly",colorCustom12,1);


Plot(taaD,"daily",3,1);
//Plot(tbbW,"weekly",4,1);
//Plot(tccM,"monthly",colorYellow,1);
//======================================
ok
NOW WE GUESSED THREE TRENDSPEEDS.
but HOW TO COMBINE THESE 3 AND GET A SINGLE OUTPUT to plot a colored ribbon at chart bottom?
.
 

casoni

Well-Known Member
#25
Hello ford,

are you thinking/looking for something like this ?

if all 3 is above 0 LINE , blue color ,
if all 3 below 0 LINE red color else grey color


if yes then below code will work

Plot(0,"",2,32);
Col=IIf(taa30>0 AND taah>0 AND taad>0 ,colorBlue,
IIf(taa30<0 AND taah<0 AND taad<0 ,colorRed,31));
Plot(2, "ribbon", Col, styleOwnScale| styleHistogram|styleNoLabel,-0.5,100);

** ford .
i have never used NT , don't know how this sw looks like :)
supply -demand idea came by looking at the image , trash had posted
 
Last edited:
#26
Hi Casoni

Thank you for the code line and hint.
Looking for the Hawkeye basic codes for volume,trend dot(5bar high-low pivots),heatmap(intgration of three momentum).

Hawkeye seems to have a simpler les confusing approach based on volume
as leading indicator unlike tradeguider-vpa stuff.
I found the MT4 rewritten codes and Tradestation ELD codes,these both are
beyond my zone.
Hope some help comes and we make these in afl in a short time to come.
should you find some clues please help.
regards
ford
 
Last edited:

casoni

Well-Known Member
#27
ford,
kindly paste
" Tradestation ELD codes"
in text form , so that other members can try ,
i know kelvin hand / trash are good in understanding MT4 codes ,
they can convert , lets hope they help .
Thank you
 
Last edited:
#29
hI FRIENDS

Volume can be seen from a different perspective.
Most traders ignore volume. Big mistake! Big! Huge!


Volume has to be the most underrated market variable used in technical analysis. But if you know how to analyze and interpret it, you'll be able to see market turning points develop and anticipate pullbacks and trend changes.

You can figure out whether the Professionals are buying or selling by analyzing:

Volume transacted at the bid or the ask
High to low range of the bar, and
Average trade size.

The Better Volume indicator improves
on your typical volume histogram
by coloring the bars based on 5 criteria:
5 criteria are
a)Volume Climax Up – high volume, high range, up bars (red)
b)Volume Climax Down – high volume, high range, down bars (white)
c)High Volume Churn – high volume, low range bars (green, PaintBar blue)
d) Low Volume – low volume bars (yellow)
e) Volume Climax plus High Volume Churn –
both the above conditions (magenta)

When there are no volume signals the default histogram bar coloring is cyan. The Better Volume indicator also comes in a PaintBar version, so you can see the coloring on the price bars themselves.

--------------------------------------------------------------
BETTER VOLUME
EXPLANATION VIDEO
http://emini-watch.com/free-stuff/volume-indicator/

AFL
------------------------------
HTML:
SetChartBkColor(16 ) ;
//bettervolume
_SECTION_BEGIN("EMA");
P = Volume;
Periods = Param("PeriodsEMA", 9, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), colorRed, styleLine | styleThick );
_SECTION_END();

Period = Param("Period", 10, 2, 300, 1, 10 );;
LowColor = colorYellow;
ClimaxColor = colorRed;
ChurnColor = colorGreen;
ClimaxChurnColor=colorBlue;
LowChurnColor= colorWhite;

Value1 = V;
Value2 = V*(H-L);
Value3 = V/(H-L);

BarColor = IIf( (Value1 == LLV(Value1,Period)), LowColor,

IIf( (Value2 == HHV(Value2,Period)), ClimaxColor,

IIf( (Value3 == HHV(Value3,Period)), ChurnColor,

IIf( ((Value2 == HHV(Value2,Period) AND (Value3 == HHV(Value3,Period)))), ClimaxChurnColor,

IIf( (Value3 == LLV(Value3,Period)), LowChurnColor, colorBlueGrey)))));

_SECTION_BEGIN("Volume");
Plot( Volume, _DEFAULT_NAME(), BarColor, ParamStyle( "Style", styleHistogram | styleThick, maskHistogram ), 2 );
_SECTION_END();
here the volume analysis is tied up with ask and bid
How do you handle this?

Volume has 5 criteria

Better Volume Indicator: Summary

Bottom


Start Up Trend



Up Trend Continue
Top


Start Down Trend



Down Trend Continue



Indicator Color
Volume Climax Up Yes Yes Yes Red
Volume Climax Down Yes Yes Yes White
High Volume Churn Yes Yes Green/Blue
Hi Vol Churn + Climax Yes Yes Magenta
Low Volume Yes Yes Yes Yes Yellow
Better Volume Indicator: Summary

The table above is a quick reference guide that shows what volume indicator signals to watch for at different stages of the market:

Market tops are characterized by Volume Climax Up bars, High Volume Churn and Low Volume Up bars (also called Testing).
Market bottoms are characterized by Volume Climax Down bars, High Volume Churn and Low Volume Down bars (Testing).
Pullbacks, in either up or down trends, are similar to market topping or bottoming patterns, but shorter in duration and with simpler volume patterns.

Remember, this method of identifying turning points using volume is even more powerful when combined with non-correlated indicators, such as the Hilbert Sine Wave.
 
Last edited:
#30
Hello

The MT4 code just makes use of the stuff coded in the referenced dll file
check for all the functions/procedures named as H9_ . . . in the MT4 code . . .

If the description of logic behind these indicators is available or complete code on any of the platform then we can try to code it for amibroker . . .

:) Happy



here the volume analysis is tied up with ask and bid
How do you handle this?
choose the lowest TF possible and then use

Close > Open for uptick and
Close < Open for downtick
 
Last edited:

Similar threads