| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #17 | ||
![]() | Re: Building a VolumeProfile Indicator with EasyLanguage Code: If date = date[1] And StartPrice > 0 Then Begin
Value2 = AvgPrice - StartPrice;
V2VolLevel = 5000+(Value2*(1/(minmove/pricescale)));
PVPVolArray[V2VolLevel] = PVPVolArray[V2VolLevel] + MyVolume;
{Plot new volume level here volume is PVPVolArray[V2VolLevel]
the level to plot at can be got from V2VolLevel}
If PVPVolArray[V2VolLevel] > PVPVolume Then Begin
PVPVolume = PVPVolArray[V2VolLevel];
PriceDiff = 5000-V2VolLevel;
PVPPrice = StartPrice - (PriceDiff*(minmove/pricescale));
{If we are here then we have a new peak volume, you might need
to rescale the chart unless you used a 'fixed scaling'}
End;
End; | ||
| |
|
| | #18 | ||
![]() | Re: Building a VolumeProfile Indicator with EasyLanguage Quote:
Now I've to loop it to add new volume when price touches again a map price level. Could be a way of doing that to create a range of the day sets as the map price level which identifies High and Low of the day sets as integer as V2VolLevel ? In this way I could create a Loop For X = Low of the day range To High of the day range and ADD Volume each time prices touch a price of the range a new time. Something like: For X = LowRange To HighRange-1 PVPVolArray[X] = PVPVolArray[X] + MyVol; This step is not simple for me and my programming experience. Sorry !!! ![]() Quote:
![]() I'm very sorry, but here come out all my limits in programming | ||
| |
|
| | #19 | ||
![]() | Re: Building a VolumeProfile Indicator with EasyLanguage An alternate way is that you have a parameter, N bars (or pixels or charcters) per X volume. That is an absolute scale. So for the ES you may have 1 'bar' (or ascii char) per 250,000 contracts. Using this method your chart simply 'grows' from the left. Every time the peak volume increases by 250,000 contracts you expand your chart 1 more 'chunk'. Of course this has the potential problem of the profile growing bigger than the screen but you could have a simple test to see if that has occurred and truncate it. The user would see that the bars are occupying the whole screen and could then manually change the scaling to say 1 'bar' per 400,000 contracts (or whatever). I like this approach. | ||
| |
|
| The Following User Says Thank You to BlowFish For This Useful Post: | ||
Tams (11-02-2009) | ||
| | #20 | ||
![]() | Re: Building a VolumeProfile Indicator with EasyLanguage Quote:
It could be set by an input parameter in the Inputs panel, so if you enlarge your X axis to watch the chart wide, you could choose your input parameter to enlarge even your Volume profile or compress it if you'd like to watch the chart more tight. The second approach is better | ||
| |
|
| | #21 | ||
![]() | Re: Building a VolumeProfile Indicator with EasyLanguage from the 'keep it simple' school: | ||
| |
|
| The Following User Says Thank You to Frank For This Useful Post: | ||
Tams (11-02-2009) | ||
| | #22 | ||
![]() | Re: Building a VolumeProfile Indicator with EasyLanguage | ||
| |
|
| The Following User Says Thank You to BlowFish For This Useful Post: | ||
Tams (11-02-2009) | ||
| | #23 | ||
![]() | Re: Building a VolumeProfile Indicator with EasyLanguage | ||
| |
|
| | #24 | ||
![]() | Re: Building a VolumeProfile Indicator with EasyLanguage Quote:
I've tried it for the demo period months ago. But what about yesterday Histogram with that pltaform ? and the day before ? What I'm trying to do is a Volume profile histogram to plot on Multicharts or tradestation, something EL compatible, which plots not only today histogram, but could have an history of Volume profiles. Something that plot without using excel or other things, but simply charging data from my database and plotting it as a simple MACD or other indicators. Blowfish codes That I use to plot PVP price (mode) is not CPU intensive at all and not seems to use loop at all, so my opinion is that Blowfish code is one of the best stuff from the 'Keep it simple' school. If you have better ideas about this code, you are welcome. I would be very greatful to you if you have found a better way and you would share it with us, but at this time, Blowfish's code is the best I have to start and trying to improve. AndyTick | ||
| |
|
![]() |
| Tags |
| array, volume |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EasyLanguage Indicator -- How Long (in Min) 1500 Tick Bar Took to Complete | Frank | Coding Forum | 3 | 03-16-2010 11:47 AM |
| Building a GAP Trading Strategy | brownsfan019 | The Candlestick Corner | 41 | 08-06-2009 12:54 PM |
| Adding Sound to Your Indicator (EasyLanguage) | Tams | Coding Forum | 33 | 05-10-2009 08:58 AM |
| building a track record? | darthtrader | Market Analysis | 7 | 06-23-2007 12:19 AM |
| Building a Computer System | wsam29 | General Discussion | 5 | 03-04-2007 07:28 PM |