Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Equivolume Candles?
Collapse
X
-
Originally posted by jackh View PostAny news yet on whether these will be included in Version 7?
RayNinjaTrader Customer Service
Comment
-
This is how others do it. Dont know if it can be used
Cheers, W
http://www.ensignsoftware.com/espl/espl15.htm
This example implements an EquiVolume plot on a chart. It not intended to update in real-time or to be persistent by redrawing itself when a chart repaints. It will draw an EquiVolume image on a chart when the #9 button on the script editor is clicked.
Cut the script from this page and paste it into the ESPL Script editor. Click on the #9 button on the script editor form to execute.
procedure EquiVolume;
var
i,xPos,iVolRange,iBarIndex: integer;
OO,HH,LL,CC,x,cl: integer;
begin
if FindWindow(eChart)>0 then
begin
i:=BarEnd;
xPos:=IndexToX(BarEnd);
iVolRange:=Highest(eVolume,BarEnd,BarEnd,iBarIndex ,1,0);
while (i>1) and (xPos>0) do
begin
OO:=PriceToY(Open(i));
HH:=PriceToY(High(i));
LL:=PriceToY(Low(i));
CC:=PriceToY(Last(i));
if (OO < CC) then cl:=clRed else cl:=clLime;
SetPen(cl);
SetBrush(cl);
x:=20*Volume(i) div iVolRange; if x=0 then x:=1;
Rectangle(xPos-x,HH,xPos,LL);
SetPen(clBlack);
MoveToLineTo(xPos-x div 2,CC,xPos,CC); {close}
MoveToLineTo(xPos-x,OO,xPos-x div 2,OO); {open}
xPos:=xPos-x-2;
dec(i);
end;
end;
end;
{**********Main Program**********}
begin
if who=9 then EquiVolume;
end;
Notes: i is the index for the bar records and initialize to start at the last bar on the chart.
xPos is the horizontal plotting position.
iVolRange is the largest volume for the bars in the chart's data set.
The while statement will loop until we run out of bars or until the plot reaches the left edge of the chart.
OO, HH, LL, CC are the vertical plot positions on the chart for the prices from bar( i ).
Depending on the open vs. close relationship, choose a color for the bar.
x will be the width of the bar up to a maximum of 20 pixels.
The Rectangle function draws the bar for height and width and colors the interior of the rectangle.
MoveToLineTo draws a line in black for the close and open tick hashes.
Step the plot position to the left and decrement the index i.
Last edited by Willem; 09-27-2009, 06:28 AM.
Comment
-
3rd Party Add On available for Equivolume Bars
Here's a 3rd party add-on for Equivolume from indicatorwarehouse. http://www.indicatorwarehouse.com/Equivolume-Bars.htm
I may have to buy it - seems like it should work great looking for dry volume (thin bars) before going long/short maybe using other indicators.
Comment
-
Check out edsvolpricebar in the file sharing area for indicators. I tried loading it this weekend when not connected and it didn't seem to work, but I believe its intention is to plot equivolume bars. It is a very good feature and I strongly recommend it go into NT7.
Also Point and Figure with nicer drawing options than 0 and X and ability to shrink them into solid bars of different color when zooming out the chart to view more data every once in a while.Last edited by cclsys; 11-01-2009, 08:46 AM.
Comment
-
are you guys over at ninja planning on adding BASIC equivolume. for a troupe of programmers this should be a breeze. if you do your homework you'll notice that any PROFESSIONAL level package has this.
and that implementation over at indicator warehouse does NOT look correct at all. that is some proprietary formula to calculate the bars. ninja should use richard arms original formula.
Comment
-
Hi,
I've modified the existing out-of-the-box Candle so it scales the width according to what the volume is. Try sticking this file in: Documents\NinjaTrader 7\bin\Custom\Type, open an indicator NinjaScript, compile and restart.
CandleVol.cs
The specified barwidth in the settings is used as the maximum width so you could try setting it to 9-10 something.
Note: I've only tried it in NinjaTrader 7.
RegardsLast edited by klassej; 01-27-2010, 12:18 PM.
Comment
-
Originally posted by klassej View PostHi,
I've modified the existing out-of-the-box Candle so it scales the width according to what the volume is. Try sticking this file in: Documents\NinjaTrader 7\bin\Custom\Type, open an indicator NinjaScript, compile and restart.
[ATTACH]9085[/ATTACH]
The specified barwidth in the settings is used as the maximum width so you could try setting it to 9-10 something.
Note: I've only tried it in NinjaTrader 7.
Regards
Comment
-
Thanks. What's the secret to becomming a beta tester? I've tried signing up a couple of times. Looking forward to using CandleVol when v7 is released - wish I could try it out now.
I tried in v6.5 and got some errors - guessing a newer version of the framework is being used in v7.
Comment
-
Originally posted by dwhall View PostThanks. What's the secret to becomming a beta tester? I've tried signing up a couple of times. Looking forward to using CandleVol when v7 is released - wish I could try it out now.
I tried in v6.5 and got some errors - guessing a newer version of the framework is being used in v7.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
27 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
32 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:33 PM
|
||
Started by wzgy0920, 04-23-2024, 09:53 PM
|
2 responses
49 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:29 PM
|
||
Started by Kensonprib, 04-28-2021, 10:11 AM
|
5 responses
193 views
0 likes
|
Last Post
by Hasadafa
Yesterday, 10:19 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
11 responses
3,235 views
0 likes
|
Last Post Yesterday, 08:07 PM |
Comment