Setting Session / Signal Time Code for an Indicator - EasyLanguage Programming | futures trading

Go Back

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

Setting Session / Signal Time Code for an Indicator
Started:July 7th, 2015 (01:05 PM) by timothymhanna Views / Replies:178 / 1
Last Reply:July 7th, 2015 (01:05 PM) Attachments:1

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

Setting Session / Signal Time Code for an Indicator

Old July 7th, 2015, 01:05 PM   #1 (permalink)
Trading Apprentice
Detroit, MI
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES
Posts: 15 since Oct 2010
Thanks: 0 given, 3 received

Setting Session / Signal Time Code for an Indicator


I'm trying to code the following: Chart details exactly what I'm trying to capture.

1) If a current bar has a high higher than any bar from the start of today's session (18:00 EST) AND a close that is below the high from today's session (excluding this current bar setting the new high), plot a Bull Trap signal. What is the code for setting specific session times for the indicator?

When I change below code to HighD(0) to try to plot a break of current session's high, I don't get anything back..

As a test to see if anything would plot, I tried previous day's high; but my session times are not correct, as you see from the chart.

2) If the high today breaks previous day high but closes below, plot PDH Bull Trap. (I dont know how to get my session times to reflect starting at 18:00 EST to start a day's high. It calculates from midnight..)

Does anybody have an idea of how to code this properly? Below is my code for just having High > HighD(1)

Please register on to view futures trading content such as post attachment(s), image(s), and screenshot(s).

If High > HighD(1)
Plot1(High[0], "Bull Trap");
Value1= Text_New(Date, Time, High[1]+20,"Bull"+Newline+"Trap");
Text_SetColor(Value1, Red);
NoPlot(1);{remove the market}

Value2 = HighD(1);
Plot2(Value2, "PDH");

Reply With Quote

Old July 7th, 2015, 01:05 PM   #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.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Setting Session / Signal Time Code for an Indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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
help code multiple Time Frame indicator ttmarok ThinkOrSwim Programming 25 March 3rd, 2014 08:42 PM
Setting Session Template with NinjaScript Ash669 NinjaTrader Programming 4 May 11th, 2013 02:36 AM
Help please: Sierra Chart Daily OHLC Indicator and Alert time setting Rui S Sierra Chart 4 November 3rd, 2012 05:52 PM
Stock Exchange Session / Time Color Indicator drunkcolonel NinjaTrader 10 October 2nd, 2012 10:49 AM
Signal Trailing stop loss not working as per code. KumarHarsh EasyLanguage Programming 7 September 17th, 2012 03:25 AM

All times are GMT -4. The time now is 04:00 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-28 in 0.08 seconds with 20 queries on phoenix via your IP