NexusFi: Find Your Edge


Home Menu

 





Inside Bar order entry


Discussion in EasyLanguage Programming

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




 
Search this Thread

Inside Bar order entry

(login for full post details)
  #1 (permalink)
chris2980
New Orleans
 
Posts: 3 since Apr 2012
Thanks Given: 1
Thanks Received: 0

Hi all, I have just recently started to get interested in automating my strategy, as sometimes its impossible to manually input 10+ order entries when a new bar begins and then manage them. I always write down stocks that meet my criteria throughout the day, and after manually backtesting every day for the past month has always turned a profit, so I am excited about potentially getting it automated. I dont have any prior programming experience so I thought Easylanguage would be a good starting point.

Anyways, im trying to write basic strategies to get more comfortable, and what I am currently trying to do is buy/short after an inside bar. I want to buy at the high of the inside bar + .01 as long as it hasnt traded below the low of the inside bar.

After researching i can only find code similar to:

Buy ("l1") 100 shares next bar at H of data1 + 0.01 stop;

but this doesnt have any criteria that the long position will only be initiated as long as it hasnt traded below the low of the inside bar. Can anyone point me in the right direction?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Volume profile TradeStation
EasyLanguage Programming
IQFeed MBO data experience
The Elite Circle
Trader Dale [email protected] or Scammer Dale
Trading Reviews and Vendors
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Request for MACD with option to use different MAs for fa …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
GFIs1 1 DAX trade per day journal
28 thanks
Supertradersams Thread Journal on NQ/MNQ
27 thanks
Diary of a simple price action trader
17 thanks
Daytrading ES & NQ
14 thanks
Tao te Trade: way of the WLD
13 thanks

(login for full post details)
  #3 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58



chris2980 View Post
Hi all, I have just recently started to get interested in automating my strategy, as sometimes its impossible to manually input 10+ order entries when a new bar begins and then manage them. I always write down stocks that meet my criteria throughout the day, and after manually backtesting every day for the past month has always turned a profit, so I am excited about potentially getting it automated. I dont have any prior programming experience so I thought Easylanguage would be a good starting point.

Anyways, im trying to write basic strategies to get more comfortable, and what I am currently trying to do is buy/short after an inside bar. I want to buy at the high of the inside bar + .01 as long as it hasnt traded below the low of the inside bar.

After researching i can only find code similar to:

Buy ("l1") 100 shares next bar at H of data1 + 0.01 stop;

but this doesnt have any criteria that the long position will only be initiated as long as it hasnt traded below the low of the inside bar. Can anyone point me in the right direction?

you will need a couple of conditional statements to get you on the right track

eg.

 
Code
if low > low[1] and close > high[1] then
BUY...

Reply With Quote
(login for full post details)
  #4 (permalink)
chris2980
New Orleans
 
Posts: 3 since Apr 2012
Thanks Given: 1
Thanks Received: 0

thank you, that makes sense. i was using if h>h[1] then buy by mistake.

Reply With Quote





Last Updated on September 25, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts