Proper Sequence of Executions - EasyLanguage Programming | futures io social day trading
futures io futures trading


Proper Sequence of Executions
Updated: Views / Replies:709 / 4
Created: by arashf 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

Reply
 
Thread Tools Search this Thread
 

Proper Sequence of Executions

  #1 (permalink)
Trading Apprentice
Washington, DC
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: stocks
 
Posts: 8 since Jul 2014
Thanks: 1 given, 0 received

Proper Sequence of Executions

Hi Guys,
I'm totally a newb to this site and programming. I have been trying to solve this problem for a couple of days now , and i would greatly appreciate any sort of guidance on this subject. I'm missing a line of code that will trigger my "trailing stop" after my "target". Is there a way to always have "TrailingStop" triggered after "Target"?
Here's What i have as of now for long:

//Entry
If Condition1 then buy this bar at close;

//Exits
If marketposition=1 then
begin
Sell ("StopLoss") at xxx Stop;
If condition2 then sell ("Target") (CurrentShares/2) shares at close;
Sell ("TrailingStop")current shares at next bar at xxx stop;
End;

Thank you in advance for your 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)
Trading Apprentice
Washington, DC
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: stocks
 
Posts: 8 since Jul 2014
Thanks: 1 given, 0 received

Further Info


If it helps, all the buy and sell triggers are based on bar patterns and not set by $ amount target or stops. That's why sometimes "TrailingStop" is triggered before the "Target" is met.

Reply With Quote
 
  #4 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,808 since Apr 2013
Thanks: 294 given, 1,105 received

arashf,

you would need a flag that enables the trailing stop when your target conditions become true. Something like this might work with using a boolean variable called UseTrailingStop:

 
Code
//Entry
If Condition1 then buy this bar at close;

//reset the flag
if marketposition < 1 and UseTrailingStop then
UseTrailingStop = false;

//Exits
If marketposition=1 then
begin
Sell ("StopLoss") at xxx Stop;
If condition2 then 
begin
UseTrailingStop = true;
sell ("Target") (CurrentShares/2) shares at close;
end;
if UseTrailingStop then
Sell ("TrailingStop")current shares at next bar at xxx stop;
End;
Regards,
ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #5 (permalink)
Trading Apprentice
Washington, DC
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: stocks
 
Posts: 8 since Jul 2014
Thanks: 1 given, 0 received

Thank you

A 1000 thanks ABCTG, that is exactly what i was looking for.

Reply With Quote

Reply



futures io > > > > > Proper Sequence of Executions

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

September Journal Challenge (sponsored by TopstepTrader)

September

Battlestations! Win $947 in prizes for showing us your trading desk!

October
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Executions into NT7 Fadi NinjaTrader 6 January 14th, 2017 02:18 PM
Input executions into NinjaTrader Camdo NinjaTrader 3 May 4th, 2014 05:48 PM
All days executions alexbbfg NinjaTrader Programming 1 January 18th, 2014 11:45 AM
Strategy Multi-Timeframe OnBarUpdate() Sequence NJAMC NinjaTrader 0 June 18th, 2013 10:08 PM
multiple account connections sequence on startup mea109 NinjaTrader 2 September 4th, 2011 12:31 PM


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

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-10-22 in 0.10 seconds with 14 queries on phoenix