barssinceentry - MultiCharts |
futures io futures trading

Started: by alexbellinzona Views / Replies:117 / 1
Last Reply: Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread


  #1 (permalink)
Trading Apprentice
Lugano Switzerland
Futures Experience: Advanced
Platform: Interactive Brokers
Favorite Futures: Currency Futures)
Posts: 11 since Apr 2016
Thanks: 6 given, 3 received


Hi everyone,

I've a little problem with the "barssinceentry" word.

If I write in the code:

if marketposition = 1 and barssinceentry > 10 then sell next bar at market;

In backtesting it works perfectly but when in live trading it does not close any position after 10 bars. I really can not understand what's wrong.

Anyone can help?

Many thanks!!!

Reply With Quote
  #2 (permalink)
Elite Member
Hamburg Germany
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 1,260 since Apr 2013
Thanks: 201 given, 711 received


the code you posted should work fine in backtesting and live trading. Based on that the problem might be related to something else, which is hard to tell without knowing your full code and the exact steps you did to produce this situation.
For example barssinceentry will not rememeber the hÝstory when you assign a broker position to your signal when you enable the automation. This could lead to something appearing to be off, but without knowing what you did, this is just meant to be an example of what can go wrong and not as explanation.



Reply With Quote


futures io > > > > barssinceentry

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)


Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding BarsSinceEntry causes a problem on backtest PhillyD NinjaTrader Programming 6 October 27th, 2014 11:12 AM

All times are GMT -4. The time now is 08:23 AM.

no new posts
Page generated 2017-03-28 in 0.06 seconds with 19 queries on phoenix via your IP