Gap Counter - EasyLanguage Programming | futures trading

Go Back

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

Gap Counter
Started:March 25th, 2015 (12:03 AM) by skiman721 Views / Replies:249 / 2
Last Reply:April 10th, 2015 (07:59 PM) Attachments:0

Welcome to

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

Gap Counter

Old March 25th, 2015, 12:03 AM   #1 (permalink)
Elite Member
North Bay
Futures Experience: Advanced
Platform: ToS, MulitCharts, Medved
Broker/Data: TD
Favorite Futures: Options, Equities
Posts: 30 since Nov 2011
Thanks: 10 given, 7 received

Gap Counter

I'm trying to count the number of consecutive daily up or down gaps but having trouble with the code. I'm not sure how to increase or decrease the variables.


if date[1] < date then begin

if newday and openingPrice < (ydayClose - (ydayRange*0.1)) then begin
         GapDown +=1;
         GapUp = 1;
         GapPresent +=1;

Reply With Quote

Old March 25th, 2015, 12:03 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 10th, 2015, 07:59 PM   #3 (permalink)
Trading Apprentice
Miami Florida
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: Forex
juanman's Avatar
Posts: 7 since Apr 2015
Thanks: 1 given, 4 received

I think that when ever your code get executed all your var are initialized again, so try using
Intrabarpersists int GapCount(0); ..... so if you set a new value its remain in your vars, then see what are your results,

Reply With Quote

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

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
Range Counter / Tick Counter / Bar Timer zeller4 NinjaTrader 20 August 10th, 2015 03:01 PM
gap between candlesticks luck IB Trader Workstation 2 December 16th, 2014 01:47 AM
Support and Resistance Levels / Gap up & Gap down bars sajidghori Currency Futures 7 May 10th, 2014 07:13 PM
gap% column asafal ThinkOrSwim 0 May 16th, 2013 08:03 PM
How is this gap up possible? mcteague Index Futures Trading 8 December 20th, 2012 10:53 AM

All times are GMT -4. The time now is 02:09 PM.

Copyright © 2016 by 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-22 in 0.07 seconds with 19 queries on phoenix via your IP