trying to code ORB tradestation - futures io
futures io



trying to code ORB tradestation


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,479 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

trying to code ORB tradestation

(login for full post details)
  #1 (permalink)
w4rri0r
world's citizen
 
 
Posts: 45 since Oct 2015
Thanks: 10 given, 7 received

Hi,
can someone help me with a simple code? I've tried but it's really not my work......can't figure out how it work....
I'm trying to code a simple breakout strategy:
> buy long (limit) if price goes above 1rst minute candle + 0.01 cent
> put a stop at 1rst minute low - 0.01 cent
> position = distance from 1rst minute high and low / $fixed dollar amount

then i will try to code some better money management rules, like trailing stop or move stop at breakeven > taking profits (scaling out etc etc)

Please, someone can point me in the right direction?

thanks!

Reply With Quote

Can you help answer these questions
from other members on futures io?
TradingView help in improving Anchored Vwap
Platforms and Indicators
MacdBB V402 NT804 + gradient + pullback not working on N …
NinjaTrader
Tradestation order types - help
TradeStation
Is there inherently more opportunity in smaller markets?
Traders Hideout
Script to add a moving average
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Question about intraday margins
61 thanks
How quickly do algos go bad?
46 thanks
ZombiePack3 Indicators
19 thanks
Webinar: Building a System for Trading Psychology w/Jare …
18 thanks
Want your NinjaTrader indicator created, free?
14 thanks
 
(login for full post details)
  #3 (permalink)
 GoldenRatio 
Philadelphia, PA
 
Experience: Advanced
Platform: Matlab, TradeStation
Trading: Stocks
 
GoldenRatio's Avatar
 
Posts: 208 since Aug 2012
Thanks: 5,044 given, 294 received



w4rri0r View Post
Hi,
can someone help me with a simple code? I've tried but it's really not my work......can't figure out how it work....
I'm trying to code a simple breakout strategy:
> buy long (limit) if price goes above 1rst minute candle + 0.01 cent
> put a stop at 1rst minute low - 0.01 cent
> position = distance from 1rst minute high and low / $fixed dollar amount

then i will try to code some better money management rules, like trailing stop or move stop at breakeven > taking profits (scaling out etc etc)

Please, someone can point me in the right direction?

thanks!

@w4rri0r You will have better success if you post your sample code so that others can review it and point out any issues.

Reply With Quote
 
(login for full post details)
  #4 (permalink)
w4rri0r
world's citizen
 
 
Posts: 45 since Oct 2015
Thanks: 10 given, 7 received


GoldenRatio View Post
@w4rri0r You will have better success if you post your sample code so that others can review it and point out an issues.

Hi @Golden,

i need to insert some money management in this code:
 
Code
var: 
    FirstBarHi( 0 ), 
    FirstBarLo( 0 ); 
 
If CurrentSession(0) <> CurrentSession(0)[1] then begin         
FirstBarHi = High; 
FirstBarLo = Low;    
end; 
 
if Time > 0930 and Time <= 0935 then begin  // allow five min. after the open to break below or above the first min. bar of the day 
Buy next bar at  FirstBarHi + .01 stop; 
Sell short next bar at FirstBarLo - .01 stop; 
end; 
 
Sell next bar at FirstBarLo - .01 stop; 
BuyToCover next bar at FirstBarHi + .01 stop; 
  
setexitonclose;
1) what i'd like to code is a position size like --> distance from low to high (in points) / fixed dollar amount
2) take profit after x conditions (like a % move in the right direction or increase in volatility) and move stop to breakeven
3) move stop to breakeven after x conditions (time etc etc)

Reply With Quote
The following user says Thank You to w4rri0r for this post:


futures io Trading Community Platforms and Indicators EasyLanguage Programming > trying to code ORB tradestation


Last Updated on November 13, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing

A Transparent Glimpse Into a Prop Traders Life w/Chris Gray @ Earn2Trade

Elite only
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

August
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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