barssinceentry - MultiCharts | futures.io
futures.io futures trading


barssinceentry
Started: by alexbellinzona Views / Replies:103 / 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

Reply
 
Thread Tools Search this Thread
 

barssinceentry

  #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

barssinceentry

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)
 Vendor: abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,226 since Apr 2013
Thanks: 199 given, 693 received

alexbellinzona,

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.

Regards,

ABCTG

Reply With Quote

Reply



futures io > > > > barssinceentry

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Al Brooks: When A Good Trade Goes Bad (Risk and Probabilities)

Elite only

Ran Aroussi: Quant Trading with Python

Elite only
     

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


All times are GMT -4. The time now is 03:06 PM.

no new posts
Page generated 2017-02-21 in 0.07 seconds with 19 queries on phoenix via your IP 54.144.205.182