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


Range bar counter
Updated: Views / Replies:9,328 / 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

  #11 (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,353 given, 83,234 received

 
Thread Moved


Thread moved to EasyLanguage Programming



When creating a new thread, note which subforum you are in. Here is a short list of suggestions:

- Topic: Anything to do with an Elite indicator -> Subforum: The Elite Circle
- Topic: Looking for an existing indicator, or how-to use an indicator -> Subforum: (the platform)
- Topic: Programmer needing help with non-Elite indicator -> Subforum: (the platform) - Programming
- Topic: Want an indicator created/modified -> Reply to "Want indicator created free" in Elite Circle
- Topic: Vendors (trading rooms, commercial indicators) -> Subforum: Vendors/Product Reviews
- Topic: Discussion of Forex or Currency trading -> Subforum: Forex and Currency Trading
- Topic: Journals of your trading -> Subforum: Trading Journals or Elite Trading Journals
- Topic: General trading related discussions -> Subforum: Traders Hideout
- Topic: Discussion of a trading method -> Subforum: Traders Hideout
- Topic: Automated Trading -> Subforum: Elite Automated Trading

Last, any Elite Member may create more or less any of these topics in The Elite Circle at your own discretion (your support is appreciated).

This is just a short general list and doesn't cover everything. If you are unsure where to create your new thread, just create it in Traders Hideout and a moderator will move it if necessary.

-- Big Mike Trading



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
 
  #12 (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


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

Mike

There's a (user provided) function call in this indicator called Text_FloatLocation (in the eld file I provided) that sets the position of the text on the chart from within the indicator. In this case, the upper right side. Serger is saying that the text that the function is placing is moving across the chart. You can see the two screen shots where "0.3" is just left of center on the top of the chart on the first screenshot and, on the next screenshot, you see the "0.1" to the right of center on the top.

Since I don't have MC, I don't know of a function that will fix the location of the text object on the chart so it doesn't float across the chart. I'm sure there is since MC has better text API than TS. If you know it, you can just swap out the Text_FloatLocation function with whatever MC uses and that should be all that is needed.

Thanks,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Reply With Quote
 
  #13 (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,353 given, 83,234 received


Here is a snippet from one of my MC strategies that displays info on chart, it uses the MC method "GetAppInfo" to determine the screen x/y boundries:

 
Code
                            
// trade performance report


if pnltext3 0 then begin
    
if condition1 true then Text_SetString(pnltext3text("  STRATEGY: RUNNING  "));
    if 
condition1 false and todaynet >= dailyprofit then Text_SetString(pnltext3text("  STRATEGY: DAILY PROFIT  "));
    if 
condition1 false and todaynet <= -dailyloss then Text_SetString(pnltext3text("  STRATEGY: DAILY STOP  "));
    
Text_SetLocation(pnltext3dateiff(time 900time805), GetAppInfo(aiHighestDispValue) - (10 MinMove/PriceScale));
    
Text_SetSize(pnltext312);
    
Text_SetBorder(pnltext3true);
    
Text_SetBGColor(pnltext3iff(todaynet >= dailyprofitdarkgreenred));
    
Text_SetColor(pnltext3white);
    
Text_SetSTyle(pnltext3iff(time 90010), 2);
end
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 2 users say Thank You to Big Mike for this post:
 
  #14 (permalink)
Elite Member
GER
 
Futures Experience: Advanced
Platform: MC
Favorite Futures: ES
 
Posts: 144 since May 2011
Thanks: 11 given, 211 received

Ok, her is my complete code. It plots the barriers (high blue , low darkred ) at which price a new range bar will
plot, the current price in the middle , and the remain in ticks and percent at the bottom (cyan if there are ticks left, magenta if the range is filled).

Attached Thumbnails
Range bar counter-range-remain.jpg  
Attached Files
Register to download File Type: pla SP RANGE REMAIN.pla (8.1 KB, 89 views)
Reply With Quote
The following 3 users say Thank You to SPMC for this post:
 
  #15 (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 Spmc
and Work well !!
i just add some ............. more easy to see ...
Thank you so much!!!

Attached Thumbnails
Range bar counter-range_remain_.png  
Reply With Quote
 
  #16 (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


SPMC View Post
Ok, her is my complete code. It plots the barriers (high blue , low darkred ) at which price a new range bar will
plot, the current price in the middle , and the remain in ticks and percent at the bottom (cyan if there are ticks left, magenta if the range is filled).

spmc,

Can you post the code for this? I can not import pla files in TS.

Thanks,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Reply With Quote
 
  #17 (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

Here,you see the code .. and wok well
Thank's all
{================================================= ====================
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;

Reply With Quote
The following user says Thank You to Serger for this post:
 
  #18 (permalink)
Elite Member
Duncan, B.C.
 
Futures Experience: Intermediate
Platform: TS,MC
Favorite Futures: CL,TF
 
Posts: 27 since Jul 2010
Thanks: 95 given, 0 received

Range Indicator.

Hello Serger, would you mind posting your completed code that includes the dotted horizontal lines to the high,low of bar. TIA.

Reply With Quote
 
  #19 (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 RickW
Look the post # 14 , slightly higher , post from SPMC : SP Range Remaining .pla
I have just add somme little ......... for the high low dotted line , easy .....
enjoy !

Reply With Quote
The following user says Thank You to Serger for this post:
 
  #20 (permalink)
Elite Member
Duncan, B.C.
 
Futures Experience: Intermediate
Platform: TS,MC
Favorite Futures: CL,TF
 
Posts: 27 since Jul 2010
Thanks: 95 given, 0 received

Range Indicator.


Thks Serger, figured it out. Working great.

Reply With Quote

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 02:50 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-15 in 0.14 seconds with 20 queries on phoenix via your IP 54.226.132.197