Range bar counter - EasyLanguage Programming | futures io social day trading
futures io futures trading


Range bar counter
Updated: Views / Replies:9,304 / 21
Created: by Serger Attachments:8

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 8  
 
Thread Tools Search this Thread
 

Range bar counter

  #1 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: Multicharts 64 +VolProfile
Broker/Data: AMP Trading / CQG
Favorite Futures: Ym, Es
 
Serger's Avatar
 
Posts: 72 since Oct 2010
Thanks: 64 given, 22 received

Range bar counter

Somebody have a range bar counter for MC ???

would be greatly appreciated

Thank you so much

Reply With Quote
 
  #2 (permalink)
Elite Member
Atlanta, Georgia
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 237 received

I got this one from the TS support site. Works great on the tick charts. Never tried it on range bars even though the indicator claims it works with range bars.

Regards,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Attached Files
Register to download File Type: eld 20091228133326BARCOUNTDOWNTIMER2.ELD (17.3 KB, 147 views)
Reply With Quote
The following 2 users say Thank You to cbritton for this post:
 
  #3 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: Multicharts 64 +VolProfile
Broker/Data: AMP Trading / CQG
Favorite Futures: Ym, Es
 
Serger's Avatar
 
Posts: 72 since Oct 2010
Thanks: 64 given, 22 received


Thank you Cbritton ,
have you one idea why is d'ont work on Mc?
look picture ...
Thank you so much
Serger

Attached Thumbnails
Range bar counter-bar_counter2.png  
Reply With Quote
 
  #4 (permalink)
Elite Member
Atlanta, Georgia
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 237 received


Serger View Post
Thank you Cbritton ,
have you one idea why is d'ont work on Mc?
look picture ...
Thank you so much
Serger

I did not write this indicator, but I'll try to help diagnose the problem. This is the code where this error message is generated:

 
Code
if 
    barType <> 0 and   // Tick/Volume Chart
    barType <> 1 and  // Intraday (Minute) Chart
    barType <> 11 and  // Momemtum Chart
    barType <> 12        // Range chart
then
    RaiseRuntimeError("Coundown Timer is only supported for Intrabar, Tick, Volume, Momentum or Range Charts");
...
So either your chart is not one of the above or MC identifies those charts differently than TS (by using the barType reserved word).

What chart type are you looking at when you get that error?

Regards,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Reply With Quote
The following user says Thank You to cbritton for this post:
 
  #5 (permalink)
Elite Member
GER
 
Futures Experience: Advanced
Platform: MC
Favorite Futures: ES
 
Posts: 144 since May 2011
Thanks: 11 given, 211 received

MC doesnt know bartype =12 and boxsize.Maybe this helps:
 
Code
input: Spacer ( "              ");
value2 = barinterval-(absvalue(high-low)/ (minmove/pricescale));
If barnumber=1 then 
   value1 = text_new_s(date,time_s,close,"Remain")
   else 
   text_SetLocation_s(value1 ,date,time_s,low -  minmove/pricescale);
   text_SetString(value1 ,Spacer+ "Remain "+ numtostr(value2  ,0));

Reply With Quote
The following user says Thank You to SPMC for this post:
 
  #6 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: Multicharts 64 +VolProfile
Broker/Data: AMP Trading / CQG
Favorite Futures: Ym, Es
 
Serger's Avatar
 
Posts: 72 since Oct 2010
Thanks: 64 given, 22 received

Hello cbritton ,SPMC ...

your bar counter work on minute bar no problems .. but i want it in Range bar (point) in Mc ..and i d'ont work ...
I try to change the code whith SPMC part .. and ..many error when i try to compile it ??
HAHAH !! i think is easy ..easy language ... but not sur now !!
If you have some idea.......
Thank you so much....

Reply With Quote
 
  #7 (permalink)
Elite Member
Atlanta, Georgia
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 237 received

Serger, I modified the original indicator just for you. It will only work with range bars and it avoids using the reserved words that are not in MC. I have not tested out all of the features but it works on a range chart in TS. Create a new indicator and call it _RangeCountdownTimer. Copy the code below into it, compile and insert it on your chart.

Well...I don't know why I call it a timer since it's not timing anything, but anyways...

 
Code
{=====================================================================
    NAME:      _RangeCountdownTimer
    
    TYPE:    Indicator
    
}

inputs:
    VertTextPct(80{0-100}),
    NormColor(yellow),
    AlertColor(red),
    AlertPct(10{0-100}),
    DispMode(2 {1=Pct,2=Range}),
    dec(4)// Significant Decimals in Price
;
    
vars:
    { Text Object Vars }
    TxtStr(""),        // Text String  
    AlertStr(""),    // Alert Text String  
    TxtID(text_new(date,time,close, " ")),        // Text Object Reference
    
    { Constants }
    cDispPct(1),    // Option to display Percentages
    cDispRaw(2),    // Option to display Time/Tick/Vol Values

    Pad("    "),        // Pad to right of text display
    BarRange(0.1);

{== Initialization ===================================================}
        
    once begin

        // Check for valid input values
        if DispMode <> 1 and DispMode <> 2 then
            RaiseRuntimeError("The DispMode input must be set to 1 or 2");
        if VertTextPct > 100 or VertTextPct < 0 then
            RaiseRuntimeError("The VertTextPct input must be set between 0 and 100");
        if AlertPct > 100 or AlertPct < 0 then
            RaiseRuntimeError("The AlertPct input must be set between 0 and 100");
        // Chart Specific Init

        AlertStr = GetSymbolName+" bar has "+NumToStr(AlertPct,0)+"% remaining";

       end;
       
       if CurrentBar = 1 then begin
           // determine the range of the bar from the ones already shown
           BarRange = range[1];
       end;

{== Calculations ====================================================}
        
    if _LastBarOnChart then begin // Only display in real-time
        
        // Set Text Location from right of chart
        Value2 = Text_FloatLocation(TxtID, VertTextPct);

        // Calc Remaining value text
        if DispMode = cDispPct then  
            TxtStr = NumToStr((((BarRange - H+L) / BarRange) * 100), 0)+"%"+Pad
        else if DispMode = cDispRaw then
            TxtStr = NumToStr(BarRange - H+L, dec)+" "+Pad;
    
        // Display Text
        text_setstring(TxtID, TxtStr);
    
        // Trigger Alert / Use Alert Color
        if (((BarRange - H+L) / BarRange) * 100) < AlertPct then begin  
            text_SetColor(TxtID, AlertColor);
            Alert(AlertStr);
        end    else text_SetColor(TxtID, NormColor);

    end;
Set the dec value in the input to the number of significant digits for your instrument. For example, use 4 for 6E and 2 for ES. I did not test out the % remaining part.

Let me know how that works for you.

Regards,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Reply With Quote
The following user says Thank You to cbritton for this post:
 
  #8 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: Multicharts 64 +VolProfile
Broker/Data: AMP Trading / CQG
Favorite Futures: Ym, Es
 
Serger's Avatar
 
Posts: 72 since Oct 2010
Thanks: 64 given, 22 received

Cbritton,
it's work ... just that he walk on the top of the screen look atachments ....
But Thank you so much for your help !!!

Attached Thumbnails
Range bar counter-tfconteur.png   Range bar counter-tfcounter2.png   Range bar counter-settings_counteur.png  
Reply With Quote
 
  #9 (permalink)
Elite Member
Atlanta, Georgia
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: DDT
Favorite Futures: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 237 received


Serger View Post
Cbritton,
it's work ... just that he walk on the top of the screen look atachments ....
But Thank you so much for your help !!!

My TS chart doesn't do that. Must be something with the way MC puts the floating text on the screen. I'm sure someone with more MC knowledge than I can fix that.

Regards,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Reply With Quote
 
  #10 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,351 given, 83,221 received



Serger View Post
Cbritton,
it's work ... just that he walk on the top of the screen look atachments ....
But Thank you so much for your help !!!

Can you clarify so I can take a look and see if I can help. I'm not understanding the problem.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:

Reply



futures io > > > > > Range bar counter

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Range Counter / Tick Counter / Bar Timer zeller4 NinjaTrader 20 August 10th, 2015 04:01 PM
Bar Counter For Line Break Bar Type Eagle01 NinjaTrader Programming 8 April 2nd, 2012 12:29 AM
Felton Bar Counter!!! Help to Move it Left??? tdaman The Elite Circle 3 March 2nd, 2012 12:51 PM
Range Bar Charts don10 NinjaTrader 12 October 29th, 2010 01:36 AM
Range bar code help traderlars The Elite Circle 23 December 30th, 2009 01:27 AM


All times are GMT -4. The time now is 11:18 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-13 in 0.11 seconds with 20 queries on phoenix via your IP 54.227.51.103