Directional AutoTrading - TradeStation | futures io social day trading
futures io futures trading

Directional AutoTrading
Updated: Views / Replies:347 / 1
Created: by AhmedF 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

Directional AutoTrading

  #1 (permalink)
Trading Apprentice
north bergen
Trading Experience: None
Platform: multicharts
Favorite Futures: Currency
Posts: 13 since Feb 2017
Thanks: 3 given, 1 received

Directional AutoTrading

I am having issues with writing a code that allows me to trade direction bias. To elaborate i want data2(larger size bars) to dictate the direction while Data1 ( smaller size bar) to dictate entry and exit. I wrote the code and it complies when i run the signal it trades both ways.

indicator ( 0) ,

var0( 0 ),
var1( 0 ),

VVSUP(false), //trending up
VVSDN(false);// trending DN

var1 = SwingIndex ;
indicator = iff (var1 <0 ,1,-1);
indicator = iff (var1 >0 ,1,-1);

//data2var1 = SwingIndex ;
data2var1 = iff (SwingIndex <0 ,1,-1);
data2var1 = iff (SwingIndex >0 ,1,-1);

if data2var1 > 0
then begin
VVSUP = true;
VVSDN = false;
if data2var1 < 0
then begin
VVSUP = false;
VVSDN = true;

if VVSUP then begin
if indicator crosses over 0 then buy next bar at market;
if marketposition = 1 and Indicator crosses under 0 then sell next bar at market;

if VVSDN then begin
if Indicator crosses under 0 then sellshort next bar at market;
if marketposition =-1 and Indicator crosses over 0 then buytocover next bar at market;

Reply With Quote
  #2 (permalink)
Hamburg Germany
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 1,860 since Apr 2013
Thanks: 309 given, 1,153 received


as far as I can tell you don't reference Data2 in your code. Depending on what exactly you need, I would suggest looking into how to tie variables and functions to a datastream. For accessing reserved word values on other datastreams, this link should get you going:



Reply With Quote


futures io > > > > Directional AutoTrading

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
Directional Bias Super Trend devdas The Elite Circle 5 September 24th, 2015 04:08 PM
Looking for a Directional type strategy to.... mdsvtr Traders Hideout 3 May 3rd, 2015 08:29 PM
Directional Bias PandaWarrior Psychology and Money Management 58 January 18th, 2015 08:14 PM
Simple Directional Trading profitable? Big Mike Traders Hideout 29 November 24th, 2013 11:38 AM
Trading without Directional Bias liquidcci Psychology and Money Management 6 April 15th, 2013 06:28 PM

autotrading, buytocover, code, data, how to, marketposition, multicharts, ream, signal, tradestation, trading, trend, values

All times are GMT -4. The time now is 05:00 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-22 in 0.17 seconds with 14 queries on phoenix