BarsSinceExit Question - futures io
futures io



BarsSinceExit Question


Discussion in Traders Hideout

Updated
    1. trending_up 1,758 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

BarsSinceExit Question

(login for full post details)
  #1 (permalink)
 fxpipmeister 
Los Angleles, CA
 
Experience: Intermediate
Platform: Multicharts
Trading: Forex
 
Posts: 7 since Nov 2011
Thanks: 18 given, 2 received

I don't understand how to use BarsSinceExit correctly.

For example when I use the expression:


1. if marketposition= 0 and BarsSinceExit (1) >= 0 then begin //works as intended

2. if marketposition= 0 and BarsSinceExit (1) >= 1 then begin //does not work as intended


Basically, I don't want my strategy to open and close positions on the same bar.

I want to limit entry and/or exit signals in this strategy to once per bar.

I checked the user manual and power language keyword reference but did not see anything obvious that would explain
why the strategy works using example #1 yet does not open new positions using example #2.
Would be great if someone could point me in the right direction.

Thanks,

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
NT8 connectivity by FXI API to unsupported brokers?
NinjaTrader
EasyLanguage: fetch option price using Stock ticker
EasyLanguage Programming
Thinkorswim MACD Thinkscript
ThinkOrSwim
Multichart NET: where can i find esplanation on CustomIn …
MultiCharts
AutoTrendHforRad indicator in a strategy "direction …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
The Crude Dude Oil Trading System
77 thanks
Spoo-nalysis ES e-mini futures S&P 500
68 thanks
I finally blew up an account
61 thanks
FIO Journal Challenge - April 2021 w/Jigsaw Trading
37 thanks
The tiyfTradePlanFactory indicator
25 thanks
 
(login for full post details)
  #3 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,244 since Apr 2013
Thanks: 417 given, 1,495 received


fxpipmeister,

assuming you use the code for all your entries and your signal hasn't taken an entry so far, trying to access previously closed positions values (BarsSinceExit in your case) will likely just return 0.
That's why you second approach could block all entries.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:


futures io Trading Community Traders Hideout > BarsSinceExit Question


Last Updated on May 7, 2017


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing

The Cold Hard Truth: Maybe I Am Not Good Enough w/Chris Gray @ Earn2Trade

Elite only

HIRO Indicator by Spotgamma in Bookmap w/Brent Kochuba @ SpotGamma

Elite only

NEW BlackBird Features + FOREX Support w/Jeremy Tang @ SharkIndicators

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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