timed exit - AmiBroker | futures io social day trading
futures io futures trading


timed exit
Updated: Views / Replies:1,919 / 2
Created: by sr114 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

Reply
 
Thread Tools Search this Thread
 

timed exit

  #1 (permalink)
Trading Apprentice
Kolkata+India
 
Futures Experience: Intermediate
Platform: amibroker
Favorite Futures: index,gold
 
Posts: 27 since Aug 2012
Thanks: 10 given, 1 received

timed exit

Hello Boarders

in developing intraday system how we could use the concept of timed exit at a certain time of the trading hours?
it must be applicable for range bars also beside the actual time frame ( for any tf its easy but for range bars - what to do?)

for example - we take a simple ma crossover system of a fast average and slow average.

f=fast average;
s=slow average;

so the buy and sell will be

buy=Cross(f,s);
sell=Cross(s,f); // and exit at 2300 hrs;

plot (C,"",colorgreen, 64);
PlotShapes( IIf( Buy, shapeUpArrow, shapeNone ), 51 );
PlotShapes( IIf( Sell, shapeDownArrow, shapeNone ), 42);


now if to implement that the sell condition also have a timed exit part - i.e. at a certain time - lets say at 2300 hrs - all active trade will be closed - be it buy or sell.

what is the code to be used for the timed exit?

in a breakout system, what will be a good cover and exit condition?

breakout condition for bur or sell ( cover/exit logic, code needed for this buy/sell trade)

Buy =Cross( C, Ref( HHV(H,Buyperiods), -1 )) ;
Sell =Cross(Ref(LLV(Low,Sellperiods),-1),C) ;


what condition can we apply here in the buy or sell for a good cover or exit from the trade?


rgds
sr


Last edited by sr114; January 16th, 2013 at 11:53 AM. Reason: addition
Reply With Quote
 
  #2 (permalink)
Elite Member
Reston, Virginia
 
Futures Experience: Advanced
Platform: ThinkOrSwim, AmiBroker
Broker/Data: ThinkOrSwim, TradeStation
Favorite Futures: Metals, Grains
 
Posts: 7 since Nov 2010
Thanks: 18 given, 3 received

Code for timed exit

If I'm understanding what you want, this should do what you are looking for...

Defines when to enter trades, and when to exit.

 
Code
/* Define trading start and end times. Don't take trades outside these times */
/* Include in entry/exit rules only when trading equity markets */
FirstTradeTime = 094500;				// Earliest time to take a trade
LastTradeTime = 153000;					// Latest time to take new trades
ExitAllPositionsTime = 154500;		// Exit all trades
 
Code
/* Buy & Sell Section */

Buy = 	... AND
		(TimeNum() >= FirstTradeTime AND TimeNum() <= LastTradeTime );

// For US equities markets, exit when the current time is greater than a certain time of Day (e.g., > 15:30)
Sell = ... OR
	 TimeNum() >= ExitAllPositionsTime;
And just use the same logic for the Sell Short and Cover.

Reply With Quote
The following 2 users say Thank You to dwitkin for this post:
 
  #3 (permalink)
Trading Apprentice
Kolkata+India
 
Futures Experience: Intermediate
Platform: amibroker
Favorite Futures: index,gold
 
Posts: 27 since Aug 2012
Thanks: 10 given, 1 received



dwitkin View Post
If I'm understanding what you want, this should do what you are looking for...

Defines when to enter trades, and when to exit.

 
Code
/* Define trading start and end times. Don't take trades outside these times */
/* Include in entry/exit rules only when trading equity markets */
FirstTradeTime = 094500;				// Earliest time to take a trade
LastTradeTime = 153000;					// Latest time to take new trades
ExitAllPositionsTime = 154500;		// Exit all trades
 
Code
/* Buy & Sell Section */

Buy = 	... AND
		(TimeNum() >= FirstTradeTime AND TimeNum() <= LastTradeTime );

// For US equities markets, exit when the current time is greater than a certain time of Day (e.g., > 15:30)
Sell = ... OR
	 TimeNum() >= ExitAllPositionsTime;
And just use the same logic for the Sell Short and Cover.

Hi

thanx for the prompt reply

for a time frame based afl this logic will work, but for a range bar type it is not working?
as range bars are time independent

also cud u specify a good cover/exit logic in this case , then the time based exit can be over rided

rgds
sr

Reply With Quote

Reply



futures io > > > > timed exit

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exit Signal Help jordis NinjaTrader Programming 3 December 20th, 2012 06:30 PM
Timed breakout box TwoHands EasyLanguage Programming 17 July 20th, 2012 09:55 AM
It's all about the exit DarkPoolTrading Traders Hideout 1 May 28th, 2012 05:47 AM
Exit Only Strategy ? buylosellhi MultiCharts 6 November 15th, 2011 09:38 PM
Timed exit in auto strategy nanobiotech NinjaTrader Programming 2 December 28th, 2009 08:57 PM


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

Copyright © 2017 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 2017-12-18 in 0.08 seconds with 19 queries on phoenix via your IP 107.20.115.174