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 30,442 views
    2. thumb_up 41 thanks given
    3. group 14 followers
    1. forum 42 posts
    2. attach_file 7 attachments




 
Search this Thread

Volume level support and resistance (EasyLanguage)

  #1 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603

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 ),
    
piv1c    white ),
    
piv2c    blue ),
    
piv3c    lightgray ),
    
piv4c    green ),
    
piv5c    magenta ),
    
pivstyle ),
    
textscale );
    
vars:
    
piv0    ),
    
piv1    ),
    
piv2    ),
    
piv3    ),
    
piv4    ),
    
piv5    ),
    
volph    ),
    
piv1id    ),
    
piv2id    ),
    
piv3id    ),
    
piv4id    ),
    
piv5id ),
    
piv1tid ),
    
piv2tid ),
    
piv3tid ),
    
piv4tid ),
    
piv5tid );
    
if 
date <> date[1then begin
    volph    
0;
    
piv5    piv4;
    
piv4    piv3;
    
piv3    piv2;
    
piv2    piv1;
    
piv1    piv0;
    
end;

    if 
date date[1then begin
        TL_Delete
(piv1id);
        
TL_Delete(piv2id);
        
TL_Delete(piv3id);
        
TL_Delete(piv4id);
        
TL_Delete(piv5id);
    
end;
    
    
piv1id TL_New(datesessionstarttime(01), piv1datesessionendtime(01), piv1);
    
piv2id TL_New(datesessionstarttime(01), piv2datesessionendtime(01), piv2);
    
piv3id TL_New(datesessionstarttime(01), piv3datesessionendtime(01), piv3);
    
piv4id TL_New(datesessionstarttime(01), piv4datesessionendtime(01), piv4);
    
piv5id TL_New(datesessionstarttime(01), piv5datesessionendtime(01), 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(dateMinlist(Time 30SessionEndTime(01) + 100), piv1 - (textscale MinMove/PriceScale), "[ v-d1 ]");
    
piv2tid Text_New(dateMinlist(Time 30SessionEndTime(01) + 100), piv2 - (textscale MinMove/PriceScale), "[ v-d2 ]");
    
piv3tid Text_New(dateMinlist(Time 30SessionEndTime(01) + 100), piv3 - (textscale MinMove/PriceScale), "[ v-d3 ]");
    
piv4tid Text_New(dateMinlist(Time 30SessionEndTime(01) + 100), piv4 - (textscale MinMove/PriceScale), "[ v-d4 ]");
    
piv5tid Text_New(dateMinlist(Time 30SessionEndTime(01) + 100), piv5 - (textscale MinMove/PriceScale), "[ v-d5 ]");


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

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Attached Files
Elite Membership required to download: Volume Pivots.pla
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603


Here is another screen shot. Remember, the lines are drawn ahead of time and do not move. Here are the past 4 days showing examples of price coming right to the line and interacting with it. I am referring to the horizontal lines, the dashed moving average is an ema20.

Is it perfect? Of course not, nothing is. But it may prove useful, only time will tell.

[img]https://nexusfi.com/v/7fqt4k.png[/img]

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603

Another day, and another example of the lines. Again the green and white lines for today were drawn immediately (bar1 of today) and did not change.

You could say the white line represented the cash close of prior day, but you'll see the green line for today worked equally as well... and it represented the line in the sand drawn 3 days prior (22nd), which was also retested 2 days prior (23rd).

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

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 chartman 
ottawa ontario canada
 
Experience: Intermediate
Platform: ninja trader
Broker: ninja trader brokerage
Trading: es
Posts: 100 since Sep 2009
Thanks Given: 17
Thanks Received: 23

Very interesting indicator.hope some talented programmers can convert it to ninja trader.very very nice and special indicator

Reply With Quote
Thanked by:
  #6 (permalink)
tbohle
Fairfax, VA
 
Posts: 3 since Jul 2010
Thanks Given: 2
Thanks Received: 2


Quick Summary View Post
Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

Hi Big Mike,

The work you have done on the volume-level support/ resistance appeals to me as very useful and plausible. I have installed the code, yet I don't seem to any plots at all. It seems something is not set correctly. Are there any other dlls necessary to enable the above coding? I'd like to play with it and add some refinements after getting it to work. Thanks.

Reply With Quote
Thanked by:
  #7 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603


tbohle View Post
Hi Big Mike,

The work you have done on the volume-level support/ resistance appeals to me as very useful and plausible. I have installed the code, yet I don't seem to any plots at all. It seems something is not set correctly. Are there any other dlls necessary to enable the above coding? I'd like to play with it and add some refinements after getting it to work. Thanks.

No DLL's, all the code is above. But, I use MultiCharts and can't test it on TradeStation, which may be the problem.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
tbohle
Fairfax, VA
 
Posts: 3 since Jul 2010
Thanks Given: 2
Thanks Received: 2


Big Mike View Post
No DLL's, all the code is above. But, I use MultiCharts and can't test it on TradeStation, which may be the problem.

Mike


Mike: "Highest Volume Bar" is coded-out above. What is the rationale? I don't think this would prevent the other lines from drawing, though. Just wanted to verify. Thx.

Reply With Quote
Thanked by:
  #9 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,603


tbohle View Post
Mike: "Highest Volume Bar" is coded-out above. What is the rationale? I don't think this would prevent the other lines from drawing, though. Just wanted to verify. Thx.

It's just a comment line.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #10 (permalink)
 MooreTech 
Orlando, Florida
 
Experience: Advanced
Platform: NinjaTrader, TradeStation, MultiCharts, eSignal, MetaTrader
Trading: ES
Posts: 57 since Aug 2010
Thanks Given: 6
Thanks Received: 73



tbohle View Post
Hi Big Mike,

The work you have done on the volume-level support/ resistance appeals to me as very useful and plausible. I have installed the code, yet I don't seem to any plots at all. It seems something is not set correctly. Are there any other dlls necessary to enable the above coding? I'd like to play with it and add some refinements after getting it to work. Thanks.

tbohle,
Try the code below. TradeStation didn't like the way the original was handling the trendlines.

 
Code
                            
inputs:
    
length ),
    
piv1c    white ),
    
piv2c    blue ),
    
piv3c    lightgray ),
    
piv4c    green ),
    
piv5c    magenta ),
    
pivstyle ),
    
textscale );
    
vars:
    
piv0    ),
    
piv1    ),
    
piv2    ),
    
piv3    ),
    
piv4    ),
    
piv5    ),
    
volph    ),
    
piv1id    ),
    
piv2id    ),
    
piv3id    ),
    
piv4id    ),
    
piv5id ),
    
piv1tid ),
    
piv2tid ),
    
piv3tid ),
    
piv4tid ),
    
piv5tid );
    
if 
date <> date[1then begin
    volph    
0;
    
piv5    piv4;
    
piv4    piv3;
    
piv3    piv2;
    
piv2    piv1;
    
piv1    piv0;
    
    
piv1id TL_New(datesessionstarttime(01), piv1datesessionendtime(01), piv1);
    
piv2id TL_New(datesessionstarttime(01), piv2datesessionendtime(01), piv2);
    
piv3id TL_New(datesessionstarttime(01), piv3datesessionendtime(01), piv3);
    
piv4id TL_New(datesessionstarttime(01), piv4datesessionendtime(01), piv4);
    
piv5id TL_New(datesessionstarttime(01), piv5datesessionendtime(01), 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);
    
    
piv1tid Text_New(dateMinlist(Time 30SessionEndTime(01) + 100), piv1 - (textscale MinMove/PriceScale), "[ v-d1 ]");
    
piv2tid Text_New(dateMinlist(Time 30SessionEndTime(01) + 100), piv2 - (textscale MinMove/PriceScale), "[ v-d2 ]");
    
piv3tid Text_New(dateMinlist(Time 30SessionEndTime(01) + 100), piv3 - (textscale MinMove/PriceScale), "[ v-d3 ]");
    
piv4tid Text_New(dateMinlist(Time 30SessionEndTime(01) + 100), piv4 - (textscale MinMove/PriceScale), "[ v-d4 ]");
    
piv5tid Text_New(dateMinlist(Time 30SessionEndTime(01) + 100), piv5 - (textscale MinMove/PriceScale), "[ v-d5 ]");
    
end;

If 
piv1>0 then value1=tl_setend(piv1tid,date,Minlist(Time 30SessionEndTime(01) + 100),piv1);    
If 
piv2>0 then value1=tl_setend(piv2tid,date,Minlist(Time 30SessionEndTime(01) + 100),piv2);    
If 
piv3>0 then value1=tl_setend(piv3tid,date,Minlist(Time 30SessionEndTime(01) + 100),piv3);    
If 
piv4>0 then value1=tl_setend(piv4tid,date,Minlist(Time 30SessionEndTime(01) + 100),piv4);    
If 
piv5>0 then value1=tl_setend(piv5tid,date,Minlist(Time 30SessionEndTime(01) + 100),piv5);    

If 
piv1>0 then value1=Text_setlocation(piv1tid,d,minlist(time+30,sessionendtime(0,1)+100), piv1 - (textscale MinMove/PriceScale));    
If 
piv2>0 then value1=Text_setlocation(piv2tid,d,minlist(time+30,sessionendtime(0,1)+100), piv2 - (textscale MinMove/PriceScale));    
If 
piv3>0 then value1=Text_setlocation(piv3tid,d,minlist(time+30,sessionendtime(0,1)+100), piv3 - (textscale MinMove/PriceScale));    
If 
piv4>0 then value1=Text_setlocation(piv4tid,d,minlist(time+30,sessionendtime(0,1)+100), piv4 - (textscale MinMove/PriceScale));    
If 
piv5>0 then value1=Text_setlocation(piv5tid,d,minlist(time+30,sessionendtime(0,1)+100), piv5 - (textscale MinMove/PriceScale));    


// highest volume bar
if Average(Volumelength) > volph then begin
    volph     
Average(Volumelength);
    
piv0    XAverage(Closelength);
    
//PlotPaintBar(High,Low,Open,Close,"",Yellow);
end

Follow me on Twitter Reply With Quote




Last Updated on May 4, 2021


© 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