stop trading for minutes after NumberWins - EasyLanguage Programming | futures trading

Go Back

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

stop trading for minutes after NumberWins
Started:December 25th, 2010 (05:19 PM) by binthere Views / Replies:1,021 / 2
Last Reply:December 26th, 2010 (04:02 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

stop trading for minutes after NumberWins

Old December 25th, 2010, 05:19 PM   #1 (permalink)
Just starting out...
houston, tx
Futures Experience: Advanced
Platform: think or swim, tradestation
Favorite Futures: futures
Posts: 2 since Jul 2010
Thanks: 1 given, 0 received

stop trading for minutes after NumberWins

hi guys,
using tradestation 8.8
I'm looking for a way to have my strategy stop trading for "x" amount of minutes after
"y" number of winning trades or
"z" number of loosing trades
thanks for your help!!

Reply With Quote

Old December 25th, 2010, 05:19 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.


Old December 26th, 2010, 04:02 PM   #3 (permalink)
Trading Apprentice
St. Petersburg, Russia
Futures Experience: Advanced
Platform: Multicharts
Favorite Futures: spot fx, currency futures, GC, ES
Posts: 30 since Nov 2010
Thanks: 6 given, 17 received

input: nWinTrades(5), nLosingTrades(10), nMinutes(10);

var: mp(0), wt(0), lt(0), reftime(0), trade_allowed(false);

mp = marketposition;

if positionProfit(1) > 0 then wt += 1;
if positionProfit(1) < 0 then lt += 1;

if mp <> mp[1] and (wt >= nWinTrades or lt >= nLosingTrades) then begin
	lt = 0;
	wt = 0;
	reftime = time;
	trade_allowed = false;

if time - reftime >= nMinutes then trade_allowed = true;

if trade_allowed then
	<your signal code goes here>
This stops trading for 10 minutes when number of winning trades is equal or greater than 5 or number of losing trades is equal or greater than 10.

Hope this helps.

Reply With Quote
The following 2 users say Thank You to Doctor Leo for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > stop trading for minutes after NumberWins

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
Don't stop trading! tammyd549 Traders Hideout 5 September 5th, 2014 09:44 AM
1st 90 minutes trading NQ futures (day session)... researcher247 The Elite Circle 10 March 5th, 2013 10:15 AM
Trailing Stop - how to use by trading futures Blackburn NinjaTrader Programming 2 May 27th, 2011 11:59 PM
Do nothing for 2 minutes redratsal Off-Topic 0 January 26th, 2011 03:19 AM
Strategy stop trading at realized PnL zwentz NinjaTrader Programming 4 December 1st, 2009 01:29 AM

All times are GMT -4. The time now is 03:56 AM.

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-23 in 0.07 seconds with 19 queries on phoenix via your IP