EasyLanguage Barssinceexit Help - futures io
futures io futures trading

EasyLanguage Barssinceexit Help

Discussion in EasyLanguage Programming

    1. trending_up 843 views
    2. thumb_up 0 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

EasyLanguage Barssinceexit Help

(login for full post details)
  #1 (permalink)
Posts: 17 since Nov 2018
Thanks: 0 given, 0 received

I am having trouble with a BarsSinceExit clause in my buy strategy.

My sell strategy uses an intrabarordergeneration setting for profit target. When it hits this profit I dont want my strategy to buy off of the bar that signaled a sell order for my ProfitTarget.

when I use the code BarsSinceEntry>1 or TotalTrades<1 in my buy strategy it only returns 1 buy for the day and isn't calculating based off of the bars since entry.

Is there a workaround for this?

Reply With Quote

Can you help answer these questions
from other members on futures io?
Indicators for pair trading MES and M2K
Platforms and Indicators
Which kind of Blockvolume is visible? - order processing
Emini and Emicro Index
Help Needed: TOS Options Chain IV & IMPL MOVE Calcul …
Short Interest Ratio indicator?
OFA (Order Flow Analytics) Licence
(login for full post details)
  #3 (permalink)
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 received


your code for BarsSinceEntry doesn't specify the position that you want to look at it.


Where Num is a whole number (up to a maximum 10) representing positions ago.
If you don't specify a value for Num, the current position will be used. This will however result in a value of 0 for BarsSinceEntry when you are flat. It appears what you are looking for is the BarsSinceEntry value for the previously closed position.



Follow me on Twitter Reply With Quote

futures io Trading Community Platforms and Indicators EasyLanguage Programming > EasyLanguage Barssinceexit Help

Last Updated on November 7, 2018

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Battlestations! Show us your trading desk - $1,500 in prizes!


Importance of Finding Your Own Way w/Adam Grimes

Elite only

Journal Challenge w/Jigsaw


Copyright © 2021 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