LowestBar question - EasyLanguage Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

LowestBar question
Started:March 27th, 2011 (11:07 AM) by decs0057 Views / Replies:1,108 / 2
Last Reply:April 4th, 2011 (01:12 PM) 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

LowestBar question

Old March 27th, 2011, 11:07 AM   #1 (permalink)
Elite Member
Munich, Germany
Futures Experience: Intermediate
Platform: NinjaTrader, TWS
Broker/Data: IB, NinjaTrader Brokerage
Favorite Futures: ES,NQ,6E
Posts: 62 since Feb 2010
Thanks: 15 given, 22 received

LowestBar question

I am new to Multicharts and want to understand following code


for shift = ( currentbar - depth ) downto 0
value1 = Low[LowestBar(low, depth)[shift] ];

what is index of
LowestBar(low, depth)[shift]

Reply With Quote

Old March 27th, 2011, 11:07 AM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old April 4th, 2011, 01:12 PM   #3 (permalink)
Just starting out...
Marietta, GA U.S.A
Futures Experience: Intermediate
Platform: Multicharts & TradeStation
Favorite Futures: Equity Futures & EC
Posts: 9 since Mar 2011
Thanks: 0 given, 4 received

I'm not sure what you mean by index. Here is what I understand the code to do.

for shift = ( currentbar - depth ) downto 0 begin
{For all the bars since the 12th bar on the chart}

value1 = Low[LowestBar(low, depth)[shift] ];

Write to Value1 the Low of the lowest bar based on the low for 12 bars back. Its easier to break it up.

Low[ Barnumber ] Finds the low value of the bar "Barnumber" bars back.

LowestBar (low, depth) -
A. The word low means that you want the lowest low instead of the lowest close or lowest high, etc.
B. Depth is the number of bars back you want to look to find the low. In this case 12.

That means that you would return the barnumber of the lowest low in the last 12 bars.

Shift would be the number of bars back that you want to obtain the result from. For instance, zero means that you want to know for this bar. If Shift = 1, it would find the lowest low of the 12 bars preceding the bar on bar before the current bar. The coder would generally be better off writing the data into an array than using shift. Its confusing and takes longer to process.

Reply With Quote
The following user says Thank You to shadrock55 for this post:


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > LowestBar question

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner's question Raceman Beginners and Introductions 19 October 22nd, 2011 04:08 PM
Question on MarketDelta jstnbrg MarketDelta 2 December 24th, 2010 01:19 PM
Question on polls h4cked Traders Hideout 3 December 15th, 2010 08:56 PM
A Strategy Question... keepdchange NinjaTrader 4 November 23rd, 2009 05:58 AM

All times are GMT -4. The time now is 07:50 PM.

Copyright © 2016 by 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

Page generated 2016-10-23 in 0.11 seconds with 20 queries on phoenix via your IP