Indicator not counting zero bar. - MetaQuotes MetaTrader MQL Programming | futures io social day trading
futures io futures trading


Indicator not counting zero bar.
Updated: Views / Replies:569 / 1
Created: by Reichenbach Attachments:0

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 100,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
 
Thread Tools Search this Thread
 

Indicator not counting zero bar.

  #1 (permalink)
Trading Apprentice
Phoenix Arizona
 
Futures Experience: Advanced
Platform: MT4
Favorite Futures: Forex
 
Posts: 1 since Jun 2015
Thanks: 0 given, 0 received

Indicator not counting zero bar.

The crux of the issue is an indicator not counting the zero bar( current bar), but still counting all other bars. To resolve this, you have to manually refresh to get accurate, real time drawing line positioning on the indicator. Now, it works fine in offline charts, but that is only because they are constantly refreshing. I have images to post, but am disallowed by the board.

Here is what I suspect to be part of the issue:
 
Code
if(counted_bars>0) counted_bars--;
int limit=Bars-counted_bars;
if(counted_bars==0) limit-=1+numbars+1;
for(i=0; i<limit; i++)

I've gotten suggestions for this as the solution:
 
Code
int lookback = numbars + 1;  // for(j<numbars+1) Close[in+j+1]
int limit=Bars - MathMax(lookback, counted_bars);
for(i=limit-1; i>=0; --i)

I've considered something like this:
 
Code
   counted_bars=IndicatorCounted();
   limit=Bars-counted_bars-1;
   if(limit>MaxHistory-1) limit=MaxHistory-1;
   for(i=limit;i>=0;i--)
It doesn't seem to work however. I'm thinking that perhaps an easier workaround would be an auto-refresh function on a .25 second interval added to the original code? Admittedly, I am an amateur in this field of writing code, but resolving this is a critical piece in keeping my overall strategy semi-automated and expanding it to the world of big money. I greatly appreciate any help.

The indicator is based on the Maximum Entropy Method, you can google it to find it since I can't link it.


Last edited by Reichenbach; June 4th, 2015 at 05:45 PM.
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary 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.


Reply



futures io > > > > > Indicator not counting zero bar.

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

September Journal Challenge (sponsored by TopstepTrader)

September

Battlestations! Win $947 in prizes for showing us your trading desk!

October
 

Finding Your Edge & Maximizing Returns w/Richard L Weissman

Oct 16
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indicator to measure a price bar's tendency to undercut prior bar's high 10handles TradeStation 0 October 25th, 2014 02:53 PM
I need help with a Visual Candle Counting indicator, please. ckajrtx ThinkOrSwim 2 May 15th, 2014 09:30 AM
Heikin Ashi indicator with bar outline same color as bar? Todd NinjaTrader 29 September 7th, 2013 07:33 AM
Looking for a wave counting indicator reno57540 NinjaTrader 1 November 29th, 2012 02:57 PM
Elliot Wave counting indicator praetorian NinjaTrader 2 February 9th, 2012 10:21 PM


All times are GMT -4. The time now is 06:58 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 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 2018-10-17 in 0.09 seconds with 14 queries on phoenix