Need help on modify previous bar's value - futures io
futures io futures trading



Need help on modify previous bar's value


Discussion in ThinkOrSwim

Updated
    1. trending_up 592 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 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
 

Need help on modify previous bar's value

(login for full post details)
  #1 (permalink)
Toronto Canada
 
Experience: Intermediate
Platform: thinkorswim, NT
Trading: Emini ES NQ
 
Posts: 4 since Nov 2014
Thanks: 9 given, 0 received

Question about how to modify previous barís value.

Program is for identify engulfing bar.

Def IsEngulfing;
If (high>high[1] and low >low[1] ) or (high<high[1] and low<low[1]) then IsEngulfing=0 else IsEngulfing =1;

But there is two kind of engulfing cases
Case one: Current bar is smaller then previous bar ( For example: high[1]=11 , low[1] = 9, high= 10 low =9.5) above program can handle this case.

Case two: Current bar is larger then previous bar ( For example: high[1]=10, low[1]=9.5 , high=11, low =9)
For this case I need change IsEngulfing[1] from 0 to 1 , But the I got error message.
Is there any way can do this kind of change. Thanks.

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > Need help on modify previous bar's value


Last Updated on May 29, 2017


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

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

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



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