NexusFi: Find Your Edge


Home Menu

 





Volume level support and resistance (EasyLanguage)


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Fat Tails with 9 posts (3 thanks)
    2. looks_two Big Mike with 6 posts (25 thanks)
    3. looks_3 zt379 with 5 posts (1 thanks)
    4. looks_4 tbohle with 3 posts (2 thanks)
      Best Posters
    1. looks_one MooreTech with 7 thanks per post
    2. looks_two Big Mike with 4.2 thanks per post
    3. looks_3 tbohle with 0.7 thanks per post
    4. looks_4 Fat Tails with 0.3 thanks per post
    1. trending_up 49,689 views
    2. thumb_up 41 thanks given
    3. group 14 followers
    1. forum 42 posts
    2. attach_file 7 attachments




 
Search this Thread
  #41 (permalink)
Rock Sexton
Scottsdale
 
Posts: 120 since Feb 2012
Thanks Given: 33
Thanks Received: 96


Big Mike View Post
I am still quite new at EL programming, so forgive me

This little indicator just plots some interesting support and resistance areas solely based on where the majority of volume took place. I use it on a 5 minute chart, and it looks like this:

[img]https://nexusfi.com/v/fzsrwp.png[/img]

You'll need a semi-wide right margin to see the text, or you can edit the indicator itself if you want to adjust that. d1..d5 just represents how many days back the line represents, I have it set to do a 5-day rolling action now.

All the lines are drawn ahead of time and do not change intraday. Decide for yourself it is useful or not. The code itself could use some refinement, I am sure. Please post enhancements!

 
Code
                            
inputs:
    
length ( 3 ),
    
piv1c    ( white ),
    
piv2c    ( blue ),
    
piv3c    ( lightgray ),
    
piv4c    ( green ),
    
piv5c    ( magenta ),
    
pivstyle ( 3 ),
    
textscale ( 6 );
    
vars:
    
piv0    ( 0 ),
    
piv1    ( 0 ),
    
piv2    ( 0 ),
    
piv3    ( 0 ),
    
piv4    ( 0 ),
    
piv5    ( 0 ),
    
volph    ( 0 ),
    
piv1id    ( 0 ),
    
piv2id    ( 0 ),
    
piv3id    ( 0 ),
    
piv4id    ( 0 ),
    
piv5id ( 0 ),
    
piv1tid ( 0 ),
    
piv2tid ( 0 ),
    
piv3tid ( 0 ),
    
piv4tid ( 0 ),
    
piv5tid ( 0 );
    
if 
date <> date[1] then begin
    volph    
= 0;
    
piv5    = piv4;
    
piv4    = piv3;
    
piv3    = piv2;
    
piv2    = piv1;
    
piv1    = piv0;
    
end;

    if 
date = date[1] then begin
        TL_Delete
(piv1id);
        
TL_Delete(piv2id);
        
TL_Delete(piv3id);
        
TL_Delete(piv4id);
        
TL_Delete(piv5id);
    
end;
    
    
piv1id = TL_New(date, sessionstarttime(0, 1), piv1, date, sessionendtime(0, 1), piv1);
    
piv2id = TL_New(date, sessionstarttime(0, 1), piv2, date, sessionendtime(0, 1), piv2);
    
piv3id = TL_New(date, sessionstarttime(0, 1), piv3, date, sessionendtime(0, 1), piv3);
    
piv4id = TL_New(date, sessionstarttime(0, 1), piv4, date, sessionendtime(0, 1), piv4);
    
piv5id = TL_New(date, sessionstarttime(0, 1), piv5, date, sessionendtime(0, 1), piv5);
    
    
TL_SetColor(piv1id,piv1c);
    
TL_SetColor(piv2id,piv2c);
    
TL_SetColor(piv3id,piv3c);
    
TL_SetColor(piv4id,piv4c);
    
TL_SetColor(piv5id,piv5c);
    
    
TL_SetStyle(piv1id,pivstyle);
    
TL_SetStyle(piv2id,pivstyle);
    
TL_SetStyle(piv3id,pivstyle);
    
TL_SetStyle(piv4id,pivstyle);
    
TL_SetStyle(piv5id,pivstyle);
    
    
Text_Delete(piv1tid);
    
Text_Delete(piv2tid);
    
Text_Delete(piv3tid);
    
Text_Delete(piv4tid);
    
Text_Delete(piv5tid);
    
    
piv1tid = Text_New(date, Minlist(Time + 30, SessionEndTime(0, 1) + 100), piv1 - (textscale * MinMove/PriceScale), "[ v-d1 ]");
    
piv2tid = Text_New(date, Minlist(Time + 30, SessionEndTime(0, 1) + 100), piv2 - (textscale * MinMove/PriceScale), "[ v-d2 ]");
    
piv3tid = Text_New(date, Minlist(Time + 30, SessionEndTime(0, 1) + 100), piv3 - (textscale * MinMove/PriceScale), "[ v-d3 ]");
    
piv4tid = Text_New(date, Minlist(Time + 30, SessionEndTime(0, 1) + 100), piv4 - (textscale * MinMove/PriceScale), "[ v-d4 ]");
    
piv5tid = Text_New(date, Minlist(Time + 30, SessionEndTime(0, 1) + 100), piv5 - (textscale * MinMove/PriceScale), "[ v-d5 ]");


// highest volume bar
if Average(Volume, length) > volph then begin
    volph     
= Average(Volume, length);
    
piv0    = XAverage(Close, length);
    
//PlotPaintBar(High,Low,Open,Close,"",Yellow);
end; 
Attached is the MultiCharts .pla.

Mike


Is there anyone who's coded this for Tradestation? I literally know next to nothing when coding an indicator, but I am a huge proponent of using volume points of control and would kill to have something that plots them on my charts. The code provided doesn't seem to plot anything, it's just blank when I use it.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
EA
Platforms and Indicators
[WTS] ATAS Lifetime ULTRA license – EU buyers only – …
Platforms and Indicators
No book, only a stair: journaling fills where price move …
Cryptocurrency
I developed a free AI-powered (Kronos) forecasting indic …
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Would you consider buying or leasing an algo?
6 thanks
Trading Journal (Neural Network Production Pipeline Mode …
4 thanks
Trading psychology articles
4 thanks
Big Mike in Ecuador
3 thanks
The Scalpers Journey
2 thanks
  #42 (permalink)
 bomberone1 
London
 
Experience: Beginner
Platform: MultiCharts
Posts: 277 since Nov 2010
Thanks Given: 14
Thanks Received: 31

DO someone inlud the 3 basic value of Volume Profile Analysis: VPOC, VHvol,VLvol, also for the past days?


Reply With Quote
  #43 (permalink)
1irst48
Dallas Texas
 
Posts: 1 since Apr 2021
Thanks Given: 0
Thanks Received: 0


Was this ever able to work on tradestation?


Reply With Quote




Last Updated on May 4, 2021


© 2026 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 - Downloads - Top
no new posts