Help on one day reversal strategy coding. - MultiCharts | futures trading

Help on one day reversal strategy coding.
Started: by Dallasboy Views / Replies:216 / 1
Last Reply: 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

Help on one day reversal strategy coding.

  #1 (permalink)
Trading Apprentice
dallas texas
Futures Experience: Advanced
Platform: NinjaTrader, Ensign, MC
Favorite Futures: ES
Posts: 12 since Jan 2016
Thanks: 6 given, 2 received

Help on one day reversal strategy coding.

Hi all,

I am try to code this simple reversal strategy:

If previous day open < close (an up bar), then sellshort the next bar.
Stop is previous bar's high (the up bar) plus say 25% of range.

	StopLoss ((high[1]-low[1])*.25);
if open < close then
	sellshort next bar at open;


SetStopLoss (StopLoss+(high[1]-open));

It tries to use the values from 2 bar back it seems.

Reply With Quote
  #2 (permalink)
Hamburg Germany
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 1,186 since Apr 2013
Thanks: 198 given, 679 received

Dallasboy View Post
It tries to use the values from 2 bar back it seems.


for what does it seem to use the values from two bars back?
The entries seem exactly where you'd expect them i.e. the next bar after a bar that had an open lower then the close.

For the stop amount this might be caused by your code not using intrabar order generation, which means values are updated at the end of the bar only.



Reply With Quote

Reply > > > > Help on one day reversal strategy coding.

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

2016 True Edge Awards: Voting is open until Jan 21!


Anthony Drager: Pulling the trigger with confidence

Elite only

Leo Murphy: The Art and Science of Technical Analysis

Elite only

FuturesTrader71: Ask Me Anything

Elite only

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reversal Day steve2222 Terms (Glossary) 0 April 10th, 2016 10:10 AM
New Strategy Coding Help FatDemon NinjaTrader Programming 49 January 4th, 2013 01:34 AM
ninjatrader reversal break even strategy drunkcolonel NinjaTrader 1 August 2nd, 2012 08:07 PM
Strategy Coding Challenge MWinfrey NinjaTrader Programming 4 January 25th, 2011 06:12 PM
Strategy coding - Would Anyone please take a quick look at........ mdsvtr NinjaTrader Programming 4 November 5th, 2010 06:54 AM

All times are GMT -4. The time now is 04:09 AM.

no new posts
Page generated 2017-01-22 in 0.07 seconds with 19 queries on phoenix via your IP