Hammer script - NinjaTrader Programming | futures io social day trading
futures io futures trading

Hammer script
Updated: Views / Replies:772 / 3
Created: by zebidee Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Hammer script

  #1 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: Ninjatrader, T4
Favorite Futures: Nasdaq
Posts: 5 since Feb 2013
Thanks: 1 given, 0 received

Hammer script

Hi all

I am new to Ninjascript and trying to create a really basic script based around price action, but the script doesn't execute. The idea is simply to trigger a long trade on a hammer candlestick formation. Ideally, I would like to add a bullish engulfing/morning star to this on the same basis. This is what I have:

SetProfitTarget("", CalculationMode.Ticks, 42);

CalculateOnBarClose = true;

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
// Condition set 1
if (Close[0] + 5 * TickSize > Low[0]
&& ToTime(Time[0]) >= ToTime(8, 0, 0)
&& ToTime(Time[0]) <= ToTime(17, 0, 0))
EnterLong(1, "");


thanks for any help

Reply With Quote
  #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.

  #3 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
sam028's Avatar
Posts: 3,414 since Jun 2009
Thanks: 3,610 given, 4,071 received

Try in adding a Print() to see what are the values of your conditions:

Print("C: "Close[0] + TickSize+" Low: "Low[0] + " T1: "ToTime(Time[0]).toString() .... 

If you never execute the EnterLong(), it's because your conditions are never met...

Success requires no deodorant! (Sun Tzu)
Reply With Quote
  #4 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: Ninjatrader, T4
Favorite Futures: Nasdaq
Posts: 5 since Feb 2013
Thanks: 1 given, 0 received

Thanks for that. I'm afraid I'm pretty much limited to using the wizard and got an error when I tried to add that code. But, I have compiled a new script to enter long when the high is 1 tick above the low and it doesn't, so there seems to be something else wrong. Other scripts are executing fine.

Reply With Quote


futures io > > > > > Hammer script

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

Similar Threads
Thread Thread Starter Forum Replies Last Post
How No 'Cliff' Deal Will Hammer the Middle Class Quick Summary News and Current Events 0 December 28th, 2012 12:10 PM
Option Script bobp ThinkOrSwim Programming 2 August 7th, 2012 06:42 PM
Need little help with a Ninjatrader script raindrop NinjaTrader Programming 9 April 20th, 2011 10:35 PM
Fear the ban hammer PushHands Feedback and Announcements 3 April 1st, 2011 08:09 AM
script idea sharky NinjaTrader Programming 64 November 15th, 2009 05:05 PM

All times are GMT -4. The time now is 06:49 PM.

Copyright © 2018 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
Page generated 2018-05-23 in 0.08 seconds with 19 queries on phoenix via your IP