CalculateOnBarClose as a bool or as a simulation within OnBarUpdate chapter - NinjaTrader Programming | futures io social day trading
futures io futures trading


CalculateOnBarClose as a bool or as a simulation within OnBarUpdate chapter
Updated: Views / Replies:2,129 / 5
Created: by SARdynamite 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 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
 
Thread Tools Search this Thread
 

CalculateOnBarClose as a bool or as a simulation within OnBarUpdate chapter

  #1 (permalink)
Elite Member
Belgium
 
Futures Experience: Advanced
Platform: SaxoTrader
Broker/Data: SaxoBank
Favorite Futures: ESTX
 
Posts: 290 since Dec 2009
Thanks: 242 given, 109 received

CalculateOnBarClose as a bool or as a simulation within OnBarUpdate chapter

Hello there,

Bummer question : would there be a trick to toggle CalculateOnBarClose as a bool parameter inside the OnBarUpdate chapter ? or simulate the same feature with CalculateOnBarClose=false on the Initialize chapter ?

Thanks you very much.

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.

 
  #3 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,220 since Jun 2009
Thanks: 628 given, 6,318 received
Forum Reputation: Legendary


seems like no straight way to do it
Identifying Close of Bar when CalculateOnBarClose = false - NinjaTrader Support Forum

Reply With Quote
 
  #4 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 786 received

SAR what exactly are you trying to do? Things that might help include adding a second data series. For example if you use 1 minute bars, COBC=true, you can add a one tick data series. That gives you access to end-of-bar and on-every-tick in a strategy. Also look at FirstTickOfBar.

Reply With Quote
 
  #5 (permalink)
Elite Member
Belgium
 
Futures Experience: Advanced
Platform: SaxoTrader
Broker/Data: SaxoBank
Favorite Futures: ESTX
 
Posts: 290 since Dec 2009
Thanks: 242 given, 109 received

Hello guys,

Let me explain what I intended in the first place.

My goal is to create an indicator which toggles sensitivity.

Let's say the indicator color candles when Close[0]>SMA(Close,14)[0] and another color on the downside. Let's say I run it on a 5min candle chart.

I'd like to use a bool to toggle sensitivity so that when I'm close to a so called potential reversal level, I switch sensitivity so that it shows 1min candle chart sensivity on the last bar of my 5min chart only.
So that the last real time candle is then 1min MA crossing and the past candles are 5min MA crossing.
This would lead me to react earlier without the pain to switch timeframe or use the multi-timeframe windows which I don't find practical.

I tried stuff to achieve this in a single indicator with no success.
Therefore, I ended up thinking to use 2 indicators that I'd install at the same time :
- 1min coloring on 5min timeframe (default timeframe actually) with CalculateOnBarClose=false
- 5min coloring on 5min chart with CalculateOnBarClose=true

In order to mask the 1min candles by the 5min candles up until the very last candle... I'm not sure you understand me :-)

Anyway as I would toggle frequently the 5min indicator, I would rather switch easily between 5min/5min and 5min/1min. I just want to create a handy parameter on the very top of the indicator setting window instead of having to find the "CalculateOnBarClose" line each time (which is placed in the middle of the parametters settings window so no quick find !)

I might sound complicated, but the use is aimed for a group of people. So I'm paying attention to details.

Sorry about my english. I'm french.

PS : I will create a new thread about this very indicator coding because it does not work properly and I can't find what I did wrong.

Thanks again...

Reply With Quote
 
  #6 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,220 since Jun 2009
Thanks: 628 given, 6,318 received
Forum Reputation: Legendary

how about 1 sec bar, the close of bar 59 could be counted as the close of 5m or 1m bar.

Reply With Quote

Reply



futures io > > > > > CalculateOnBarClose as a bool or as a simulation within OnBarUpdate chapter

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
Noob OnBarUpdate() question SetFreeByTruth NinjaTrader Programming 5 March 30th, 2011 08:17 PM
mystery d9po CalculateOnBarClose= False rcabri The Elite Circle 1 February 25th, 2011 01:28 PM
looking for C# code for a keyboard command simulation max-td NinjaTrader Programming 3 December 29th, 2010 10:24 AM
Is NT7 "CalculateOnBarClose = false" broken? Curbfeeler NinjaTrader 6 August 26th, 2010 07:53 PM
Monte Carlo Simulation Big Mike Psychology and Money Management 3 February 7th, 2010 12:06 PM


All times are GMT -4. The time now is 01:02 PM.

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-16 in 0.09 seconds with 19 queries on phoenix via your IP 54.91.38.173