how to flat possition at the end of day? - Sierra Chart Programming | futures io social day trading
futures io futures trading

how to flat possition at the end of day?
Updated: Views / Replies:303 / 3
Created: by nirvikalpasamadhi 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 100,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

how to flat possition at the end of day?

  #1 (permalink)
Trading for Fun
Trading Experience: Master
Platform: sierra chart
Favorite Futures: e-mini nq, ym, es
Posts: 167 since Jan 2017
Thanks: 2 given, 47 received

how to flat possition at the end of day?

i have written a trading system for bectesting, the only thing that doesnt work is closing the possition at the end of the day (or at a particular time specified in my input)

the code that i use for flat is this

		s_SCPositionData pozice;

		if (pozice.PositionQuantity != 0) {
			if (sc.BaseDateTimeIn[sc.Index].GetTime() >= konec_rth.GetTime()) {
very sipmle and clead, but it doesnt work and the possitiong is still open even after the specified time "konec-rth" is my variable input where i specify the time

does anyone can give me a hint how to make it work?

otherwise all the bectest are useless

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)
Elite Member
Columbus, OH
Trading Experience: Intermediate
Platform: SierraChart
Favorite Futures: CL
Posts: 23 since May 2013
Thanks: 104 given, 14 received

sc.BaseDateTimeIn[sc.Index] is equal to the starting time of a bar.

I believe if you remove the .GetTime() from this member it should work.

Reply With Quote
  #4 (permalink)
Trading Apprentice
russia kaliningrad
Trading Experience: Intermediate
Platform: sc, custom
Favorite Futures: es,zn,zb
ludvig's Avatar
Posts: 15 since Jan 2011
Thanks: 0 given, 14 received

Recommend under such circumstances use IDE:
and DEBUG mode.

Simply create a breakpoint and look to which values your variables are equal.

Reply With Quote


futures io > > > > > how to flat possition at the end of day?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Battlestations! Show us your trading desks w/GFF Brokers ($750 in Prizes)


Trading Preparedness w/GFF Brokers

Jan 22

Similar Threads
Thread Thread Starter Forum Replies Last Post
Order Entry Next Day after End of Day Exit ProlongWealth EasyLanguage Programming 1 February 12th, 2015 10:56 PM
Close position end of day and reopen next day mnovaki NinjaTrader Programming 1 September 12th, 2014 09:38 AM
end of day close shanemcdonald28 MultiCharts 11 August 31st, 2014 05:11 PM
The End of Day Trading KosherTrader Traders Hideout 76 October 24th, 2013 08:50 AM
Europe Shares Seen Flat in Last Trading Day of 2011 Quick Summary News and Current Events 0 December 30th, 2011 03:40 AM

code, data, es, how to, information, sierrachart, sierra_chart, trading, trading system, values, variable

All times are GMT -4. The time now is 08:44 PM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business,
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 2019-01-21 in 0.21 seconds with 14 queries on phoenix